Activity log for bug #1699228

Date Who What changed Old value New value Message
2017-06-20 15:50:22 J-P methot bug added bug
2017-06-20 15:50:22 J-P methot attachment added error log and config.txt https://bugs.launchpad.net/bugs/1699228/+attachment/4899424/+files/error%20log%20and%20config.txt
2017-06-20 15:53:12 J-P methot description Description =========== This bug is very specific as it will only affect instances using the virtio-scsi driver that were booted up with a cinder block device. Once your VM is booted up, attaching a drive will make the following error appear in the nova-compute log: "libvirtError: internal error: unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-scsi0-0-0-0' for drive" This bug seems to affect most storage backends, as long as you use cinder for all your block devices. It was tested with Ceph and iscsi backends in both Mitaka and Newton. It may also affect config drives. Steps to reproduce ================== 1. Assign the necessary options to the image you are going to use, so that libvirt uses the virtio-scsi driver hw_scsi_model = virtio-scsi hw_disk_bus = scsi 2. Create a VM by selecting to use "image" as a source and set "create a new volume" to yes. This will boot from a new volume created in cinder with the selected image on it. 3.Create a new volume in cinder and try to attach it to the instance. Expected result =============== The volume will attach itself to the instance. Actual result ============= The attach operation will fail and you will see the aforementioned error in the nova-compute logs. Environment =========== CentOS 7 RDO Newton openstack-nova-compute-14.0.6-1.el7.noarch KVM libvirt Storage: Dell iscsi but also confirmed to be present on Ceph Network: Neutron + openvswitch Logs & config ===== See logs and config in attached txt file Description =========== This bug is very specific as it will only affect instances using the virtio-scsi driver that were booted up with a cinder block device. Once your VM is booted up, attaching a drive will make the following error appear in the nova-compute log: "libvirtError: internal error: unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-scsi0-0-0-0' for drive" This bug seems to affect most storage backends, as long as you use cinder for all your block devices. It was tested with Ceph and iscsi backends in both Mitaka and Newton. It may also affect config drives. Steps to reproduce ================== 1. Assign the necessary options to the image you are going to use, so that libvirt uses the virtio-scsi driver hw_scsi_model = virtio-scsi hw_disk_bus = scsi 2. Create a VM by selecting to use "image" as a source and set "create a new volume" to yes. This will boot from a new volume created in cinder with the selected image on it. 3.Create a new volume in cinder and try to attach it to the instance. Expected result =============== The volume will attach itself to the instance. Actual result ============= The attach operation will fail and you will see the aforementioned error in the nova-compute logs. Environment =========== CentOS 7 RDO Newton openstack-nova-compute-14.0.6-1.el7.noarch KVM libvirt rpm -qa | grep "qemu\|libvirt" libvirt-daemon-config-network-2.0.0-10.el7_3.9.x86_64 libvirt-python-2.0.0-2.el7.x86_64 qemu-img-ev-2.6.0-28.el7_3.9.1.x86_64 libvirt-daemon-driver-network-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-lxc-2.0.0-10.el7_3.9.x86_64 qemu-kvm-ev-2.6.0-28.el7_3.9.1.x86_64 centos-release-qemu-ev-1.0-1.el7.noarch libvirt-daemon-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-qemu-2.0.0-10.el7_3.9.x86_64 ipxe-roms-qemu-20160127-5.git6366fa7a.el7.noarch libvirt-daemon-kvm-2.0.0-10.el7_3.9.x86_64 libvirt-2.0.0-10.el7_3.9.x86_64 libvirt-client-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-storage-2.0.0-10.el7_3.9.x86_64 libvirt-daemon-driver-interface-2.0.0-10.el7_3.9.x86_64 qemu-kvm-common-ev-2.6.0-28.el7_3.9.1.x86_64 libvirt-daemon-driver-secret-2.0.0-10.el7_3.9.x86_64 Storage: Dell iscsi but also confirmed to be present on Ceph Network: Neutron + openvswitch Logs & config ===== See logs and config in attached txt file
2017-06-26 16:38:22 Jay Pipes summary Additionnal block devices cannot be attached when libvirt driver is virtio-scsi Additional block devices cannot be attached when libvirt driver is virtio-scsi
2017-06-27 16:05:00 Sean Dague tags openstack-version.newton
2017-06-28 10:50:07 Sean Dague nova: status New Confirmed
2017-06-28 10:50:11 Sean Dague nova: importance Undecided Medium
2017-06-29 15:38:29 Vladyslav Drok bug added subscriber Vladyslav Drok
2017-07-06 15:19:48 Lee Yarwood marked as duplicate 1686116