Bug #3910

Attach Disk Fails when Device Prefix is left blank (defaults to hd)

Added by Wesley Dillingham almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:08/03/2015
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 4.14
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.12

Description

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

Associated revisions

Revision a45c0a40
Added by Javi Fontan almost 6 years ago

bug #3910: use image DEV_PREFIX for disk attach

Revision a7280170
Added by Javi Fontan almost 6 years ago

bug #3910: use image DEV_PREFIX for disk attach (backport)

from a45c0a40783739db3dc39e4e7572ab0728637ea2

History

#1 Updated by Ruben S. Montero almost 6 years ago

  • Status changed from Pending to New
  • Assignee set to Jaime Melis
  • Target version set to Release 4.14

#2 Updated by Ignacio M. Llorente almost 6 years ago

  • Assignee changed from Jaime Melis to Javi Fontan

#3 Updated by Javi Fontan almost 6 years ago

  • Category set to CLI
  • Status changed from New to Closed
  • Resolution set to fixed

Now attach disk uses the image DEV_PREFIX. A backport was made for 4.12.

Also available in: Atom PDF