Bug #1367

VM failure because erroneous deployment file entry for the context CD gets written

Added by Jochem Ippers almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:07/16/2012
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Drivers - Auth
Target version:Release 3.8
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.6

Description

Hi,
when I change the (kvm) DISK driver in vmm_exec_kvm.conf to type "qcow2" VMs that use a contextualization CD/iso end up in status FAILED.

Log:

error: Interner Fehler process exited while connecting to monitor: kvm: -drive file=/var/lib/one//datastores/0/87/disk.1,if=none,media=cdrom,id=drive-virtio-disk1,readonly=on,format=qcow2: \
could not open disk image /var/lib/one//datastores/0/87/disk.1: Invalid argument

As you can see disk.1 has qcow2 as format.
The deployment file has this wrong format for the cdrom:
...
                <disk type='file' device='cdrom'>
                        <source file='/var/lib/one//datastores/0/87/disk.1'/>
                        <target dev='vdb'/>
                        <readonly/>
                        <driver name='qemu' type='qcow2'/>
                </disk>
...

The problem seems to be that the default disk driver is also set for CDs/isos.

Kind regards
Jochem

Associated revisions

Revision 00e655d5
Added by Ruben S. Montero almost 9 years ago

bug #1367: Use type raw for cd's including context

Revision f1302848
Added by Ruben S. Montero over 8 years ago

bug #1367: Use type raw for cd's including context
(cherry picked from commit 00e655d58b4b3529201bba6050d396819735f62a)

History

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

  • Status changed from New to Assigned
  • Assignee set to Ruben S. Montero

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

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Now fixed in master. In case, you are interested the changes can be safely applied to OpenNebula 3.6.

THANKS for the complete bug reporting :)

Also available in: Atom PDF