yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36561
[Bug 1482092] [NEW] oslo_versionedobjects raise exception when boot instance with nova-network
Public bug reported:
oslo_versionedobjects will raise TypeError exception when boot instance
with nova-network.
I'm using devstack with
nova: 00af05e13f5f0a2d8d10baf238dad553a86bc6e0
oslo_versionedobjects: 5.2
Nova had remove VirtaulInterface's super class base.NovaObjectDictCompat
https://github.com/openstack/nova/commit/91f8cc9c153b61a5aed081c2d1b44b21f35d3311
It can work above oslo_versionedobjects 6.0.
But oslo_versionedobjects 5.2 still using dict to assign value.
https://github.com/openstack/oslo.versionedobjects/blob/0.5.2/oslo_versionedobjects/base.py#L205
Maybe we should update oslo_versionedobjects version in global-
requirement.
Following is traceback in n-net:
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/floating_ips.py", line 113, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher **kwargs)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 496, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher context, instance_uuid)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 490, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher networks, macs)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 755, in _allocate_mac_addresses
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher network['id'])
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 774, in _add_virtual_interface
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher vif.create()
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 205, in wrapper
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher self[key] = field.from_primitive(self, key, value)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher TypeError: 'VirtualInterface' object does not support item assignment
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher
** Affects: nova
Importance: Undecided
Assignee: Chung Chih, Hung (lyanchih)
Status: New
** Changed in: nova
Assignee: (unassigned) => Chung Chih, Hung (lyanchih)
--
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/1482092
Title:
oslo_versionedobjects raise exception when boot instance with nova-
network
Status in OpenStack Compute (nova):
New
Bug description:
oslo_versionedobjects will raise TypeError exception when boot
instance with nova-network.
I'm using devstack with
nova: 00af05e13f5f0a2d8d10baf238dad553a86bc6e0
oslo_versionedobjects: 5.2
Nova had remove VirtaulInterface's super class base.NovaObjectDictCompat
https://github.com/openstack/nova/commit/91f8cc9c153b61a5aed081c2d1b44b21f35d3311
It can work above oslo_versionedobjects 6.0.
But oslo_versionedobjects 5.2 still using dict to assign value.
https://github.com/openstack/oslo.versionedobjects/blob/0.5.2/oslo_versionedobjects/base.py#L205
Maybe we should update oslo_versionedobjects version in global-
requirement.
Following is traceback in n-net:
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/floating_ips.py", line 113, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher **kwargs)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 496, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher context, instance_uuid)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 490, in allocate_for_instance
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher networks, macs)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 755, in _allocate_mac_addresses
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher network['id'])
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/network/manager.py", line 774, in _add_virtual_interface
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher vif.create()
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 205, in wrapper
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher self[key] = field.from_primitive(self, key, value)
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher TypeError: 'VirtualInterface' object does not support item assignment
2015-08-06 05:08:31.264 TRACE oslo_messaging.rpc.dispatcher
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1482092/+subscriptions
Follow ups