The sheepdog driver fails when trying to
create volume from image due to a bug in
SheepdogDriver.copy_image_to_volume.
The utils.convert method is being passed the
tempfile object, but should only be passed
the name of the tempfile.
Change-Id: I6b261d29895bf9c2c30b2d95d74e5be58b8e9b10
Closes-Bug:
1261941
# see volume/drivers/manager.py:_create_volume
self._delete(volume)
# convert and store into sheepdog
- image_utils.convert_image(tmp, 'sheepdog:%s' % volume['name'],
+ image_utils.convert_image(tmp.name, 'sheepdog:%s' % volume['name'],
'raw')
self._resize(volume)