<div dir="ltr">Hi Vijay,<div><br></div><div>Thanks for reply.</div><div><br></div><div>Currently I am trying to create a stack using python API, The library I am using is os_client_config, its a part of OpenstackClient.</div><div><br></div><div>In my last mail I explained how I am trying to create stack through os_client_config.make_client('orchestration') object.</div><div><br></div><div>Can you help me with this, or is there any other library to create stack in python.</div><div><br></div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 14, 2017 at 9:55 PM, Vijay Baskar <span dir="ltr"><<a href="mailto:vijay.baskar47@gmail.com" target="_blank">vijay.baskar47@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">A stack template defines a set of resources like VMs, networks, router.. and the relationship between them. You can create an entire cloud  infrastructure using a template. When creating a stack these resources will be created so that you dont need to create them individually. Suspend means , the instances mentioned in the template will be suspended. Similarly instances will be paused and resumed when stack is paused and resumed respectively. Change stack template is for changing the infrastructure created with the template, like upgrading the instances flavour used in it.<div dir="auto"><br><div dir="auto"><div dir="auto">I do not understand your second question about re running the stack.</div><div dir="auto"><br></div><div dir="auto">Are you trying to create stacks using python API?</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On May 14, 2017 6:02 PM, "Amit Uniyal" <<a href="mailto:auniyal61@gmail.com" target="_blank">auniyal61@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">`Hi all,<div><br></div><div>I guess I understood how heat create works. and also the <span style="font-size:12.8px">meaning of options [ suspend, resume, check stack, change stack template ].</span></div><div><br></div><div><span style="font-size:12.8px">So now whole stack is a single object. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I am trying to use os_client_config to create heat stack as:</span></div><div><br></div><div><b>heat = os_client_config.make_client('<wbr>orchestration')</b></div><div><br></div><div>now heat object has a function create_stack(**kwargs)</div><div><br></div><div><br></div><div>I tried to use it as:</div><div><br></div><div>template = {</div><div><br></div><div>'description': 'network and instances',</div><div> 'heat_template_version': '2015-10-15',</div><div> 'resources': {'net-a': {'properties': {'name': 'network-a'},</div><div>   'type': 'OS::Neutron::Net'}}</div><div><br></div><div>}</div><div> </div><div><br></div><div><b>stack = heat.stacks.create(**template)</b></div><div><br></div><div>it throws error as  ERROR: No stack name specified</div><div><br></div><div>so I added new key as <b>template.update({'stack_name': 'stack-a'})</b></div><div><br></div><div>and this time I got error as ERROR: No template specified</div><div><br></div><div><br></div><div>what would be the proper procedure to launch stack by os_client_config.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 5:53 PM, Amit Uniyal <span dir="ltr"><<a href="mailto:auniyal61@gmail.com" target="_blank">auniyal61@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Please help with heat service, the only example I could find is to create new stack. But how to use existing stack template which is already stored by orchestration service.</div><div><br></div><div>My understanding is we need to form/write a .yaml template and create new stack by this template. It saves this template on orchestration and run the template. According to template VMs will get launch (or other tasks) and it should be finished. then whats the meaning of options [ suspend, resume, check stack, change stack template ].</div><div><br></div><div>How can we rerun the same template without form/creating new stack in openstack.</div><div><br></div><div><br></div><div>Thanks and Regards</div><div><br></div></div>
</blockquote></div><br></div>
<br></div></div>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
<br></blockquote></div></div>
</blockquote></div><br></div>