<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
I  assume  Quantum Manager is enabled  ( the following flag specified in nova.conf )<br>
<br>
network_manager=nova.network.quantum.manager.QuantumManager <br>
<pre class="literallayout"><br>Remove the existing network. Restart the Network Services .<br><br>Issue the below to create the 2 different networks as per your requirment . It Should work.<br><br><a id="Net-Create-dle455">nova-manage network create --label=public --fixed_range_v4=</a><a href="http://10.0.1.0/24" target="_blank">10.0.1.0/24</a> <a id="Net-Create-dle455"><br><br></a><a id="Net-Create-dle455">nova-manage network create --label=test-1 --fixed_range_v4=</a><a href="http://10.0.2.0/24" target="_blank">10.0.2.0/24</a> <a id="Net-Create-dle455"> --project_id=64a1c0f3-572b-4349-993d-36c06b746006 </a> </pre>
<div><br>
<br>
<br>
<br>
<div style="font-family: Tahoma; font-size: 13px;">Meena Raja<br>
Consultant<br>
__________________________________________<br>
<span class="heading"><b>WIPRO TECHNOLOGIES<br>
</b></span>No 53/1 Ganapa Towers ,Near Madivala Police Station , Hosur Main Road ,Bangalore-560068<br>
Hand Phone : +91-9880549725 | Desk : +91-80-39912554 |Fax No: +91-80-25502160<br>
Email : raja.meena@wipro.com | Website : www.wipro.com<br>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF521022"><font color="#000000" face="Tahoma" size="2"><b>From:</b> openstack-bounces+raja.meena=wipro.com@lists.launchpad.net [openstack-bounces+raja.meena=wipro.com@lists.launchpad.net] on behalf of Anton Haldin [ahaldin@griddynamics.com]<br>
<b>Sent:</b> Saturday, April 28, 2012 11:03 PM<br>
<b>To:</b> livemoon<br>
<b>Cc:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> Re: [Openstack] (no subject)<br>
</font><br>
</div>
<div></div>
<div>
<div class="gmail_extra">i think you should use --vlan=<vlanid> in command nova-manage network create</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I thought by default nova-manage try to use vlan_start (default is vlanid 100) to insert it in db table networks. and if you already have one network with vlanid100 , it should return such error about duplicated vlan.<br>
<br>
what is the type of network_manager in you configuration?</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2012/4/28 livemoon <span dir="ltr"><<a href="mailto:mwjpiero@gmail.com" target="_blank">mwjpiero@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
According doc: <a href="http://docs.openstack.org/incubation/openstack-network/admin/content/Net-Create-dle455.html" target="_blank">http://docs.openstack.org/incubation/openstack-network/admin/content/Net-Create-dle455.html</a>
<div><br>
</div>
<div>when I create the second network, it return errors:</div>
<div><br>
</div>
<div>
<div>root@cloud:/etc/quantum# nova-manage network create --label=public --fixed_range_v4=<a href="http://10.0.1.0/24" target="_blank">10.0.1.0/24</a> </div>
<div>2012-04-28 15:27:21 DEBUG nova.utils [req-6001e498-c504-4bf1-ae5b-537d08e66325 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=21612) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658</div>
<div>root@cloud:/etc/quantum# nova-manage network create --label=test-1 --fixed_range_v4=<a href="http://10.0.2.0/24" target="_blank">10.0.2.0/24</a> --uuid=64a1c0f3-572b-4349-993d-36c06b746006 </div>
<div>2012-04-28 15:27:46 DEBUG nova.utils [req-5d2924e1-6dce-44ae-bc45-c6c880c9cf9a None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=21756) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658</div>
<div>Command failed, please check log for more info</div>
<div>2012-04-28 15:27:46 CRITICAL nova [req-5d2924e1-6dce-44ae-bc45-c6c880c9cf9a None None] Detected existing vlan with id 100</div>
<div>2012-04-28 15:27:46 TRACE nova Traceback (most recent call last):</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 1744, in <module></div>
<div>2012-04-28 15:27:46 TRACE nova     main()</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 1731, in main</div>
<div>2012-04-28 15:27:46 TRACE nova     fn(*fn_args, **fn_kwargs)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 812, in create</div>
<div>2012-04-28 15:27:46 TRACE nova     fixed_cidr=fixed_cidr)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1843, in create_networks</div>
<div>2012-04-28 15:27:46 TRACE nova     NetworkManager.create_networks(self, context, vpn=True, **kwargs)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1401, in create_networks</div>
<div>2012-04-28 15:27:46 TRACE nova     network = self.db.network_create_safe(context, net)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 731, in network_create_safe</div>
<div>2012-04-28 15:27:46 TRACE nova     return IMPL.network_create_safe(context, values)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper</div>
<div>2012-04-28 15:27:46 TRACE nova     return f(*args, **kwargs)</div>
<div>2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1884, in network_create_safe</div>
<div>2012-04-28 15:27:46 TRACE nova     raise exception.DuplicateVlan(vlan=values['vlan'])</div>
<div>2012-04-28 15:27:46 TRACE nova DuplicateVlan: Detected existing vlan with id 100</div>
<div>2012-04-28 15:27:46 TRACE nova </div>
<div><br>
</div>
<div>Can anyone help me?</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
非淡薄无以明志,非宁静无以致远<br>
</font></span></div>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>

<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</body>
</html>