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)
- centos-release-virt-common.noarch 1-1.el7.centos @extras
- libvirt-client.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-config-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-interface.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-network.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-nodedev.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-nwfilter.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-secret.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-driver-storage.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
- libvirt-python.x86_64 1.2.17-2.el7 @base
- virt-what.x86_64 1.13-6.el7 @anaconda
- libvirt-daemon-kvm.x86_64 1.2.17-13.el7_2.5 @updates
- qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
- qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
- centos-release-qemu-ev.noarch 1.0-1.el7 @extras
- ipxe-roms-qemu.noarch 20160127-1.git6366fa7a.el7 @centos-openstack-mitaka
- libvirt-daemon-driver-qemu.x86_64 1.2.17-13.el7_2.5 @updates
- qemu-img-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
- qemu-kvm-common-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev
- qemu-kvm-ev.x86_64 10:2.3.0-31.el7_2.10.1 @centos-qemu-ev