<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.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]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tim<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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=cern.ch@lists.launchpad.net [mailto:openstack-bounces+tim.bell=cern.ch@lists.launchpad.net] <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> openstack@lists.launchpad.net<br><b>Subject:</b> Re: [Openstack] File Injection through Horizon<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Srikanth,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>File Injection is not available through Horizon.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></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">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. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></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.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>Thanks,<br>Kiall<br><br><o:p></o:p></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:<o:p></o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><div><p class=MsoNormal>I am able to create an instance with the following command (along with File Injection):<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></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><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal>Srikanth.<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></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:<o:p></o:p></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<o:p></o:p></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><o:p></o:p></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.<o:p></o:p></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><o:p></o:p></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>><o:p></o:p></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<o:p></o:p></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><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></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">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><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>