<div dir="ltr">There is a bug in the /usr/lib/python2.6/site-packages/nova/network/manager.py<div>on line 1066 'vlan_start' used as hash key:</div><div>kwargs["vlan_start"] = kwargs.get("vlan_start") or CONF.vlan_start<br>
</div><div><br></div><div>than passing kwargs as argument:</div><div>return self._do_create_networks(context, **kwargs)<br></div><div><br></div><div>But in the _do_create_networks (line 1188):</div><div>vlan = kwargs.get('vlan', None)<br>
</div><div><br></div><div>'vlan' used instead of 'vlan_start'!</div><div><br></div><div>As we can see on line 498 in /usr/lib/python2.6/site-packages/nova/cmd/manage.py, '--vlan' argument going to the 'vlan_start' variable, not 'vlan'.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 6:44 PM, Mike Smith <span dir="ltr"><<a href="mailto:mismith@overstock.com" target="_blank">mismith@overstock.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">I have experienced this exact same issue with nova-network on our Havana installs with Nova Network.  
<div><br>
</div>
<div><br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> Alexey Wasilyev [<a href="mailto:awasilyev@griddynamics.com" target="_blank">awasilyev@griddynamics.com</a>]<br>
<b>Sent:</b> Thursday, March 06, 2014 1:28 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] nova-manage network create bug<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">Hello guys
<div><br>
</div>
<div>I faced a bug in latest nova network:</div>
<div><br>
</div>
<div>
<div>[root@host awasilyev]# /usr/bin/nova-manage network create novanetwork <a href="http://172.26.0.0/24" target="_blank">
172.26.0.0/24</a>  --vlan 500</div>
<div>[root@host awasilyev]# /usr/bin/nova-manage network create novanetwork <a href="http://172.26.1.0/24" target="_blank">
172.26.1.0/24</a>  --vlan 501</div>
<div>[root@host awasilyev]# /usr/bin/nova-manage network create novanetwork <a href="http://172.26.2.0/24" target="_blank">
172.26.2.0/24</a>  --vlan 502</div>
<div>[root@host awasilyev]# nova-manage network list</div>
<div>id   <span style="white-space:pre-wrap"></span>IPv4              <span style="white-space:pre-wrap">
</span>IPv6           <span style="white-space:pre-wrap"></span>start address  <span style="white-space:pre-wrap">
</span>DNS1           <span style="white-space:pre-wrap"></span>DNS2          
<span style="white-space:pre-wrap"></span>VlanID         <span style="white-space:pre-wrap">
</span>project        <span style="white-space:pre-wrap"> </span>uuid</div>
<div>64   <span style="white-space:pre-wrap"></span><a href="http://172.26.0.0/24" target="_blank">172.26.0.0/24</a>    
<span style="white-space:pre-wrap"></span>None           <span style="white-space:pre-wrap">
</span>172.26.0.3     <span style="white-space:pre-wrap"></span>8.8.4.4        <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>500            <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>225c8cbf-89bb-4171-b405-0047012a7803</div>
<div>65   <span style="white-space:pre-wrap"></span><a href="http://172.26.1.0/24" target="_blank">172.26.1.0/24</a>    
<span style="white-space:pre-wrap"></span>None           <span style="white-space:pre-wrap">
</span>172.26.1.3     <span style="white-space:pre-wrap"></span>8.8.4.4        <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>502            <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>d461b285-d9c6-4a8c-ae39-5a657bb5926a</div>
<div>66   <span style="white-space:pre-wrap"></span><a href="http://172.26.2.0/24" target="_blank">172.26.2.0/24</a>    
<span style="white-space:pre-wrap"></span>None           <span style="white-space:pre-wrap">
</span>172.26.2.3     <span style="white-space:pre-wrap"></span>8.8.4.4        <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>504            <span style="white-space:pre-wrap">
</span>None           <span style="white-space:pre-wrap"></span>4c5a5d5b-24c8-4833-8bd0-6dcca11acb68</div>
<div><br>
</div>
<div>I try to create 3 networks, specifying exact vlan number for each network. But nova-manage creates networks using wrong vlan id's.</div>
<div><br>
</div>
<div>My previous openstack install (it was 3-4 monthes ago) does not have this bug.</div>
<div><br>
</div>
-- <br>
<span>Alexey Wasilyev</span><br>
<span>Systems Administrator</span><br>
<span>Grid Dynamics</span> </div>
</div>
</div>
</div></div></div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or
 the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in
 error, please notify sender immediately by telephone or return email. Thank you.<br>
</font>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><span>Alexey Wasilyev</span><br><span>Systems Administrator</span><br><span>Grid Dynamics</span>
</div>