]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Avoid using the disk cache on volume initialisation
authorDirk Mueller <dirk@dmllr.de>
Tue, 5 Aug 2014 14:13:33 +0000 (16:13 +0200)
committerDirk Mueller <dirk@dmllr.de>
Fri, 29 Aug 2014 10:00:43 +0000 (12:00 +0200)
commit5c5f3c0684caada0fb7efe33d59bc7f1d66c72d8
treed93c4bdcd0407690e28bf5625d7a76f66fd4009c
parente5e61bf7ce11aa23b48fa22574c8d4e1c1ea9a7d
Avoid using the disk cache on volume initialisation

When caching is involved, the volume might be
unmapped before the copy actually hit the disk or the
VM starts booting before all of the data has been flushed,
which causes the VM to crash at an arbitrary point in time.

Closes-Bug: #1363016

Change-Id: I7a04f683add8c23b9125fe837c4048ccc3ac224d
cinder/image/image_utils.py
cinder/tests/test_image_utils.py