test_evacuate_late_server_group_policy_check randomly fails with KeyError: 'fake-node'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Seen here:
2018-02-07 18:17:26.881691 | ubuntu-xenial | {1} nova.tests.
2018-02-07 18:17:26.881781 | ubuntu-xenial |
2018-02-07 18:17:26.881847 | ubuntu-xenial | Captured traceback:
2018-02-07 18:17:26.881911 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2018-02-07 18:17:26.882005 | ubuntu-xenial | Traceback (most recent call last):
2018-02-07 18:17:26.882270 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.882364 | ubuntu-xenial | return func(*args, **keywargs)
2018-02-07 18:17:26.882589 | ubuntu-xenial | File "nova/tests/
2018-02-07 18:17:26.882679 | ubuntu-xenial | request_
2018-02-07 18:17:26.882967 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.883058 | ubuntu-xenial | return func(*args, **kwargs)
2018-02-07 18:17:26.883186 | ubuntu-xenial | File "nova/exception
2018-02-07 18:17:26.883284 | ubuntu-xenial | function_name, call_dict, binary)
2018-02-07 18:17:26.883566 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.883643 | ubuntu-xenial | self.force_
2018-02-07 18:17:26.883934 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.884052 | ubuntu-xenial | six.reraise(
2018-02-07 18:17:26.884180 | ubuntu-xenial | File "nova/exception
2018-02-07 18:17:26.884283 | ubuntu-xenial | return f(self, context, *args, **kw)
2018-02-07 18:17:26.884428 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.884528 | ubuntu-xenial | "Error: %s", e, instance=instance)
2018-02-07 18:17:26.884810 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.884887 | ubuntu-xenial | self.force_
2018-02-07 18:17:26.885211 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.885333 | ubuntu-xenial | six.reraise(
2018-02-07 18:17:26.885479 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.885601 | ubuntu-xenial | return function(self, context, *args, **kwargs)
2018-02-07 18:17:26.885743 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.885865 | ubuntu-xenial | return function(self, context, *args, **kwargs)
2018-02-07 18:17:26.886010 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.886134 | ubuntu-xenial | kwargs['instance'], e, sys.exc_info())
2018-02-07 18:17:26.886293 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.886367 | ubuntu-xenial | fault_obj.create()
2018-02-07 18:17:26.886661 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.886758 | ubuntu-xenial | return fn(self, *args, **kwargs)
2018-02-07 18:17:26.886893 | ubuntu-xenial | File "nova/objects/
2018-02-07 18:17:26.887033 | ubuntu-xenial | db_fault = db.instance_
2018-02-07 18:17:26.887170 | ubuntu-xenial | File "nova/db/api.py", line 1880, in instance_
2018-02-07 18:17:26.887302 | ubuntu-xenial | return IMPL.instance_
2018-02-07 18:17:26.887435 | ubuntu-xenial | File "nova/db/
2018-02-07 18:17:26.887538 | ubuntu-xenial | with ctxt_mgr.
2018-02-07 18:17:26.887682 | ubuntu-xenial | File "/usr/lib/
2018-02-07 18:17:26.887761 | ubuntu-xenial | return self.gen.next()
2018-02-07 18:17:26.888082 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.888175 | ubuntu-xenial | context=context) as resource:
2018-02-07 18:17:26.888320 | ubuntu-xenial | File "/usr/lib/
2018-02-07 18:17:26.888401 | ubuntu-xenial | return self.gen.next()
2018-02-07 18:17:26.888706 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.888813 | ubuntu-xenial | bind=self.
2018-02-07 18:17:26.889141 | ubuntu-xenial | File "/home/
2018-02-07 18:17:26.889254 | ubuntu-xenial | return captured_
2018-02-07 18:17:26.889396 | ubuntu-xenial | File "nova/tests/
2018-02-07 18:17:26.889552 | ubuntu-xenial | raise Exception('This test uses methods that set internal oslo_db '
2018-02-07 18:17:26.889944 | ubuntu-xenial | Exception: This test uses methods that set internal oslo_db state, but it does not claim to use the database. This will conflict with the setup of tests that do use the database and cause failures later.
2018-02-07 18:17:26.889982 | ubuntu-xenial |
2018-02-07 18:17:26.890011 | ubuntu-xenial |
2018-02-07 18:17:26.890079 | ubuntu-xenial | Captured pythonlogging:
2018-02-07 18:17:26.890148 | ubuntu-xenial | ~~~~~~~
2018-02-07 18:17:26.890424 | ubuntu-xenial | 2018-02-07 18:17:26,791 WARNING [oslo_config.cfg] Config option key_manager.
2018-02-07 18:17:26.890620 | ubuntu-xenial | 2018-02-07 18:17:26,817 INFO [nova.virt.driver] Loading compute driver 'fake.SmallFake
2018-02-07 18:17:26.890778 | ubuntu-xenial | 2018-02-07 18:17:26,826 INFO [nova.compute.
2018-02-07 18:17:26.891108 | ubuntu-xenial | 2018-02-07 18:17:26,826 WARNING [nova.compute.
2018-02-07 18:17:26.891327 | ubuntu-xenial | 2018-02-07 18:17:26,828 INFO [nova.compute.
2018-02-07 18:17:26.891516 | ubuntu-xenial | 2018-02-07 18:17:26,830 ERROR [nova.compute.
2018-02-07 18:17:26.891611 | ubuntu-xenial | Traceback (most recent call last):
2018-02-07 18:17:26.891782 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.891835 | ubuntu-xenial | yield
2018-02-07 18:17:26.891979 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.892113 | ubuntu-xenial | instance, scheduled_node, node_type=
2018-02-07 18:17:26.892315 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.892434 | ubuntu-xenial | instance, node, 'evacuated', node_type)
2018-02-07 18:17:26.892630 | ubuntu-xenial | File "nova/compute/
2018-02-07 18:17:26.892741 | ubuntu-xenial | cn_uuid = self.compute_
2018-02-07 18:17:26.892813 | ubuntu-xenial | KeyError: 'fake-node'
2018-02-07 18:17:26.894043 | ubuntu-xenial | 2018-02-07 18:17:26,832 ERROR [root] Original exception being dropped: ['Traceback (most recent call last):\n', ' File "nova/compute/
tags: | added: gate-failure |
Changed in nova: | |
status: | New → Confirmed |
Turns out this test was failing as a result of the patch it was failing on, but without logging the exception it was lost:
Captured pythonlogging: ~~~~~~~ ~~~~~~~ ~~ api_class is deprecated. Use option key_manager.backend instead. Driver' manager] Rebuilding instance monitors] Excluding nova.compute. monitors. cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_ monitors) . manager] disk not on shared storage, rebuilding from: 'None' manager] Unexpected failure during rebuild. manager. py", line 2891, in rebuild_instance manager. py", line 2953, in _do_rebuild_ instance_ with_claim
self._ do_rebuild_ instance( *args, **kwargs) manager. py", line 3015, in _do_rebuild_ instance api.py" , line 65, in generate_image_url get_api_ servers( context) ), glance. py", line 130, in get_api_servers r'/v\d+ (\.\d+) ?/?$', '/', endpoint) osboxes/ git/nova/ .tox/py27/ lib/python2. 7/re.py" , line 155, in sub
~~~~~~~
2018-02-07 20:02:14,002 WARNING [oslo_config.cfg] Config option key_manager.
2018-02-07 20:02:14,080 INFO [nova.virt.driver] Loading compute driver 'fake.SmallFake
2018-02-07 20:02:14,090 INFO [nova.compute.
2018-02-07 20:02:14,091 WARNING [nova.compute.
2018-02-07 20:02:14,093 INFO [nova.compute.
2018-02-07 20:02:14,095 ERROR [nova.compute.
Traceback (most recent call last):
File "nova/compute/
migration, request_spec)
File "nova/compute/
File "nova/compute/
context)
File "nova/image/
return "%s/images/%s" % (next(glance.
File "nova/image/
endpoint = re.sub(
File "/home/
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer