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 <[email protected]<mailto:[email protected]>>
Date: Tuesday, February 2, 2016 at 9:35 PM
To: OpenStack Operations Mailing List 
<[email protected]<mailto:[email protected]>>
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 
<[email protected]<mailto:[email protected]>> 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

_______________________________________________
OpenStack-operators mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to