yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #53656
[Bug 1600698] [NEW] no network info will lead to valueerror
Public bug reported:
liberty release, when the instance don't have any network info ,seems
master has same issue
[root@xcat ~] # nova show fc76de3f-a022-45b4-8998-9dd9bf4bd1e4
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| network | |
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | 1234 |
[root@xcat ~] # neutron net-list
+--------------------------------------+------------+-------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+------------+-------------------------------------------------------+
| eff8994b-8663-4104-b349-332ee6c3195f | singleflat | 3c17106c-5b26-4406-88f6-da8bf2c38e64 192.168.222.0/24 |
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher executor_callback))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher executor_callback)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher payload)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 350, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance=instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 323, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 400, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 378, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 366, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2522, in start_instance
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher self._power_on(context, instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2490, in _power_on
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher network_info = self.network_api.get_instance_nw_info(context, instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/base_api.py", line 244, in get_instance_nw_info
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher result = self._get_instance_nw_info(context, instance, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 931, in _get_instance_nw_info
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher preexisting_port_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1678, in _build_network_info_model
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher context, instance, networks, port_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 954, in _gather_port_ids_and_networks
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher net_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 296, in _get_available_networks
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher net_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1879, in _ensure_requested_network_ordering
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher unordered.sort(key=lambda i: preferred.index(accessor(i)))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1879, in <lambda>
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher unordered.sort(key=lambda i: preferred.index(accessor(i)))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher ValueError: u'eff8994b-8663-4104-b349-332ee6c3195f' is not in list
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher
2016-07-11 07:04:24.321 35598 INFO nova.network.neutronv2.api [req-6a998b4e-58ab-4074-b3ef-70769970c053 - - - - -] net_id is [u
** Affects: nova
Importance: Undecided
Assignee: jichenjc (jichenjc)
Status: New
** Changed in: nova
Assignee: (unassigned) => jichenjc (jichenjc)
--
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/1600698
Title:
no network info will lead to valueerror
Status in OpenStack Compute (nova):
New
Bug description:
liberty release, when the instance don't have any network info ,seems
master has same issue
[root@xcat ~] # nova show fc76de3f-a022-45b4-8998-9dd9bf4bd1e4
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| network | |
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | 1234 |
[root@xcat ~] # neutron net-list
+--------------------------------------+------------+-------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+------------+-------------------------------------------------------+
| eff8994b-8663-4104-b349-332ee6c3195f | singleflat | 3c17106c-5b26-4406-88f6-da8bf2c38e64 192.168.222.0/24 |
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher executor_callback))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher executor_callback)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher payload)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 350, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance=instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 323, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 400, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 378, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 366, in decorated_function
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2522, in start_instance
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher self._power_on(context, instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2490, in _power_on
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher network_info = self.network_api.get_instance_nw_info(context, instance)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/base_api.py", line 244, in get_instance_nw_info
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher result = self._get_instance_nw_info(context, instance, **kwargs)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 931, in _get_instance_nw_info
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher preexisting_port_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1678, in _build_network_info_model
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher context, instance, networks, port_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 954, in _gather_port_ids_and_networks
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher net_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 296, in _get_available_networks
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher net_ids)
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1879, in _ensure_requested_network_ordering
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher unordered.sort(key=lambda i: preferred.index(accessor(i)))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1879, in <lambda>
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher unordered.sort(key=lambda i: preferred.index(accessor(i)))
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher ValueError: u'eff8994b-8663-4104-b349-332ee6c3195f' is not in list
2016-07-11 07:04:03.532 35598 ERROR oslo_messaging.rpc.dispatcher
2016-07-11 07:04:24.321 35598 INFO nova.network.neutronv2.api [req-6a998b4e-58ab-4074-b3ef-70769970c053 - - - - -] net_id is [u
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1600698/+subscriptions
Follow ups