53073d1921
When I try to convert a image use image_utils.convert_image() method, an error occurred like this : ''' OSError: [Errno 2] No such file or directory: 'sheepdog:10.133.17.61:7000:volume-a0a70f9b-a50e-4369-885f-c41a894c9fe5' ''' The reason is that in some cluster storage systems, like ceph/sheepdog, QEMU can access an image directly via their private protocol, and there’s no need to map an image as a block device on the host. In this case, the qemu-img convert command may like: #qemu-img convert -O raw sheepdog:Ip:port:image_name temp_file #qemu-img convert -O raw rbd:pool_name/image_name temp_file The source path may be 'sheepdog:Ip:port:image_name' or 'rbd:pool_name/image_name', it doesn't exist in OS. So, when it runs the os.stat(source) in image_utils.convert_image(source,dest,out_format) method, an OSError would be raised. We can use qemu_img_info method instead to resolve this problem, because the 'qemu-img info' command can always get the image size info which has support qemu-img tool. Here we capture a ValueError just in case, but it only need to give a warning message, because the image has been successfully converted. Change-Id: I5fd1e51840972a67053b85a76f8e001fa8148ad7 Closes-Bug: #1514442 |
||
---|---|---|
cinder | ||
doc | ||
etc/cinder | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.md | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
openstack-common.conf | ||
pylintrc | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tests-py3.txt | ||
tox.ini |
README.rst
CINDER
You have come across a storage service for an open cloud computing service. It has identified itself as Cinder. It was abstracted from the Nova project.
- Wiki: http://wiki.openstack.org/Cinder
- Developer docs: http://docs.openstack.org/developer/cinder
Getting Started
If you'd like to run from the master branch, you can clone the git repo:
git clone https://github.com/openstack/cinder.git
For developer information please see HACKING.rst
You can raise bugs here http://bugs.launchpad.net/cinder