<p dir="ltr"><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>
></p>
<p dir="ltr">Hi,</p>
<p dir="ltr">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.</p>
<p dir="ltr">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.</p>
<p dir="ltr">To flip the topic slightly, why would you want to use a different named device?  What are you trying to do?</p>
<p dir="ltr">--<br>
Kind Regards,<br>
Dave Walker<br>
</p>