<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi Tony, </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">After re-readng your question again I tend to agree with Alex. Actions seem to be exactly what you’re asking for.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1439400246922426880" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Kirill Zaitsev<br>Murano team</div><div style="font-family:helvetica,arial;font-size:13px">Software Engineer</div><div style="font-family:helvetica,arial;font-size:13px">Mirantis, Inc</div></div> <br><p class="airmail_on" style="color:#000;">On 12 Aug 2015 at 20:16:08, Alexander Tivelkov (<a href="mailto:ativelkov@mirantis.com">ativelkov@mirantis.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hi Tony,
<br>
<br>Thanks for your interest!
<br>
<br>This is a complicated topic. Being able to edit the object model (with
<br>DynamicUI, the CLI tools mentioned by Kirill or manually with murano's
<br>API) is just the tip of the iceberg: if you have already deployed your
<br>application, modifying of some of its input properties will not be
<br>enough: the application developer has to supply the logic which will
<br>handle the changes and will execute all the needed actions to
<br>reconfigure the app.
<br>
<br>Right now the right way to do so is to create an "action" method (see
<br>[1] for details), which may be called for already deployed apps. In
<br>this action you may change the properties of the object and do
<br>whatever custom handling you may need to reconfigure your app. For
<br>example, if you want to change the password of the database admin user
<br>of the mysql app, you may add an action method "changeAdminPassword"
<br>which will not only set '$.password' property to a new value, but will
<br>also execute an appropriate password-changing script on the VM running
<br>the database instance.
<br>
<br>Right now the actions are partially supported on the UI level (in the
<br>dashboard you may call any action of any deployed application),
<br>however currently you cannot pass any parameters to these actions if
<br>called from the UI, and being able to pass them is indeed required for
<br>your scenario (in the aforementioned example with DB password change,
<br>such an action should have at least one parameter - the new password
<br>value). This will be probably addressed during the M cycle as part of
<br>the "per-component UI" initiative mentioned by Kirill: we will provide
<br>a way to render dynamic UI dialogs not only for the new applications
<br>being added but also for the actions of the already deployed apps.
<br>
<br>Hope this helps.
<br>Please let me know if you have any questions on Actions and any other
<br>related topics
<br>
<br>[1] http://murano.readthedocs.org/en/latest/draft/appdev-guide/murano_pl.html#murano-actions
<br>
<br>--
<br>Regards,
<br>Alexander Tivelkov
<br>
<br>
<br>On Wed, Aug 12, 2015 at 2:16 PM, WANG, Ming Hao (Tony T)
<br><tony.a.wang@alcatel-lucent.com> wrote:
<br>> Kirll,
<br>>
<br>>
<br>>
<br>> Thanks for your info very much!
<br>>
<br>> We will study it first.
<br>>
<br>>
<br>>
<br>> Thanks,
<br>>
<br>> Tony
<br>>
<br>>
<br>>
<br>> From: Kirill Zaitsev [mailto:kzaitsev@mirantis.com]
<br>> Sent: Wednesday, August 12, 2015 7:12 PM
<br>> To: WANG, Ming Hao (Tony T); OpenStack Development Mailing List (not for
<br>> usage questions)
<br>> Subject: Re: [openstack-dev] Does murano dymamic-ui have plan to support
<br>> "edit" function?
<br>>
<br>>
<br>>
<br>> Hi, sure there are such plans! This have been long referred as
<br>> per-component-UI. I’m really hoping there would be some traction about it
<br>> during mitaka cycle. Not in liberty though, feature freeze is less than a
<br>> month away.
<br>>
<br>>
<br>>
<br>> btw, if you’re interested in custom tweaking and fine-tuning of murano
<br>> object-model you can take a look at these CLI tools
<br>> https://review.openstack.org/#/q/project:openstack/python-muranoclient+branch:master+topic:bp/env-configuration-from-cli,n,z
<br>>
<br>>
<br>>
<br>> and this https://review.openstack.org/#/c/208659/ commit in particular.
<br>> Although using those would require you to have some knowledge about how
<br>> murano handles things internally.
<br>>
<br>>
<br>>
<br>>
<br>>
<br>> --
<br>> Kirill Zaitsev
<br>> Murano team
<br>>
<br>> Software Engineer
<br>>
<br>> Mirantis, Inc
<br>>
<br>>
<br>>
<br>> On 12 Aug 2015 at 13:23:47, WANG, Ming Hao (Tony T)
<br>> (tony.a.wang@alcatel-lucent.com) wrote:
<br>>
<br>> Dear OpenStack developers,
<br>>
<br>>
<br>>
<br>> Currently, murano dynamic-ui is “one-time” GUI, and I can’t edit data what
<br>> has been submitted.
<br>>
<br>> Does murano dynamic-ui have plan to support "edit" function in the future?
<br>>
<br>>
<br>>
<br>> For example, developer develops some Wizard GUI to do some configuration,
<br>> and user wants to change some configuration after the deployment.
<br>>
<br>>
<br>>
<br>> Thanks,
<br>>
<br>> Tony
<br>>
<br>>
<br>>
<br>> __________________________________________________________________________
<br>> OpenStack Development Mailing List (not for usage questions)
<br>> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
<br>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
<br>>
<br>>
<br>> __________________________________________________________________________
<br>> OpenStack Development Mailing List (not for usage questions)
<br>> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
<br>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
<br>>
<br></div></div></span></blockquote></body></html>