[Openstack-operators] Config Drive has no content/0000
Kris G. Lindgren
klindgren at godaddy.com
Wed Feb 3 04:55:18 UTC 2016
I just noticed you said icehouse…
Here is our icehouse patch:
@@ -88,8 +88,8 @@ def get_injected_network_template(network_info, use_ipv6=CONF.use_ipv6,
ifc_num += 1
- if not network.get_meta('injected'):
- continue
+ #if not network.get_meta('injected'):
+ # continue
address = None
netmask = None
@@ -97,8 +97,8 @@ def get_injected_network_template(network_info, use_ipv6=CONF.use_ipv6,
broadcast = None
dns = None
if subnet_v4:
- if subnet_v4.get_meta('dhcp_server') is not None:
- continue
+ #if subnet_v4.get_meta('dhcp_server') is not None:
+ # continue
if subnet_v4['ips']:
ip = subnet_v4['ips'][0]
___________________________________________________________________
Kris Lindgren
Senior Linux Systems Engineer
GoDaddy
From: "Kris G. Lindgren" <klindgren at godaddy.com<mailto:klindgren at godaddy.com>>
Date: Tuesday, February 2, 2016 at 9:50 PM
To: TAO ZHOU <angeloudy at gmail.com<mailto:angeloudy at gmail.com>>, 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
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.
--- a/nova/virt/netutils.py
+++ b/nova/virt/netutils.py
@@ -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'):
- continue
+ # 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:
- if subnet_v4.get_meta('dhcp_server') is not None:
- continue
+ #if subnet_v4.get_meta('dhcp_server') is not None:
+ # continue
if subnet_v4['ips']:
ip = subnet_v4['ips'][0]
___________________________________________________________________
Kris Lindgren
Senior Linux Systems Engineer
GoDaddy
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:
Hi,
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.
Any ideas?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160203/86bd9dc3/attachment.html>
More information about the OpenStack-operators
mailing list