Following test cases has been seen failed even in master branch while running locally. They've also been spotted causing jenkins failure in other reviews.
======================================================================
FAIL: cinder.tests.test_volume.VolumeTestCase.test_run_attach_detach_volume_for_host
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_volume.py", line 1296, in test_run_attach_detach_volume_for_host
self.assertEqual(admin_metadata[0]['key'], 'readonly')
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 324, in assertEqual
self.assertThat(observed, matcher, message)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 414, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'attached_mode' != 'readonly'
======================================================================
FAIL: cinder.tests.test_volume.VolumeTestCase.test_run_attach_detach_volume_for_instance
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_volume.py", line 1253, in test_run_attach_detach_volume_for_instance
self.assertEqual(admin_metadata[0]['key'], 'readonly')
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 324, in assertEqual
self.assertThat(observed, matcher, message)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 414, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'attached_mode' != 'readonly'
======================================================================
FAIL: cinder.tests.test_volume.VolumeTestCase.test_run_attach_detach_volume_with_attach_mode
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_volume.py", line 1341, in test_run_attach_detach_volume_with_attach_mode
self.assertEqual(admin_metadata[0]['key'], 'readonly')
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 324, in assertEqual
self.assertThat(observed, matcher, message)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 414, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'attached_mode' != 'readonly'
======================================================================
FAIL: cinder.tests.test_volume.VolumeTestCase.test_run_manager_attach_detach_volume_with_wrong_attach_mode
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_volume.py", line 1421, in test_run_manager_attach_detach_volume_with_wrong_attach_mode
self.assertEqual(admin_metadata[0]['key'], 'readonly')
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 324, in assertEqual
self.assertThat(observed, matcher, message)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 414, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: u'attached_mode' != 'readonly'
Fix proposed to branch: master /review. openstack. org/101407
Review: https:/