Comment 2 for bug 996840

Revision history for this message
rfz (rfz) wrote :

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 : virJSONValueToString: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"}
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollDispatchHandles:474 : i=8 w=9
2012-05-09 15:38:14.311+0000: 22564: debug : qemuMonitorJSONCommandWithFd: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
2012-05-09 15:38:14.311+0000: 22564: debug : virEventPollUpdateHandle:151 : EVENT_POLL_UPDATE_HANDLE: watch=8 events=15
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollDispatchHandles:474 : i=9 w=17
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollCleanupTimeouts:506 : Cleanup 7
2012-05-09 15:38:14.311+0000: 22562: debug : virEventPollCleanupHandles:554 : Cleanup 10
2012-05-09 15:38:14.312+0000: 22562: debug : virEventRunDefaultImpl:244 : running default event implementation
2012-05-09 15:38:14.312+0000: 22564: debug : virEventPollInterruptLocked:702 : Skip interrupt, 0 1987651648
2012-05-09 15:38:14.312+0000: 22564: debug : qemuMonitorSend:831 : QEMU_MONITOR_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
 fd=-1
2012-05-09 15:38:14.312+0000: 22562: d

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:

2012-05-09 15:38:14.308+0000: 22564: debug : virJSONValueToString: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"}
2012-05-09 15:38:14.308+0000: 22564: debug : qemuMonitorJSONCommandWithFd: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
2012-05-09 15:38:14.308+0000: 22564: debug : virEventPollUpdateHandle:151 : EVENT_POLL_UPDATE_HANDLE: watch=8 events=15
2012-05-09 15:38:14.308+0000: 22564: debug : virEventPollInterruptLocked:706 : Interrupting
2012-05-09 15:38:14.308+0000: 22564: debug : qemuMonitorSend:831 : QEMU_MONITOR_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
 fd=-1

2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorRef:230 : QEMU_MONITOR_REF: mon=0x7ff660000a80 refs=4
2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorIOProcess: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
 len=144
2012-05-09 15:38:14.310+0000: 22562: debug : qemuMonitorJSONIOProcessLine:115 : Line [{"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 : virJSONValueFromString:914 : string={"id": "libvirt-21", "error": {"class": "CommandNotFound", "desc": "The command drive_add has not been found", "data": {"name": "drive_add"}}}

I'm opening a bug-report on Openstack, to see if someone can help me reproduce this error.