Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F79F200C3D for ; Tue, 14 Mar 2017 17:20:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0DFDD160B7E; Tue, 14 Mar 2017 16:20:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55AEB160B7C for ; Tue, 14 Mar 2017 17:20:55 +0100 (CET) Received: (qmail 73515 invoked by uid 500); 14 Mar 2017 16:20:52 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 73503 invoked by uid 99); 14 Mar 2017 16:20:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 16:20:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9ABC41A0115 for ; Tue, 14 Mar 2017 16:20:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cloudsoftcorp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id vspzVlgV6Q3Y for ; Tue, 14 Mar 2017 16:20:50 +0000 (UTC) Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 36BDA5FB6B for ; Tue, 14 Mar 2017 16:20:50 +0000 (UTC) Received: by mail-wr0-f175.google.com with SMTP id u108so127357203wrb.3 for ; Tue, 14 Mar 2017 09:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudsoftcorp.com; s=google; h=subject:references:from:to:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=+e2PFAAmz2dWObVRNAyHS+ZrtHb7ofDGhGKjcvMHxNk=; b=SoAxI9CvKPqco234YBgRKL0c9qPyYpizeJXgZ0ZduVESSNt2vZoQnSk52NjfXPe9+o 7zWh9PNbA8PlXLPNO/HW7D8OFr7K8uOUWfwmC/cIhBo2/tBVPHatN3Ssho7WND8GOPhD dNGsThMKuJnTdhGa0dxrhcVAF5VUoEO3dHLSs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:from:to:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=+e2PFAAmz2dWObVRNAyHS+ZrtHb7ofDGhGKjcvMHxNk=; b=jiqQKqv8RGtAWRo2d9c1ufvEpG9/GG2j61AnAOh2U+sUBKAYSop0GVG/GPUF+iHxOZ PcDnz92RtCZmAKGlm6ap6wfnSJJvOXtyHgNGnPzn8+lItfn8GlBqg6kQ2OV9pMsQInB0 HqUR406MS/6/9CP+3YpRI58BfManW1Hwnr51rA6CBwEl8+RwIDXDvZ4yMAV1mXlLVIWQ wrdy1xjJSN2zI2UW9PmobMI8hRJOzkVZR+DgUFX5m6pRbhm/K86XtU96oGL74rAhH1vE 0h+osDsV50WAdLnjbxmHnjWBS8EKh10Ni7vcAPLwwTCtNtm9c5IHkM89ESAjrKPGNVnr 1cgQ== X-Gm-Message-State: AMke39nQvrVIdC+A+ryzMJnH7pDfWAV9GW3D08ezWbE2fwmvDZWOB5nR0UnoJil2MhMBQtyejlXCbH4rhuLh+lgWnCTZmwn1ikprE3gL2WEb+paD6NwcFVeLIQC/lmHPT8P3cg== X-Received: by 10.223.130.144 with SMTP id 16mr37215468wrc.32.1489508448464; Tue, 14 Mar 2017 09:20:48 -0700 (PDT) Received: from v.local ([37.157.33.76]) by smtp.googlemail.com with ESMTPSA id k10sm408363wmg.10.2017.03.14.09.20.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 09:20:47 -0700 (PDT) Subject: Re: Doing "upgrade" in yaml References: From: Sam Corbett To: dev@brooklyn.apache.org Message-ID: Date: Tue, 14 Mar 2017 16:20:46 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Legal-Virus-Advice: Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Cloudsoft Corporation Limited in this regard and the recipient should carry out such virus and other checks as it considers appropriate. X-Legal-Confidentiality: This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Cloudsoft Corporation Limited does not accept responsibility for changes made to this message after it was sent. X-Legal-Company-Info: Cloudsoft Corporation Limited. Registered in Scotland. Number: SC349230. Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP. archived-at: Tue, 14 Mar 2017 16:20:56 -0000 Hi Graham, From the sounds of it you're reaching the limit of what's possible with yaml at the moment. I know that upgrading deployments of yaml-based blueprints is something filtering through several Brooklyn developers' minds but there's nothing concrete available now. For the workflow you describe I think your best bets are either to write the Java or to handle the steps outwith Brooklyn. The former isn't especially difficult and we'd be happy to help either here or on IRC (#brooklyncentral on freenode). One alternative, if you're willing to stop the entity as part of this flow, is to replace the entity you want to act on with an updated version. I'd imagine stopping v1 and removing it from the application then using the `add child` API [1] to add the child with updated config. Are you trying to avoid reprovisioning instances? Sam 1. https://brooklyn.apache.org/v/latest/misc/javadoc/org/apache/brooklyn/rest/resources/EntityResource.html#addChildren-java.lang.String-java.lang.String-java.lang.Boolean-java.lang.String-java.lang.String- On 13/03/2017 17:35, Graham Ashby wrote: > Me again. > Now I'm trying this: I want to have an effector that takes as an argument > a set of configuration variables, it then stops the entity, updates the > configuration, and then starts the entity (which can then run through the > install, customize, etc..) > > I could see how to do this in Java, but how can I do this in yaml (using > VanillaSoftwareProcess)? > > Thanks again > Graham > >