yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00322
[Bug 1093637] Re: Printing a list of networks terminates with exception
** Changed in: quantum/folsom
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1093637
Title:
Printing a list of networks terminates with exception
Status in OpenStack Quantum (virtual network service):
Fix Released
Status in quantum folsom series:
Fix Released
Bug description:
Hi,
I did the following:
1. Created 500 networks
2. Deleted 500 networks
Between 1 and 2 I did quantum net-list. The result was an exception:
openstack@ubuntu-devstack:~/devstack$ quantum net-list
'NoneType' object has no attribute 'network_type'
openstack@ubuntu-devstack:~/devstack$
More specifically:
2012-12-24 11:57:00 10346 INFO quantum.openstack.common.rpc.common [-] Connected to AMQP server on localhost:5672
2012-12-24 11:57:02 10346 ERROR quantum.api.v2.resource [-] index failed
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource Traceback (most recent call last):
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/resource.py", line 96, in resource
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource result = method(request=request, **args)
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 225, in index
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource return self._items(request, True, parent_id)
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 191, in _items
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource obj_list = obj_getter(request.context, **kwargs)
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 480, in get_networks
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource self._extend_network_dict_provider(context, net)
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 293, in _extend_network_dict_provider
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource network[provider.NETWORK_TYPE] = binding.network_type
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource AttributeError: 'NoneType' object has no attribute 'network_type'
2012-12-24 11:57:02 10346 TRACE quantum.api.v2.resource
The problem is that the operation on the database is not atomic.
Thanks
Gary
To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1093637/+subscriptions