[openstack-dev] Does murano dymamic-ui have plan to support "edit" function?

Kirill Zaitsev kzaitsev at mirantis.com
Wed Aug 12 17:29:32 UTC 2015


Hi Tony, 

After re-readng your question again I tend to agree with Alex. Actions seem to be exactly what you’re asking for.

-- 
Kirill Zaitsev
Murano team
Software Engineer
Mirantis, Inc

On 12 Aug 2015 at 20:16:08, Alexander Tivelkov (ativelkov at mirantis.com) wrote:

Hi Tony,  

Thanks for your interest!  

This is a complicated topic. Being able to edit the object model (with  
DynamicUI, the CLI tools mentioned by Kirill or manually with murano's  
API) is just the tip of the iceberg: if you have already deployed your  
application, modifying of some of its input properties will not be  
enough: the application developer has to supply the logic which will  
handle the changes and will execute all the needed actions to  
reconfigure the app.  

Right now the right way to do so is to create an "action" method (see  
[1] for details), which may be called for already deployed apps. In  
this action you may change the properties of the object and do  
whatever custom handling you may need to reconfigure your app. For  
example, if you want to change the password of the database admin user  
of the mysql app, you may add an action method "changeAdminPassword"  
which will not only set '$.password' property to a new value, but will  
also execute an appropriate password-changing script on the VM running  
the database instance.  

Right now the actions are partially supported on the UI level (in the  
dashboard you may call any action of any deployed application),  
however currently you cannot pass any parameters to these actions if  
called from the UI, and being able to pass them is indeed required for  
your scenario (in the aforementioned example with DB password change,  
such an action should have at least one parameter - the new password  
value). This will be probably addressed during the M cycle as part of  
the "per-component UI" initiative mentioned by Kirill: we will provide  
a way to render dynamic UI dialogs not only for the new applications  
being added but also for the actions of the already deployed apps.  

Hope this helps.  
Please let me know if you have any questions on Actions and any other  
related topics  

[1] http://murano.readthedocs.org/en/latest/draft/appdev-guide/murano_pl.html#murano-actions  

--  
Regards,  
Alexander Tivelkov  


On Wed, Aug 12, 2015 at 2:16 PM, WANG, Ming Hao (Tony T)  
<tony.a.wang at alcatel-lucent.com> wrote:  
> Kirll,  
>  
>  
>  
> Thanks for your info very much!  
>  
> We will study it first.  
>  
>  
>  
> Thanks,  
>  
> Tony  
>  
>  
>  
> From: Kirill Zaitsev [mailto:kzaitsev at mirantis.com]  
> Sent: Wednesday, August 12, 2015 7:12 PM  
> To: WANG, Ming Hao (Tony T); OpenStack Development Mailing List (not for  
> usage questions)  
> Subject: Re: [openstack-dev] Does murano dymamic-ui have plan to support  
> "edit" function?  
>  
>  
>  
> Hi, sure there are such plans! This have been long referred as  
> per-component-UI. I’m really hoping there would be some traction about it  
> during mitaka cycle. Not in liberty though, feature freeze is less than a  
> month away.  
>  
>  
>  
> btw, if you’re interested in custom tweaking and fine-tuning of murano  
> object-model you can take a look at these CLI tools  
> https://review.openstack.org/#/q/project:openstack/python-muranoclient+branch:master+topic:bp/env-configuration-from-cli,n,z  
>  
>  
>  
> and this https://review.openstack.org/#/c/208659/ commit in particular.  
> Although using those would require you to have some knowledge about how  
> murano handles things internally.  
>  
>  
>  
>  
>  
> --  
> Kirill Zaitsev  
> Murano team  
>  
> Software Engineer  
>  
> Mirantis, Inc  
>  
>  
>  
> On 12 Aug 2015 at 13:23:47, WANG, Ming Hao (Tony T)  
> (tony.a.wang at alcatel-lucent.com) wrote:  
>  
> Dear OpenStack developers,  
>  
>  
>  
> Currently, murano dynamic-ui is “one-time” GUI, and I can’t edit data what  
> has been submitted.  
>  
> Does murano dynamic-ui have plan to support "edit" function in the future?  
>  
>  
>  
> For example, developer develops some Wizard GUI to do some configuration,  
> and user wants to change some configuration after the deployment.  
>  
>  
>  
> Thanks,  
>  
> Tony  
>  
>  
>  
> __________________________________________________________________________  
> OpenStack Development Mailing List (not for usage questions)  
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe  
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev  
>  
>  
> __________________________________________________________________________  
> OpenStack Development Mailing List (not for usage questions)  
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe  
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev  
>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150812/3404603e/attachment-0001.html>


More information about the OpenStack-dev mailing list