Running unit tests with a high concurrency will lead to random test failures like the following:
Traceback (most recent call last):
File "nova/tests/test_libvirt.py", line 4153, in test_create_cow_image
libvirt_utils.create_cow_image('/some/path', '/the/new/cow')
File "nova/virt/libvirt/utils.py", line 174, in create_cow_image
base_details = images.qemu_img_info(backing_file)
File "/usr/local/lib/python2.7/site-packages/coverage/control.py", line 234, in _should_trace
canonical = self.file_locator.canonical_filename(filename)
File "/usr/local/lib/python2.7/site-packages/coverage/files.py", line 42, in canonical_filename
if os.path.exists(f):
File "/usr/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
return mock_method(*params, **named_params)
File "/usr/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
expected_method = self._VerifyMethodCall()
File "/usr/local/lib/python2.7/site-packages/mox.py", line 1060, in _VerifyMethodCall
raise UnexpectedMethodCallError(self, expected)
UnexpectedMethodCallError: Unexpected method call. unexpected:- expected:+
- exists.__call__('./nova/virt/images.py') -> None
+ exists.__call__('/some/path') -> True
Fix proposed to branch: master /review. openstack. org/22511
Review: https:/