[Openstack-operators] Config Drive has no content/0000
Kris G. Lindgren
klindgren at godaddy.com
Wed Feb 3 04:50:40 UTC 2016
We noticed the same thing. It a simple patch in /nova/virt/netutils.py (we have been running this since icehouse).
Below is our current patch for kilo.
@@ -104,8 +104,9 @@ def get_injected_network_template(network_info, use_ipv6=None, template=None,
ifc_num += 1
- if not network.get_meta('injected'):
+ # GD force network template in config drive on dhcp network
+ #if not network.get_meta('injected'):
+ # continue
hwaddress = vif.get('address')
address = None
@@ -114,8 +115,8 @@ def get_injected_network_template(network_info, use_ipv6=None, template=None,
broadcast = None
dns = None
- if subnet_v4.get_meta('dhcp_server') is not None:
+ #if subnet_v4.get_meta('dhcp_server') is not None:
+ # continue
ip = subnet_v4['ips']
Senior Linux Systems Engineer
From: TAO ZHOU <angeloudy at gmail.com<mailto:angeloudy at gmail.com>>
Date: Tuesday, February 2, 2016 at 9:35 PM
To: OpenStack Operations Mailing List <openstack-operators at lists.openstack.org<mailto:openstack-operators at lists.openstack.org>>
Subject: Re: [Openstack-operators] Config Drive has no content/0000
When you create the network you need to set dhcp to false, otherwise, no static ip in config drive.
On Thu, Jul 2, 2015 at 9:59 AM, TAO ZHOU <angeloudy at gmail.com<mailto:angeloudy at gmail.com>> wrote:
I have an icehouse openstack setup.
I have the following lines in nova.conf:
force_config_drive = always
config_drive_cdrom = True
Whenever I launch an instance, I can see a content directory in the config drive
openstack/content/0000 contains all network interfaces.
I can simply configure the static IP address from openstack/content/0000.
Now I have a new openstack cluster setup and I cannot see this content directory when I launch a VM.
I checked my configuration files and I can't find any difference with my old cluster.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-operators