<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/05/14 20:56, LIU Casper A wrote:<br>
    </div>
    <blockquote
      cite="mid:73720C6DF3C97548A402AEEF5FB4D5D733D805@cnshjmbx01"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin:0cm;
        margin-bottom:.0001pt;
        text-indent:21.0pt;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">Hello dear
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">Heat Developers</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">,</span><span lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"> </span><span lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">I am Casper Liu from Alcatel-Lucent. I am doing
            a project based on
          </span><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"
              lang="EN-US">Heat(Icehouse)</span></b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">, and have questions about Heat SoftwareConfig
            and SoftwareDevelopment resources.</span><span lang="EN-US">
            <br>
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">Your reply would be highly appreciated!</span><span
            lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">We really anticipate your support and help.
          </span><span lang="EN-US"><br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"> </span><span lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">The key point of our project is to execute<b>
              “heat stack-update”
            </b>to update<b> a stack with a number of VMs</b>, and this
            “heat stack-update” will trigger a specified script to be
            executed on a specified VM instance(this VM already has the
            specified script) of the stack, and there should be no
            reboot/rebuild of any VM of the stack. If possible we would
            like to use </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">SoftwareConfig to do this, for it is
            modularized and easy to manage, but cfn tool should also be
            OK.</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">Take</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"> our project</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US"> as example</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">, we have one stack which has 4 VMs (we can
            name them as VM1, VM2, VM3 and VM4), there is an need to let
            Heat template to execute one script(we have coded this
            Python script.) on VM1 when I execute "heat stack-update -f
            <my_stack_template_file> -p <my_param_list>"
            each time.
          </span><span lang="EN-US"><br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">VM1 can be associated with SoftwareConfig and
            SoftwareDevelopment resources.
          </span><span lang="EN-US"><br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">VM1 can NOT be rebooted or rebuilt during
            execution of "heat stack-update".</span><span lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"> </span><span lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">My question is:
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">(1) Could you advise a solution based on Heat
            for our project scenario?
          </span><span lang="EN-US"><br>
          </span></p>
      </div>
    </blockquote>
    Assuming you want to configure with shell scripts then this example
    would be closest to what you require<br>
<a class="moz-txt-link-freetext" href="http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/example-templates/example-script-template.yaml">http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/example-templates/example-script-template.yaml</a><br>
    <br>
    <blockquote
      cite="mid:73720C6DF3C97548A402AEEF5FB4D5D733D805@cnshjmbx01"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">(</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">2</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">) If a SoftwareDevelopment is set as "UPDATE"
            in “actions” field of template and associated with VM1 and
            SoftwareConfig and when "heat stack-update" happens, can the
            VM1 execute SoftwareConfig without reboot?</span><span
            lang="EN-US">
            <br>
          </span></p>
      </div>
    </blockquote>
    Yes, although default is to run on CREATE and UPDATE, which may be
    what you need anyway.<br>
    <br>
    Please note that the script is only triggered if something has
    actually changed in the configuration since the previous update. We
    plan to include the API request-id as a derived input value, which
    will guarantee retriggering on UPDATE regardless of whether anything
    has changed. In the meantime you might want to specify a unique
    value in the deployment input_values from a param passed in to
    stack-update. This will ensure re-triggering on every update<br>
    <blockquote
      cite="mid:73720C6DF3C97548A402AEEF5FB4D5D733D805@cnshjmbx01"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">(</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">3</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">) If SoftwareConfig can be execute successfully
            for VM1, then what packages/tools should be installed in VM
            instance?
          </span><span lang="EN-US"><br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">Such as hook-script.py (
          </span><span lang="EN-US"><a moz-do-not-send="true"
href="http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/elements/heat-config-script/install.d/hook-script.py"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080">http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/elements/heat-config-script/install.d/hook-script.py</span></a></span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"> (</span><span lang="EN-US"><a
              moz-do-not-send="true"
              href="http://git.openstack.org/cgit/opensta"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080">http://git.openstack.org/cgit/opensta</span></a></span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">...) ), is this a must for SoftwareDevelopment?
          </span><span lang="EN-US"><br>
          </span></p>
      </div>
    </blockquote>
    You can build an image with the recommended toolchain with these
    instructions:<br>
<a class="moz-txt-link-freetext" href="http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/elements/README.rst">http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/elements/README.rst</a><br>
    <br>
    Please note that you'll need to wait for this fix to be included in
    a released os-collect-config before the image will work for heat
    software-config:<br>
    <a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/91733/4">https://review.openstack.org/#/c/91733/4</a><br>
    <br>
    <blockquote
      cite="mid:73720C6DF3C97548A402AEEF5FB4D5D733D805@cnshjmbx01"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">(</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"
            lang="EN-US">4</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US">) Is my software version(icehouse) proper to
            support SoftwareDevelopment and SoftwareConfig?</span><span
            lang="EN-US">
            <br>
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080"
            lang="EN-US"></span><br>
        </p>
      </div>
    </blockquote>
    Yes, although keep an eye out for activity in
    <a class="moz-txt-link-freetext" href="http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config">http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config</a>
    for changes which require a new image to be built.<br>
    <br>
    Also I expect there will be some backports to icehouse for some
    issues, so please keep up to date with the latest icehouse release.<br>
  </body>
</html>