Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ceph cinder attach volume to running instance

I cannot get cinder with ceph as backend to attach a volume to a running instance.

I'm hitting this error internal error unable to execute QEMU command '__com.redhat_drive_add': Device 'drive-virtio-disk1' could not be initialized. I'm using 4.4.16-1.el7.elrepo.x86_64 on CentOS Linux release 7.2.1511 (Core). Mitaka dedicated network node. Attaching works fine when the instance is shut off.

List off installed packages: (matching virt kvm qemu)

  1. centos-release-virt-common.noarch 1-1.el7.centos @extras
  2. libvirt-client.x86_64 1.2.17-13.el7_2.5 @updates
  3. libvirt-daemon.x86_64 1.2.17-13.el7_2.5 @updates
  4. libvirt-daemon-config-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
  5. libvirt-daemon-driver-interface.x86_64 1.2.17-13.el7_2.5 @updates
  6. libvirt-daemon-driver-network.x86_64 1.2.17-13.el7_2.5 @updates
  7. libvirt-daemon-driver-nodedev.x86_64 1.2.17-13.el7_2.5 @updates
  8. libvirt-daemon-driver-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
  9. libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
  10. libvirt-daemon-driver-secret.x86_64 1.2.17-13.el7_2.5 @updates
  11. libvirt-daemon-driver-storage.x86_64 1.2.17-13.el7_2.5 @updates
  12. libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
  13. libvirt-python.x86_64 1.2.17-2.el7 @base
  14. virt-what.x86_64 1.13-6.el7 @anaconda
  15. libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
  16. qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  17. qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  18. centos-release-qemu-ev.noarch 1.0-1.el7 @extras
  19. ipxe-roms-qemu.noarch 20160127-1.git6366fa7a.el7 @centos-openstack-mitaka
  20. libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
  21. qemu-img-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  22. qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  23. qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev

ceph cinder attach volume to running instance

I cannot get cinder with ceph as backend to attach a volume to a running instance.

UPDATE: I can attach the volume in horizon, to a shutdown instance, but afterwards it cannot boot with the volume attached to it. Reading logs from /var/log/libvirt/instance-xxxx.log I get the following error:

error reading header from volume-VOLUMEID

Invoking the listed qemu-kvm command directly gives the same error. The mon_addr and key seems to be correct.

qemu-kvm: -drive file=rbd:rbd/volume-VOLID:id=volumes:key=KEYauth_supported=cephx\;none:mon_host="10.0.0.50\:6789",if=none,id=drive-virtio-disk1,format=raw,serial=xxxx,cache=none:

error reading header from volume-c5b414ae-60db-41da-9e4b-d5

I'm hitting this error internal error unable to execute QEMU command '__com.redhat_drive_add': Device 'drive-virtio-disk1' could not be initialized. I'm using 4.4.16-1.el7.elrepo.x86_64 on CentOS Linux release 7.2.1511 (Core). Mitaka dedicated network node. Attaching works fine when the instance is shut off.

List off installed packages: (matching virt kvm qemu)

  1. centos-release-virt-common.noarch 1-1.el7.centos @extras
  2. libvirt-client.x86_64 1.2.17-13.el7_2.5 @updates
  3. libvirt-daemon.x86_64 1.2.17-13.el7_2.5 @updates
  4. libvirt-daemon-config-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
  5. libvirt-daemon-driver-interface.x86_64 1.2.17-13.el7_2.5 @updates
  6. libvirt-daemon-driver-network.x86_64 1.2.17-13.el7_2.5 @updates
  7. libvirt-daemon-driver-nodedev.x86_64 1.2.17-13.el7_2.5 @updates
  8. libvirt-daemon-driver-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
  9. libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
  10. libvirt-daemon-driver-secret.x86_64 1.2.17-13.el7_2.5 @updates
  11. libvirt-daemon-driver-storage.x86_64 1.2.17-13.el7_2.5 @updates
  12. libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
  13. libvirt-python.x86_64 1.2.17-2.el7 @base
  14. virt-what.x86_64 1.13-6.el7 @anaconda
  15. libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
  16. qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  17. qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  18. centos-release-qemu-ev.noarch 1.0-1.el7 @extras
  19. ipxe-roms-qemu.noarch 20160127-1.git6366fa7a.el7 @centos-openstack-mitaka
  20. libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
  21. qemu-img-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  22. qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
  23. qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev