← Back to team overview

openstack team mailing list archive

Re: (no subject)

 

I  assume  Quantum Manager is enabled  ( the following flag specified in nova.conf )

network_manager=nova.network.quantum.manager.QuantumManager

Remove the existing network. Restart the Network Services .

Issue the below to create the 2 different networks as per your requirment . It Should work.

nova-manage network create --label=public --fixed_range_v4=10.0.1.0/24<http://10.0.1.0/24>

nova-manage network create --label=test-1 --fixed_range_v4=10.0.2.0/24<http://10.0.2.0/24>  --project_id=64a1c0f3-572b-4349-993d-36c06b746006




Meena Raja
Consultant
__________________________________________
WIPRO TECHNOLOGIES
No 53/1 Ganapa Towers ,Near Madivala Police Station , Hosur Main Road ,Bangalore-560068
Hand Phone : +91-9880549725 | Desk : +91-80-39912554 |Fax No: +91-80-25502160
Email : raja.meena@xxxxxxxxx | Website : www.wipro.com
________________________________
From: openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx [openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx] on behalf of Anton Haldin [ahaldin@xxxxxxxxxxxxxxxx]
Sent: Saturday, April 28, 2012 11:03 PM
To: livemoon
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] (no subject)

i think you should use --vlan=<vlanid> in command nova-manage network create

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.

what is the type of network_manager in you configuration?


2012/4/28 livemoon <mwjpiero@xxxxxxxxx<mailto:mwjpiero@xxxxxxxxx>>
According doc: http://docs.openstack.org/incubation/openstack-network/admin/content/Net-Create-dle455.html

when I create the second network, it return errors:

root@cloud:/etc/quantum# nova-manage network create --label=public --fixed_range_v4=10.0.1.0/24<http://10.0.1.0/24>
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
root@cloud:/etc/quantum# nova-manage network create --label=test-1 --fixed_range_v4=10.0.2.0/24<http://10.0.2.0/24> --uuid=64a1c0f3-572b-4349-993d-36c06b746006
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
Command failed, please check log for more info
2012-04-28 15:27:46 CRITICAL nova [req-5d2924e1-6dce-44ae-bc45-c6c880c9cf9a None None] Detected existing vlan with id 100
2012-04-28 15:27:46 TRACE nova Traceback (most recent call last):
2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 1744, in <module>
2012-04-28 15:27:46 TRACE nova     main()
2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 1731, in main
2012-04-28 15:27:46 TRACE nova     fn(*fn_args, **fn_kwargs)
2012-04-28 15:27:46 TRACE nova   File "/usr/bin/nova-manage", line 812, in create
2012-04-28 15:27:46 TRACE nova     fixed_cidr=fixed_cidr)
2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1843, in create_networks
2012-04-28 15:27:46 TRACE nova     NetworkManager.create_networks(self, context, vpn=True, **kwargs)
2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1401, in create_networks
2012-04-28 15:27:46 TRACE nova     network = self.db.network_create_safe(context, net)
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
2012-04-28 15:27:46 TRACE nova     return IMPL.network_create_safe(context, values)
2012-04-28 15:27:46 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper
2012-04-28 15:27:46 TRACE nova     return f(*args, **kwargs)
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
2012-04-28 15:27:46 TRACE nova     raise exception.DuplicateVlan(vlan=values['vlan'])
2012-04-28 15:27:46 TRACE nova DuplicateVlan: Detected existing vlan with id 100
2012-04-28 15:27:46 TRACE nova

Can anyone help me?

--
非淡薄无以明志,非宁静无以致远

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



Please do not print this email unless it is absolutely necessary. 

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. 

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. 

www.wipro.com

Follow ups

References