Bug #2524

Attach new disk error

Added by haifeng cao almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:11/29/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 4.4

Description

Iuse kvm virtualization, when attach a disk with qcow2 driver to an host ,it will get an error such as
"
Fri Nov 29 19:17:51 2013 [VMM][E]: attach_disk: Command "virsh --connect qemu:///system attach-device one-158 /var/lib/one//datastores/121/158/disk.2.attach" failed: error: Failed to attach device from /var/lib/one//datastores/121/158/disk.2.attach
Fri Nov 29 19:17:51 2013 [VMM][I]: error: internal error unable to execute QEMU command '__com.redhat_drive_add': Device 'drive-scsi0-0-0-1' could not be initialized
Fri Nov 29 19:17:51 2013 [VMM][E]: Could not attach /var/lib/one//datastores/121/158/disk.2 (sdb) to one-158
Fri Nov 29 19:17:51 2013 [VMM][I]: ExitCode: 1
"

But if you change the qcow2 driver to raw it works ok.Also if you use qcow2 driver and change the format to* qcow2* it also works fine.


Related issues

Related to Backlog #2549: Check image format compatibility Pending 12/05/2013

History

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

  • Status changed from Pending to Closed
  • Resolution set to worksforme

It seems you are describing the expected behavior, format and driver need to be consistent. There is a feature to make this checks (#2549)

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

  • Related to Backlog #2549: Check image format compatibility added

Also available in: Atom PDF