Really? The same cloud-init as ubuntu uses?<div><br></div><div>I had thought there was plenty of ubuntu/debian-isms hard coded?<br clear="all"><br>Thanks,<br>Kiall<br>
<br><br><div class="gmail_quote">On Wed, Oct 3, 2012 at 1:26 PM, Tim Bell <span dir="ltr"><<a href="mailto:Tim.Bell@cern.ch" target="_blank">Tim.Bell@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cloud-init is also available on RHEL systems too. We’re using it extensively to contextualise VMs on Scientific Linux.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">We’ve even tried a windows version but this is not as functional.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Tim<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">

<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+tim.bell=<a href="mailto:cern.ch@lists.launchpad.net" target="_blank">cern.ch@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Btim.bell" target="_blank">openstack-bounces+tim.bell</a>=<a href="mailto:cern.ch@lists.launchpad.net" target="_blank">cern.ch@lists.launchpad.net</a>] <b>On Behalf Of </b>Kiall Mac Innes<br>

<b>Sent:</b> 03 October 2012 14:13<br><b>To:</b> Srikanth Kumar Lingala<br><b>Cc:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></span></p><div><div class="h5"><br><b>Subject:</b> Re: [Openstack] File Injection through Horizon<u></u><u></u></div>

</div><p></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi Srikanth,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">
File Injection is not available through Horizon.<u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Atul is describing a different feature that can be used to achieve similar results. The contents of "User-Data" will be accessible to the instance via "<a href="http://169.254.169.254/latest/user-data" target="_blank">http://169.254.169.254/latest/user-data</a>" - Ubuntu ships with a tool called cloud-init that makes use of this data if available. <u></u><u></u></p>

</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Eg One of the simple use cases for cloud-init is, if the data starts with "#!", it will assume it's a shell script and download + execute it. This can, in a roundabout way, be used to achieve similar results to the file injection feature.<u></u><u></u></p>

</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>Thanks,<br>Kiall<br><br><u></u><u></u></p><div><p class="MsoNormal">On Wed, Oct 3, 2012 at 12:59 PM, Srikanth Kumar Lingala <<a href="mailto:srikanthkumar.lingala@gmail.com" target="_blank">srikanthkumar.lingala@gmail.com</a>> wrote:<u></u><u></u></p>

<p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal">I am able to create an instance with the following command (along with File Injection):<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div>

<div><p class="MsoNormal"><b><i>#> nova boot --file /root/inject.txt=/root/inject.txt --flavor=1 --image=4671e99b-1c01-42e8-94d6-2405a59bab57 testserver1</i></b><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>

</div><div><p class="MsoNormal">Now, what I need is to do the same from the Horizon. I will select a file to inject from Horizon and Launch the Instance, it should inject that file.<u></u><u></u></p></div><div><p class="MsoNormal">

<u></u> <u></u></p></div><div><p class="MsoNormal">Regards,<u></u><u></u></p></div><div><p class="MsoNormal">Srikanth.<u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div>
<p class="MsoNormal">
On Wed, Oct 3, 2012 at 4:18 PM, Atul Jha <<a href="mailto:Atul.Jha@csscorp.com" target="_blank">Atul.Jha@csscorp.com</a>> wrote:<u></u><u></u></p><p class="MsoNormal">Hi,<br><br>The test step followed for user-data as follows.<br>

<br>1. Got image from <a href="http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-i386-disk1.img" target="_blank">http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-i386-disk1.img</a><br>

<br>2. Booted it from Horizon and passed the script in the file<br><br>#!/bin/sh<br>mkdir /home/ubuntu/testdir<br><br>3. Logged in to the machine with<br><br>ssh -i <mykey.pub> ubuntu@IP<br><br>And i can see the directory created.<br>

<br><br>File injection via Horizon uses cloud-init and i have tested it on Ubuntu 12.04 i have no idea about other distributions.<br><br>You can file more about cloud-init here :- <a href="https://help.ubuntu.com/community/CloudInit" target="_blank">https://help.ubuntu.com/community/CloudInit</a><br>

<br>And thanks, i will add this in the doc somewhere. :)<br><br>Hope it helps.<br><br><br>Atul jha<br><br>________________________________________<br>From: Shake Chen [<a href="mailto:shake.chen@gmail.com" target="_blank">shake.chen@gmail.com</a>]<br>

Sent: Wednesday, October 03, 2012 2:28 PM<br>To: Srikanth Kumar Lingala<br>Cc: Atul Jha; <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>Subject: Re: [Openstack] File Injection through Horizon<u></u><u></u></p>

<div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>I also have same question.<br><br>can you give us example. how to injection throuth Horizon?<br><br><br><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">

On Wed, Oct 3, 2012 at 3:24 PM, Srikanth Kumar Lingala <<a href="mailto:srikanthkumar.lingala@gmail.com" target="_blank">srikanthkumar.lingala@gmail.com</a><mailto:<a href="mailto:srikanthkumar.lingala@gmail.com" target="_blank">srikanthkumar.lingala@gmail.com</a>>> wrote:<br>

Hi Atul,<br>Can you please guide me how to do File Injection through Horizon?<br><br>Regards,<br>Srikanth.<u></u><u></u></p></div><div><p class="MsoNormal">On Wed, Oct 3, 2012 at 12:41 PM, Atul Jha <<a href="mailto:Atul.Jha@csscorp.com" target="_blank">Atul.Jha@csscorp.com</a><mailto:<a href="mailto:Atul.Jha@csscorp.com" target="_blank">Atul.Jha@csscorp.com</a>>> wrote:<br>

Hi,<br><snip><br>I have some doubts regarding File Injection.<br>Can File Injection can be done through Horizon, while creating an Instance?<br>While creating an Instance from Horizon, a field called 'User Data' [text area] is there. Is that field is related to File Injection? Can anyone tell me, the values we need to give for 'User Data'?<br>

</snip><br>Yes.<br><br><br>Cheers!!<br><br>Atul Jha<br><a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a><br><br><br>_______________________________________________<br>

Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><u></u><u></u></p></div><p class="MsoNormal">Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><mailto:<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>><u></u><u></u></p>

<div><p class="MsoNormal" style="margin-bottom:12.0pt">Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>

<br><br><br><br>--<br>Shake Chen<u></u><u></u></p></div><p class="MsoNormal"><a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a><u></u><u></u></p>

</div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>

Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>

More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></blockquote>

</div><br></div>