<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Dave,<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">When we try to boot our VM we mount the label config-2 and access its contents,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">But it is seen that in some customer deployments, the label has different name (ex: CONFIG-2), hence our code breaks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">We want to make sure, if  it is always config-2 ?? on what basis it can change ?? or is it set at some location in Openstack config files ??<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">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Bhaskar<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"><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"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dave Walker [mailto:email@daviey.com]
<br>
<b>Sent:</b> Monday, April 27, 2015 2:35 PM<br>
<b>To:</b> Bhaskar Rao<br>
<b>Cc:</b> openstack-qa@lists.openstack.org; openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] config drive on opentack label query<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><br>
On 27 Apr 2015 09:32, "Bhaskar Rao" <<a href="mailto:bhaskar.rao@citrix.com">bhaskar.rao@citrix.com</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
>  <br>
><br>
> With help of user data files, we can provide instance specific details (like IP address, Gateway etc.) to VM booting in OpenStack environment.<br>
><br>
> This user data file gets attached with VM as part of specific label for example config-2.<br>
><br>
>  <br>
><br>
> We want to know how this labeling mechanism works? Who decides to give name ‘config-2’ to use for supplied info?<br>
><br>
> Is there any possibility that instead of ‘config-2’, it can use another name e.g. ‘config-x’?<br>
><br>
>  <br>
><br>
> Thanks,<br>
><br>
> Bhaskar<br>
><o:p></o:p></p>
<p>Hi,<o:p></o:p></p>
<p>The name is specifically crafted for config-drive version 2. The reference consumer of this is cloud-init (on linux), but other projects such as cloudbase-init (on windows), also consume this standard.  This standard was originally written for OpenStack.<o:p></o:p></p>
<p>Version 2 was created due to short fallings with the original spec, and both of these consumers specifically match on the device being named 'config-v2' to avoid miss-parsing the wrong device. Therefore changing the name in the hard coded portion of nova
 would break the consumers.<o:p></o:p></p>
<p>To flip the topic slightly, why would you want to use a different named device?  What are you trying to do?<o:p></o:p></p>
<p>--<br>
Kind Regards,<br>
Dave Walker<o:p></o:p></p>
</div>
</body>
</html>