YAML Blueprints Failing to Stop

2015-12-02 Thread Mike Zaccardo
Hi all, When attempting to stop some of my more complicated YAML blueprints I have encountered situations where certain entities will hang on the stop phase, preventing the application from disappearing. Below is a dummy example which demonstrates the problem. Note that this makes use of the `al

Re: YAML Blueprints Failing to Stop

2015-12-03 Thread Mike Zaccardo
ities will stop sequentially in decreasing numerical order (2->Y and then 1->X). WDYT? -Mike [1] https://github.com/apache/incubator-brooklyn/blob/master/core/src/main/java/org/apache/brooklyn/core/entity/trait/StartableMethods.java#L59 On Wed, Dec 2, 2015 at 8:52 PM Mike Zaccardo < mike.za

Re: YAML Blueprints Failing to Stop

2015-12-03 Thread Mike Zaccardo
://github.com/apache/incubator-brooklyn/pull/1088 On Thu, Dec 3, 2015 at 3:02 PM Mike Zaccardo < mike.zacca...@cloudsoftcorp.com> wrote: > Problem reduced to simpler and more generic terms: > > -Stop is called on a BasicApplication "A" > -Stop is then called on A's

Re: YAML Blueprints Failing to Stop

2015-12-04 Thread Mike Zaccardo
hub.com/apache/incubator-brooklyn/blob/master/core/src/main/java/org/apache/brooklyn/core/sensor/DependentConfiguration.java#L729 > > > > Gnu PGP key - http://is.gd/uI > > > > On 4 Dec 2015, at 05:43, Mike Zaccardo > wrote: > > > > I went

Re: YAML Blueprints Failing to Stop

2015-12-05 Thread Mike Zaccardo
-brooklyn/pull/1090 On Fri, Dec 4, 2015 at 12:03 PM Mike Zaccardo < mike.zacca...@cloudsoftcorp.com> wrote: > Thank you both for your input! I agree with both general points; > Brooklyn keeping track of all of the aWR is an intense undertaking, and > manually specifying the shutdown o

Re: [VOTE] Accept contribution of Brooklyn CLI

2016-02-18 Thread Mike Zaccardo
+1 On Thu, Feb 18, 2016 at 10:33 AM Alex Heneveld < alex.henev...@cloudsoftcorp.com> wrote: > > +1 binding > > Alex > > On 18/02/2016 18:14, Svetoslav Neykov wrote: > > +1 binding > > > > Svet. > > > > > >> On 18.02.2016 г., at 18:09, Duncan Johnston Watt < > duncan.johnstonw...@cloudsoftcorp.com

Nice-to-have: Built-in Cluster Sensor List Generator

2016-05-05 Thread Mike Zaccardo
Hi all, I've encountered the following task numerous times when authoring `DynamicCluster` blueprints: write a sensor that returns a comma separated list of values for each member of a cluster (e.g. the host address of each member). This is currently how to achieve such a task: brooklyn.en

Re: Evaluating bash in blueprint parameters

2016-06-28 Thread Mike Zaccardo
To clarify, later in this blueprint the value of `mongodb.ubunturepo` is being fed to `UBUNTUREPO` which is a `shell.env` variable. When `UBUNTUREPO` is used in `install.command` the `$(lsb_release -sc)` is not being evaluated, but remains literally in the string which breaks the install phase. I

Re: [PROPOSAL] catalog YAML format consistency

2016-06-28 Thread Mike Zaccardo
+1 for agreeing upon a standard syntax, especially because consulting existing blueprints is one of the best references when developing a new one. Alex's staged plan also makes sense to me. On Mon, Jun 27, 2016 at 8:28 AM Andrew Kennedy < andrew.kenn...@cloudsoftcorp.com> wrote: > +1 > > I agree

Re: Patching existing applications

2016-07-19 Thread Mike Zaccardo
Hi Graham, I don't have a complete answer for you now as this isn't my particular area of expertise, but I can get you started and will ask around for more information in order to provide a fuller answer. I believe this functionality can be achieved using a combination of an effector and the `Ser

Re: [PROPOSAL] Remove unauthenticated localhost login

2016-09-08 Thread Mike Zaccardo
+0. My hesitation is the con of more difficult first user experience. Could a compromise be that localhost login works unauthenticated the first time but immediately prompts the user to set a username and password? On Thu, Sep 8, 2016 at 10:12 AM Aled Sage wrote: > Hi all, > > I'd like to remov

Children of VanillaSoftwareProcess and service.isUp

2016-09-30 Thread Mike Zaccardo
Hi, I have a blueprint that consists of a `VanillaSoftwareProcess` (VSP) with a number of children entities. If any of these children go on fire, the parent VSP still reports as healthy, but I'd really like it to go on fire as well. In other words, I want the parent VSP to report as healthy if and

How to Override `imageID` of a Preconfigured Location?

2016-10-20 Thread Mike Zaccardo
Hi dev, I'd like to override the `imageID` of a location so it applies to all entities in a blueprint. Consider this simple blueprint: ``` name: Server (Brooklyn Example) location: aws-ec2-us-east-1 services: - type: server name: My VM provisioning.properties: imageId: us-east-1/ami-622

Re: How to Override `imageID` of a Preconfigured Location?

2016-10-20 Thread Mike Zaccardo
at 7:39 PM Andrea Turli wrote: > Cant test it now but is this not working? > > https://cloudsoftcorp.slack.com/archives/D1Z6Z28MU/p147697807243 > > Il 21/ott/2016 00:31, "Mike Zaccardo" ha > scritto: > > > Hi dev, > > > > I'd like to ove

Re: How to Override `imageID` of a Preconfigured Location?

