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:
~~~~~~~~~~~~~~~~~~~~~~~
2018-02-07 20:02:14,002 WARNING [oslo_config.cfg] Config option key_manager.api_class is deprecated. Use option key_manager.backend instead.
2018-02-07 20:02:14,080 INFO [nova.virt.driver] Loading compute driver 'fake.SmallFakeDriver'
2018-02-07 20:02:14,090 INFO [nova.compute.manager] Rebuilding instance
2018-02-07 20:02:14,091 WARNING [nova.compute.monitors] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors).
2018-02-07 20:02:14,093 INFO [nova.compute.manager] disk not on shared storage, rebuilding from: 'None'
2018-02-07 20:02:14,095 ERROR [nova.compute.manager] Unexpected failure during rebuild.
Traceback (most recent call last):
File "nova/compute/manager.py", line 2891, in rebuild_instance
migration, request_spec)
File "nova/compute/manager.py", line 2953, in _do_rebuild_instance_with_claim self._do_rebuild_instance(*args, **kwargs)
File "nova/compute/manager.py", line 3015, in _do_rebuild_instance
context)
File "nova/image/api.py", line 65, in generate_image_url
return "%s/images/%s" % (next(glance.get_api_servers(context)),
File "nova/image/glance.py", line 130, in get_api_servers
endpoint = re.sub(r'/v\d+(\.\d+)?/?$', '/', endpoint)
File "/home/osboxes/git/nova/.tox/py27/lib/python2.7/re.py", line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer
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