We have discussed this a bunch in the past, and the right implementation here is to put the network configuration in a standard format (json?) in both the config drive and metadata.
cloud-init can be modified to read from that format and write out a proper /etc/network/interfaces (or appropriate files for the guest distro) Vish On Jun 2, 2014, at 10:20 AM, ebaysf, yvempati <[email protected]> wrote: > Hi, > Thanks for getting back to me. > > The current flat_injected flag is set in the hypervisor nova.conf. The > config drive data uses this flag to set the static network configuration. > What I am trying to accomplish is to pass the flat_injected file through > the instance metadata during the boot time and use it during the config > drive network configuration rather setting the flag at the hypervisor > level. > > Regards, > Yashwanth Vempati > > On 6/2/14, 9:30 AM, "Ben Nemec" <[email protected]> wrote: > >> On 05/30/2014 05:29 PM, ebaysf, yvempati wrote: >>> Hello all, >>> I am new to the openstack community and I am looking for feedback. >>> >>> We would like to implement a feature that allows user to pass >>> flat_injected flag through instance metadata. We would like to enable >>> this feature for images that support config drive. This feature helps us >>> to decrease the dependency on dhcp server and to maintain a uniform >>> configuration across all the hypervisors running in our cloud. In order >>> to enable this feature should I create a blue print and later implement >>> or can this feature be implemented by filing a bug. >> >> I'm not sure I understand what you're trying to do here. As I recall, >> when flat_injected is set the static network configuration is already >> included in the config drive data. I believe there have been some >> changes around file injection, but that shouldn't affect config drive as >> far as I know. >> >> If you just need that functionality and it's not working anymore then a >> bug might be appropriate, but if you need something else then a >> blueprint/spec will be needed. >> >> -Ben >> >> _______________________________________________ >> OpenStack-dev mailing list >> [email protected] >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > _______________________________________________ > OpenStack-dev mailing list > [email protected] > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
