Create Volume from image bug (iscsi)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When attempting to create a volume from image you will get "qemu-img: error writing zeroes at sector 0: Input/output error" on the first attempt and a success on the second.
Steps to reproduce.
1 )Nimble backend using 2.3.9.0
2) Ubuntu 14.04 with qemu-utils 2.3 installed
3) attempt to create volume from image and you will receive the error
Or
1) iscsiadm --mode node --targetname '<iqn.2007-
2)sudo cinder-rootwrap /etc/cinder/
ERROR: qemu-img: error writing zeroes at sector 0: Input/output error
3)try it again and it will work
My work around for the issue has been to comment out the code that sets the qemu-img cache policy to none in image_utils.py. I do not see a real reason to set the cache to none since the default is write-through which means it will not notify the os that it has completed until it has. None does not prevent the underlying os from terminating the connection or packet loss from creating issues. On top of that it will "possibly" prevent your SAN from caching the data making it so that creating instances will not be fast as it can be.
Another option would be to make the call an option. isci_direct=true (cinder.conf)
Thanks
Daniel
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
status: | In Progress → Invalid |
Changed in cinder: | |
importance: | Medium → Undecided |
assignee: | Mitsuhiro Tanino (mitsuhiro-tanino) → nobody |
Seems this bug is duplicate of https:/ /bugs.launchpad .net/cinder/ +bug/1389728
Could you check the bug?
-------- snip ---------- git.qemu- project. org/?p= qemu.git; a=commitdiff; h=f3a9cfddae
This is probably a qemu-img bug fixed by this patch in qemu:
http://
-------- snip ----------