virsh attach-disk instance-00000011 /dev/disk/by-path/ip-XXX.XXX.XXX.XXX\:3260-iscsi-iqn.2010-10.org.openstack\:volume-0000002b-lun-1 vdf
setlocale: No such file or directory
Disk attached successfully
Using nova volume-attach (nova volume-attach 5d91ed13-f88f-4ff0-aca4-f1cd3910256f 43 /dev/vdf) on the same ISCS LUN (Or new ones) produces this error and kills libvirtd:
HI Serge,
virsh attach-disk instance-00000011 /dev/disk/ by-path/ ip-XXX. XXX.XXX. XXX\:3260- iscsi-iqn. 2010-10. org.openstack\ :volume- 0000002b- lun-1 vdf
setlocale: No such file or directory
Disk attached successfully
Output:
-05-09 15:38:14.311+0000: 22564: debug : virJSONValueToS tring:1071 : result= {"execute" :"human- monitor- command" ,"arguments" :{"command- line":" drive_add dummy file=/dev/ disk/by- path/ip- XXX.XXX. XXX.XXX: 3260-iscsi- iqn.2010- 10.org. openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 22"} patchHandles: 474 : i=8 w=9 CommandWithFd: 228 : Send command '{"execute" :"human- monitor- command" ,"arguments" :{"command- line":" drive_add dummy file=/dev/ disk/by- path/ip- XXX.XXX. XXX.XXX: 3260-iscsi- iqn.2010- 10.org. openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 22"}' for write with FD -1 ateHandle: 151 : EVENT_POLL_ UPDATE_ HANDLE: watch=8 events=15 patchHandles: 474 : i=9 w=17 anupTimeouts: 506 : Cleanup 7 anupHandles: 554 : Cleanup 10 ultImpl: 244 : running default event implementation erruptLocked: 702 : Skip interrupt, 0 1987651648 SEND_MSG: mon=0x7ff660000a80 msg={"execute" :"human- monitor- command" ,"arguments" :{"command- line":" drive_add dummy file=/dev/ disk/by- path/ip- XXX.XXX. XXX.XXX: 3260-iscsi- iqn.2010- 10.org. openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 22"}^M
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollDis
2012-05-09 15:38:14.311+0000: 22564: debug : qemuMonitorJSON
2012-05-09 15:38:14.311+0000: 22564: debug : virEventPollUpd
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollDis
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollCle
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollCle
2012-05-09 15:38:14.312+0000: 22562: debug : virEventRunDefa
2012-05-09 15:38:14.312+0000: 22564: debug : virEventPollInt
2012-05-09 15:38:14.312+0000: 22564: debug : qemuMonitorSend:831 : QEMU_MONITOR_
fd=-1
2012-05-09 15:38:14.312+0000: 22562: d
Using nova volume-attach (nova volume-attach 5d91ed13- f88f-4ff0- aca4-f1cd391025 6f 43 /dev/vdf) on the same ISCS LUN (Or new ones) produces this error and kills libvirtd:
2012-05-09 15:38:14.308+0000: 22564: debug : virJSONValueToS tring:1071 : result= {"execute" :"drive_ add","arguments ":{"pci_ addr":" dummy", "opts": "file=/ dev/disk/ by-path/ ip-XXX. XXX.XXX. XXX:3260- iscsi-iqn. 2010-10. org.openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 21"} CommandWithFd: 228 : Send command '{"execute" :"drive_ add","arguments ":{"pci_ addr":" dummy", "opts": "file=/ dev/disk/ by-path/ ip-XXX. XXX.XXX. XXX:3260- iscsi-iqn. 2010-10. org.openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 21"}' for write with FD -1 ateHandle: 151 : EVENT_POLL_ UPDATE_ HANDLE: watch=8 events=15 erruptLocked: 706 : Interrupting SEND_MSG: mon=0x7ff660000a80 msg={"execute" :"drive_ add","arguments ":{"pci_ addr":" dummy", "opts": "file=/ dev/disk/ by-path/ ip-XXX. XXX.XXX. XXX:3260- iscsi-iqn. 2010-10. org.openstack: volume- 0000002b- lun-1,if= none,id= drive-virtio- disk5,format= raw"}," id":"libvirt- 21"}^M
2012-05-09 15:38:14.308+0000: 22564: debug : qemuMonitorJSON
2012-05-09 15:38:14.308+0000: 22564: debug : virEventPollUpd
2012-05-09 15:38:14.308+0000: 22564: debug : virEventPollInt
2012-05-09 15:38:14.308+0000: 22564: debug : qemuMonitorSend:831 : QEMU_MONITOR_
fd=-1
2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorRef:230 : QEMU_MONITOR_REF: mon=0x7ff660000a80 refs=4 ocess:356 : QEMU_MONITOR_ IO_PROCESS: mon=0x7ff660000a80 buf={"id": "libvirt-21", "error": {"class": "CommandNotFound", "desc": "The command drive_add has not been found", "data": {"name": "drive_add"}}}^M IOProcessLine: 115 : Line [{"id": "libvirt-21", "error": {"class": "CommandNotFound", "desc": "The command drive_add has not been found", "data": {"name": "drive_add"}}}] mString: 914 : string={"id": "libvirt-21", "error": {"class": "CommandNotFound", "desc": "The command drive_add has not been found", "data": {"name": "drive_add"}}}
2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorIOPr
len=144
2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorJSON
2012-05-09 15:38:14.310+0000: 22562: debug : virJSONValueFro
I'm opening a bug-report on Openstack, to see if someone can help me reproduce this error.