<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 06/14/2013 12:35 PM, Minton, Rich
      wrote:<br>
    </div>
    <blockquote
      cite="mid:BCD47F9ED3ABA442A8713ECE06CB9468219FF53A@HVXDSP43.us.lmco.com"
      type="cite">
      <pre wrap="">Additional info:

I have the latest cloud-init installed in my images, cloud-init-0.7.1-2.el6.noarch.
When I run "curl <a class="moz-txt-link-freetext" href="http://169.254.169.254/2009-04-04/user-data">http://169.254.169.254/2009-04-04/user-data</a>" inside my instance the command returns the metadata I passed in the "Configuration Script" field in Horizon Dashboard but the script is not run during boot of the instance.


Rick
</pre>
    </blockquote>
    Rick,<br>
    <br>
    Couple possibilities <br>
    a) Cloud-init is not downloading the userdata<br>
    b) The userdata is not formatted in a way that cloud-init can
    understand<br>
    <br>
    To eliminate A, check for a file called<br>
    /var/lib/cloud/userdata.txt<br>
    <br>
    If this file is present, cloudinit has downloaded the userdata<br>
    <br>
    In order to actually run the data, the userdata must be formatted as
    a mime multipart message with a cloud-config file as well as a
    cloud-boothook mime type.  I don't think there is a generic way to
    run a userdata command with cloudinit without formatting it into a
    mime multipart message.<br>
    <br>
    It may be that horizon doesn't do this for you, since the formatting
    of the mime multipart message is cloud-init specific.<br>
    <br>
    See:<br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a
href="http://sdake.wordpress.com/2013/03/03/how-we-use-cloudinit-in-openstack-heat/">http://sdake.wordpress.com/2013/03/03/how-we-use-cloudinit-in-openstack-heat/</a><br>
    <br>
    I believe the OpenStack docs and tools like Horizon (correct me if
    I'm wrong Horizon core devs) are designed with using cirros images
    in mind, which do a curl on the address you mentioned and run that
    script in rc.local.<br>
    <br>
    This is different then how cloud-init behaves.<br>
    <br>
    Regards<br>
    -steve<br>
    <br>
    <br>
    -----Original Message-----
    From: Perry Myers [<a class="moz-txt-link-freetext" href="mailto:pmyers@redhat.com">mailto:pmyers@redhat.com</a>] Sent: Friday, June 14,
    2013 3:10 PM
    To: Minton, Rich; Julie Pichon; Matthias Runge
    Cc: <a class="moz-txt-link-abbreviated" href="mailto:rhos-list@redhat.com">rhos-list@redhat.com</a>
    Subject: EXTERNAL: Re: [rhos-list] Passing user-data.
    Adding some of our horizon folks in case they miss this
    On 06/14/2013 11:34 AM, Minton, Rich wrote:
    <blockquote
      cite="mid:BCD47F9ED3ABA442A8713ECE06CB9468219FF53A@HVXDSP43.us.lmco.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">Has anyone had any success passing user-data within the Horizon 
Dashboard when launching an instance? If so, what is the secret?

 

Thanks in advance.

Rick
</pre>
      </blockquote>
      <pre wrap="">

_______________________________________________
rhos-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rhos-list@redhat.com">rhos-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhos-list">https://www.redhat.com/mailman/listinfo/rhos-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>