yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #03347
[Bug 1187244] Re: quantum NetworkDuplicated error , when boot a vm with two port id which belongs to the same network .
Eh, still why would you attach multiple subnets to an instance to do
this type of segregation? This use case doesn't make much sense to me.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1187244
Title:
quantum NetworkDuplicated error ,when boot a vm with two port id which
belongs to the same network .
Status in OpenStack Compute (Nova):
Invalid
Bug description:
in /var/log/nova/nova-api.log
```
013-06-04 12:01:17.998 ERROR nova.api.openstack [req-ea58ab37-aea6-40a4-b85f-2ab19285101e 5d45600dae844064b514f1549fe0dab9 b082fcb819db4104bb6d3dc18bcc4f17] Caught error: Network 5332f0f7-3156-4961-aa67-0b8507265fa5 is duplicated.
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack Traceback (most recent call last):
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return req.get_response(self.application)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack application, catch_exc_info=False)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return resp(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return self.app(env, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return resp(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return resp(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return resp(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack response = self.app(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return resp(environ, start_response)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 890, in __call__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack content_type, body, accept)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 942, in _process_stack
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1022, in dispatch
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack return method(req=request, **action_args)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 898, in create
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack scheduler_hints=scheduler_hints)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 85, in inner
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack rv = f(*args, **kwargs)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 962, in create
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack scheduler_hints=scheduler_hints)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 676, in _create_instance
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack reservation_id, scheduler_hints)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 634, in _validate_and_provision_instance
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack QUOTAS.rollback(context, quota_reservations)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack self.gen.next()
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 522, in _validate_and_provision_instance
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack self._check_requested_networks(context, requested_networks)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 358, in _check_requested_networks
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack self.network_api.validate_networks(context, requested_networks)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 454, in validate_networks
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack raise exception.NetworkDuplicated(network_id=net_id)
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack NetworkDuplicated: Network 5332f0f7-3156-4961-aa67-0b8507265fa5 is duplicated.
2013-06-04 12:01:17.998 2741 TRACE nova.api.openstack
2013-06-04 12:01:18.126 INFO nova.api.openstack [req-ea58ab37-aea6-40a4-b85f-2ab19285101e 5d45600dae844064b514f1549fe0dab9 b082fcb819db4104bb6d3dc18bcc4f17] http://172.16.136.111:8774/v2/b082fcb819db4104bb6d3dc18bcc4f17/os-volumes_boot returned with HTTP 500
2013-06-04 12:01:18.129 INFO nova.osapi_compute.wsgi.server [req-ea58ab37-aea6-40a4-b85f-2ab19285101e 5d45600dae844064b514f1549fe0dab9 b082fcb819db4104bb6d3dc18bcc4f17] 172.16.136.111 "POST /v2/b082fcb819db4104bb6d3dc18bcc4f17/os-volumes_boot HTTP/1.1" status: 500 len: 335 time: 0.4138958
```
how to reproduce this error
we need two subnets which belongs to one network
in my environment,
network id is 5332f0f7-3156-4961-aa67-0b8507265fa5
subnet1 id is e8a9be74-2f39-4d7e-9287-c5b85b573cca
subnet2 id is dca45033-e506-42e4-bf05-aaccd0591c55
1. create ports from subnet1 and subnet2
quantum port-create --fixed-ip subnet_id=e8a9be74-2f39-4d7e-9287-c5b85b573cca 5332f0f7-3156-4961-aa67-0b8507265fa5
port id is : dca1f741-a1fc-444c-b764-7aa74ed29d1f
quantum port-create --fixed-ip subnet_id=dca45033-e506-42e4-bf05-aaccd0591c55 5332f0f7-3156-4961-aa67-0b8507265fa5
port id is : 72acaba1-6e84-468b-b3f7-52eb89972eb7
2. boot with two port id
nova boot --flavor 1 --nic port-id=dca1f741-a1fc-
444c-b764-7aa74ed29d1f --nic port-id=72acaba1-6e84-468b-
b3f7-52eb89972eb7 --block_device_mapping vda=1cf2a0b0-8c7f-4de1-8dba-
91bae1f1856c:::0 m1
ERROR: The server has either erred or is incapable of performing the
requested operation. (HTTP 500) (Request-ID: req-ea58ab37-aea6-40a4
-b85f-2ab19285101e)
it returns an error , and there is a NetworkDuplicated error in
/var/log/nova/nova-api.log
i refered this bug https://bugs.launchpad.net/nova/+bug/1165088 , but
it no helps .
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1187244/+subscriptions