<div dir="ltr">Thanks Tim and Liz, comments in line.<br><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/15 Tim Schnell <span dir="ltr"><<a href="mailto:tim.schnell@rackspace.com" target="_blank">tim.schnell@rackspace.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 1/15/14 9:01 AM, "Liz Blanchard" <<a href="mailto:lsurette@redhat.com">lsurette@redhat.com</a>> wrote:<br>

<br>
<br>
><br>
>On Jan 9, 2014, at 4:41 AM, Jay Lau <<a href="mailto:jay.lau.513@gmail.com">jay.lau.513@gmail.com</a>> wrote:<br>
><br>
><br>
>My bad, the image cannot be viewed.<br>
><br>
><br>
>Upload again.<br>
><br>
><br>
><br>
>Thanks,<br>
><br>
><br>
>Jay<br>
><br>
><br>
><br>
>2014/1/9 Jay Lau <<a href="mailto:jay.lau.513@gmail.com">jay.lau.513@gmail.com</a>><br>
><br>
>Hi,<br>
><br>
><br>
>Now when using OpenStack dashboard to launch a stack, we need to first<br>
>import the template then create the stack, but there is no way to enable<br>
>admin to view/modify the template.<br>
<br>
</div>Hi Jay,<br>
<br>
Sorry I meant to respond to this a few days ago. Currently, in the<br>
dashboard you have the ability to copy/paste a template into a text area<br>
and then edit it before you attempt the stack-create. This seems to solve<br>
the use case that you have mentioned although I agree that there is room<br>
for improvement in the user experience.<br>
<br>
The reason I bring up the distinction is because the template that you<br>
reference below has a much broader scope. It includes storing and managing<br>
templates for future use. If you are intending to add all of this<br>
functionality into the Dashboard then I would suggest waiting for a<br>
template storage solution to get done. There is currently a blueprint and<br>
discussion happening in Glance to take on this ability and then I would<br>
imagine that the Dashboard can consume it.<br>
<br>
see:<br>
<a href="https://blueprints.launchpad.net/glance/+spec/metadata-artifact-repository" target="_blank">https://blueprints.launchpad.net/glance/+spec/metadata-artifact-repository</a><br>
<br>
If you are intending to simply add an additional page for editing the<br>
template if the user chooses to retrieve it via the URL option then my<br>
only suggestion would be to have a flag that gets stored in the session<br>
that allows the user to bypass the editing step for launching templates<br>
since some users will never need to edit templates.<br></blockquote><div>@Tim, I think that it might be ok to enable admin still be able to see the overall JSON/YAML template by the edit page even if s/he does not want to edit it. ;-)<br>
</div><div>I'm planning to add both edit/create page to heat, and I noticed that AWS already have such feature: <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html">http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html</a>, I'm now trying if we can leverage some from it. <br>
</div><div>So I think that the dashboard should probably add a new button named as create. Yes, now we cannot store template, so my thinking is that once admin create template finished, then s/he can simply export it and save it locally for future use.<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
><br>
><br>
>What about add a new page between import template and launch stack to<br>
>give admin an opportunity to edit the template?<br>
><br>
><br>
>I noticed that we already have a blueprint tracing this:<br>
><a href="https://blueprints.launchpad.net/horizon/+spec/heat-template-management" target="_blank">https://blueprints.launchpad.net/horizon/+spec/heat-template-management</a><br>
><<a href="https://blueprints.launchpad.net/horizon/+spec/heat-template-management" target="_blank">https://blueprints.launchpad.net/horizon/+spec/heat-template-management</a>><br>
><br>
><br>
><br>
>I did some investigation, seems we can leverage<br>
</div>><a href="http://jsoneditoronline.org/" target="_blank">http://jsoneditoronline.org/</a> <<a href="http://jsoneditoronline.org/" target="_blank">http://jsoneditoronline.org/</a>> to enable<br>
<div class="im">>OpenStack dashboard have this ability (Only for JSON template).<br>
><br>
><br>
><br>
>Hi Jay,<br>
><br>
><br>
>I really like the idea of allowing users to edit these templates easily<br>
>right through the dashboard. Are all template files in JSON? I would say<br>
>we should try to find a solution to add to the dashboard that would<br>
>support all (or as many as possible) formats<br>
> of template that we can.<br>
<br>
</div>I agree with Liz here, templates can be in JSON or YAML format so if we do<br>
add a javascript library to provide syntax highlighting and things then I<br>
would want it to work with YAML as well as JSON.<br>
<br>
-Tim<br>
<br>
><br>
><br>
>Best,<br>
>Liz<br>
<div class=""><div class="h5">><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
>Thanks,<br>
><br>
><br>
>Jay<br>
><br>
><br>
><br>
><br>
><br>
><br>
><json.png>_______________________________________________<br>
>OpenStack-dev mailing list<br>
><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>