Attach Disk Fails when Device Prefix is left blank (defaults to hd)
|Assignee:||Javi Fontan||% Done:|
|Target version:||Release 4.14|
|Affected Versions:||OpenNebula 4.12|
My setup: KVM, Ceph datastore. 4.12
When attempting to attach block devices to the running instance the attachment fails when Device prefix is not selected or when "hd" is chosen, however, it works when either "vd" or "sd" are specified. This should default to either vd or sd when left blank so that attachment still works.
When not specifying a device prefix. or specifying "hd I get the following error:
Message received: LOG I 656 Command execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-656' '/var/lib/one//datastores/0/656/disk.9' 'hdb' '1'
Mon Aug 3 10:19:55 2015 [Z0][VMM][D]: Message received: LOG E 656 attach_disk: Command "virsh --connect qemu:///system attach-device one-656 /var/lib/one//datastores/0/656/disk.9.attach" failed: error: Failed to attach device from /var/lib/one//datastores/0/656/disk.9.attach
Mon Aug 3 10:19:55 2015 [Z0][VMM][D]: Message received: LOG I 656 error: Operation not supported: disk bus 'ide' cannot be hotplugged.
Mon Aug 3 10:19:55 2015 [Z0][VMM][D]: Message received: LOG E 656 Could not attach rbd (hdb) to one-656