<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>I just noticed you said icehouse‚Ķ</div>
<div><br>
</div>
<div>Here is our icehouse patch:</div>
<div><br>
</div>
<div>
<div>@@ -88,8 +88,8 @@ def get_injected_network_template(network_info, use_ipv6=CONF.use_ipv6,</div>
<div> </div>
<div>         ifc_num += 1</div>
<div> </div>
<div>-        if not network.get_meta('injected'):</div>
<div>-            continue</div>
<div>+        #if not network.get_meta('injected'):</div>
<div>+        #    continue</div>
<div> </div>
<div>         address = None</div>
<div>         netmask = None</div>
<div> @@ -97,8 +97,8 @@ def get_injected_network_template(network_info, use_ipv6=CONF.use_ipv6,</div>
<div>         broadcast = None</div>
<div>         dns = None</div>
<div>         if subnet_v4:</div>
<div>-            if subnet_v4.get_meta('dhcp_server') is not None:</div>
<div>-                continue</div>
<div>+            #if subnet_v4.get_meta('dhcp_server') is not None:</div>
<div>+            #    continue</div>
<div> </div>
<div>             if subnet_v4['ips']:</div>
<div>                 ip = subnet_v4['ips'][0]</div>
</div>
<div><span style="font-family: Calibri;">___________________________________________________________________</span></div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Kris Lindgren</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Senior Linux Systems Engineer</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">GoDaddy</span></font></font></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"Kris G. Lindgren" <<a href="mailto:klindgren@godaddy.com">klindgren@godaddy.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, February 2, 2016 at 9:50 PM<br>
<span style="font-weight:bold">To: </span>TAO ZHOU <<a href="mailto:angeloudy@gmail.com">angeloudy@gmail.com</a>>, OpenStack Operations Mailing List <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack-operators] Config Drive has no content/0000<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>We noticed the same thing.  It a simple patch in /nova/virt/netutils.py (we have been running this since icehouse).</div>
<div><br>
</div>
<div>Below is our current patch for kilo.</div>
<div><br>
</div>
<div>
<div>--- a/nova/virt/netutils.py</div>
<div>+++ b/nova/virt/netutils.py</div>
<div><br>
</div>
<div>@@ -104,8 +104,9 @@ def get_injected_network_template(network_info, use_ipv6=None, template=None,</div>
<div> </div>
<div>         ifc_num += 1</div>
<div> </div>
<div>-        if not network.get_meta('injected'):</div>
<div>-            continue</div>
<div>+        # GD force network template in config drive on dhcp network</div>
<div>+        #if not network.get_meta('injected'):</div>
<div>+        #    continue</div>
<div> </div>
<div>         hwaddress = vif.get('address')</div>
<div>         address = None</div>
<div> @@ -114,8 +115,8 @@ def get_injected_network_template(network_info, use_ipv6=None, template=None,</div>
<div>         broadcast = None</div>
<div>         dns = None</div>
<div>         if subnet_v4:</div>
<div>-            if subnet_v4.get_meta('dhcp_server') is not None:</div>
<div>-                continue</div>
<div>+            #if subnet_v4.get_meta('dhcp_server') is not None:</div>
<div>+            #    continue</div>
<div> </div>
<div>             if subnet_v4['ips']:</div>
<div>                 ip = subnet_v4['ips'][0]</div>
</div>
<div><br>
</div>
<div>
<div id="">
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">___________________________________________________________________</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Kris Lindgren</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">Senior Linux Systems Engineer</span></font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-size: 14px;">GoDaddy</span></font></font></div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>TAO ZHOU <<a href="mailto:angeloudy@gmail.com">angeloudy@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, February 2, 2016 at 9:35 PM<br>
<span style="font-weight:bold">To: </span>OpenStack Operations Mailing List <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack-operators] Config Drive has no content/0000<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">When you create the network you need to set dhcp to false, otherwise, no static ip in config drive.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jul 2, 2015 at 9:59 AM, TAO ZHOU <span dir="ltr">
<<a href="mailto:angeloudy@gmail.com" target="_blank">angeloudy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
Hi,</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
I have an icehouse openstack setup.</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
I have the following lines in nova.conf:</p>
<pre style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-break:break-all;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;clear:both;background-color:transparent"><span style="color:rgb(0,0,0)">force_config_drive </span><span style="color:rgb(102,102,0)">=</span><span style="color:rgb(0,0,0)"> always
config_drive_cdrom </span><span style="color:rgb(102,102,0)">=</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,136)">True</span></code></pre>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
Whenever I launch an instance, I can see a content directory in the config drive</p>
<pre style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-break:break-all;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;clear:both;background-color:transparent"><span style="color:rgb(0,0,0)">openstack</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">content</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,102,102)">0000</span><span style="color:rgb(0,0,0)"> contains all network interfaces</span><span style="color:rgb(102,102,0)">.</span></code></pre>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
I can simply configure the static IP address from openstack/content/0000.</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
Now I have a new openstack cluster setup and I cannot see this content directory when I launch a VM.</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
I checked my configuration files and I can't find any difference with my old cluster.</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
Any ideas?</p>
<p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;color:rgb(75,75,75)">
Thanks</p>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span>
</body>
</html>