2016-10-20 Thread Mike Zaccardo
imageId: us-east-1/ami-6224a40a >brooklyn.children: >- type: server > name: vm1 >- type: server > name: vm2 > ``` > > Aled > > > On 21/10/2016 00:31, Mike Zaccardo wrote: > > Hi dev, > > > > I'd like to

Re: How to Override `imageID` of a Preconfigured Location?

2016-10-20 Thread Mike Zaccardo
; > > > ``` > > name: Multiple Servers (Brooklyn Example) > > location:aws-ec2-us-east-1 > > services: > > - type: org.apache.brooklyn.entity.stock.BasicApplication > > brooklyn.config: > > provisioning.properties: > > imageId: us-east-

Re: [CANCEL][VOTE] Release Apache Brooklyn 0.10.0 [rc3]

2016-12-21 Thread Mike Zaccardo
are valid. > >>>>>>> [-] Expanded source archive matches contents of RC tag. > >>>>>>> [x] Expanded source archive builds and passes tests. > >>>>>>> [x] LICENSE is present and correct. > >>>>>>> [x] NO

Re: Google Summer of Code

2017-02-08 Thread Mike Zaccardo
as the structure and processes in place for GSoC so all we need to > do is come up with ideas! > > The deadline for a list of ideas is Thursday (apologies for the short > notice, due to illness I've been away and only just got the notification). > > Cheers > Richard. > --

Re: Trouble with YAML Transformer

2017-03-22 Thread Mike Zaccardo
sensor("org.apache.brooklyn.api.entity.Entity", "cluster.first.entity").attributeWhenReady("host.name")" So, what am I doing wrong? Thanks Graham -- Mike Zaccardo Senior Software Engineer Skype: mike.cloudsoft Twitter: @ItsMeMikeZ <https://twitter.com/

Re: Trouble with YAML Transformer

2017-03-22 Thread Mike Zaccardo
Sorry Graham, once you replace the dot with the colon it will spit out an error since `org.apache.brooklyn.api.entity.Entity` does not contain a `cluster.first.entity` sensor. I'm testing it out myself looking for a solution for you. -Mike On Wed, Mar 22, 2017 at 12:23 PM Mike Zac

Re: Trouble with YAML Transformer

2017-03-22 Thread Mike Zaccardo
ot;org.apache.brooklyn.entity.group.AbstractGroup", "cluster.first.entity").attributeWhenReady("host.name")': java.lang.IllegalArgumentException: Not permitted to invoke function on 'class org.apache.brooklyn.core.sensor.BasicAttributeSensor' (outside allowed

[jira] [Created] (BROOKLYN-270) BYON Location GUI Generates Bad-formatted YAML File

2016-05-18 Thread Mike Zaccardo (JIRA)
Mike Zaccardo created BROOKLYN-270: -- Summary: BYON Location GUI Generates Bad-formatted YAML File Key: BROOKLYN-270 URL: https://issues.apache.org/jira/browse/BROOKLYN-270 Project: Brooklyn

[jira] [Updated] (BROOKLYN-270) BYON Location GUI Generates Bad-formatted YAML File

2016-05-18 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Zaccardo updated BROOKLYN-270: --- Environment: apache-brooklyn-0.9.0-bin on Mac OS X 10.11.4 (was: Mac OS X 10.11.4) > B

[jira] [Updated] (BROOKLYN-270) BYON Location GUI Generates Bad-formatted YAML File

2016-05-18 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Zaccardo updated BROOKLYN-270: --- Description: When attempting to add a BYON location with a private key file through the GUI

[jira] [Created] (BROOKLYN-439) Existing `userMetadata` cannot be used with WinRM deployments

2017-02-15 Thread Mike Zaccardo (JIRA)
Mike Zaccardo created BROOKLYN-439: -- Summary: Existing `userMetadata` cannot be used with WinRM deployments Key: BROOKLYN-439 URL: https://issues.apache.org/jira/browse/BROOKLYN-439 Project

[jira] [Updated] (BROOKLYN-439) Existing `userMetadata` cannot be used with WinRM deployments on certain clouds

2017-02-15 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Zaccardo updated BROOKLYN-439: --- Environment: AWS Vcloud Director Description: *Applies to AWS and Vcloud Director

[jira] [Commented] (BROOKLYN-454) Can't chain `$brooklyn:config("entity")` with subsequent DSL expressions

2017-03-22 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937486#comment-15937486 ] Mike Zaccardo commented on BROOKLYN-454: `$brooklyn:entity(config(&qu

[jira] [Comment Edited] (BROOKLYN-454) Can't chain `$brooklyn:config("entity")` with subsequent DSL expressions

2017-03-22 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937486#comment-15937486 ] Mike Zaccardo edited comment on BROOKLYN-454 at 3/23/17 12:5

[jira] [Comment Edited] (BROOKLYN-454) Can't chain `$brooklyn:config("entity")` with subsequent DSL expressions

2017-03-22 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937486#comment-15937486 ] Mike Zaccardo edited comment on BROOKLYN-454 at 3/23/17 12:5

[jira] [Comment Edited] (BROOKLYN-454) Can't chain `$brooklyn:config("entity")` with subsequent DSL expressions

2017-03-22 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937486#comment-15937486 ] Mike Zaccardo edited comment on BROOKLYN-454 at 3/23/17 12:5

[jira] [Comment Edited] (BROOKLYN-454) Can't chain `$brooklyn:config("entity")` with subsequent DSL expressions

2017-03-22 Thread Mike Zaccardo (JIRA)
[ https://issues.apache.org/jira/browse/BROOKLYN-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937486#comment-15937486 ] Mike Zaccardo edited comment on BROOKLYN-454 at 3/23/17 12:5