Unit test test_upload_volume* in test_image_utils.py fail without /dev/loop1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Tomoki Sekiyama |
Bug Description
If there is not /dev/loop1 in the test environment, python27 unit test fails by the exception below.
test_
test_
test_
=======
FAIL: cinder.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/
image_meta, '/dev/loop1')
File "/opt/stack/
bps_
File "/opt/stack/
fsz_mb = os.stat(
OSError: [Errno 2] No such file or directory: '/dev/loop1'
This is because os.stat is not mocked in the unit tests, and reading real file.
Changed in cinder: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-3 → 2014.2 |
This bug was introduced by:
commit 202ebc2d987c869 84ba9cf8e8e36c3 2899baaa3b
"Add timer info for copy operations"