yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #32879
[Bug 1454901] [NEW] OS install failed in the VM created using an ISO image
Public bug reported:
When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce:
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-14.04.2-server-amd64.iso --progress
2. create a vm using this ISO image
3. install OS in this vm.
We think the nova generates wrong libvirt config, below are two examples:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
<devices>
<disk type="file" device="cdrom">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
<target bus="ide" dev="hda"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw" cache="none"/>
<source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
<target bus="ide" dev="hdd"/>
</disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the
partial libvirt.xml is as follow:
<devices>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="disk">
<driver name="qemu" type="raw" cache="none"/>
<source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
<target bus="virtio" dev="vdz"/>
</disk>
** Affects: nova
Importance: Undecided
Status: New
** Description changed:
When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce:
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-14.04.2-server-amd64.iso --progress
2. create a vm using this ISO image
3. install OS in this vm.
- We think the nova generates wrong libvirt config, below are two example:
+ We think the nova generates wrong libvirt config, below are two examples:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
- <devices>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="qcow2" cache="none"/>
- <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
- <target bus="ide" dev="hda"/>
- </disk>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="raw" cache="none"/>
- <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
- <target bus="ide" dev="hdd"/>
- </disk>
+ <devices>
+ <disk type="file" device="cdrom">
+ <driver name="qemu" type="qcow2" cache="none"/>
+ <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
+ <target bus="ide" dev="hda"/>
+ </disk>
+ <disk type="file" device="cdrom">
+ <driver name="qemu" type="raw" cache="none"/>
+ <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
+ <target bus="ide" dev="hdd"/>
+ </disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the
partial libvirt.xml is as follow:
- <devices>
- <disk type="file" device="disk">
- <driver name="qemu" type="qcow2" cache="none"/>
- <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
- <target bus="virtio" dev="vda"/>
- </disk>
- <disk type="file" device="disk">
- <driver name="qemu" type="raw" cache="none"/>
- <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
- <target bus="virtio" dev="vdz"/>
- </disk>
+ <devices>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="qcow2" cache="none"/>
+ <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
+ <target bus="virtio" dev="vda"/>
+ </disk>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="raw" cache="none"/>
+ <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
+ <target bus="virtio" dev="vdz"/>
+ </disk>
** Description changed:
When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce:
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-14.04.2-server-amd64.iso --progress
2. create a vm using this ISO image
3. install OS in this vm.
We think the nova generates wrong libvirt config, below are two examples:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
- <devices>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="qcow2" cache="none"/>
- <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
- <target bus="ide" dev="hda"/>
- </disk>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="raw" cache="none"/>
- <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
- <target bus="ide" dev="hdd"/>
- </disk>
+ <devices>
+ <disk type="file" device="cdrom">
+ <driver name="qemu" type="qcow2" cache="none"/>
+ <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
+ <target bus="ide" dev="hda"/>
+ </disk>
+ <disk type="file" device="cdrom">
+ <driver name="qemu" type="raw" cache="none"/>
+ <source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
+ <target bus="ide" dev="hdd"/>
+ </disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the
partial libvirt.xml is as follow:
- <devices>
- <disk type="file" device="disk">
- <driver name="qemu" type="qcow2" cache="none"/>
- <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
- <target bus="virtio" dev="vda"/>
- </disk>
- <disk type="file" device="disk">
- <driver name="qemu" type="raw" cache="none"/>
- <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
- <target bus="virtio" dev="vdz"/>
- </disk>
+ <devices>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="qcow2" cache="none"/>
+ <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
+ <target bus="virtio" dev="vda"/>
+ </disk>
+ <disk type="file" device="disk">
+ <driver name="qemu" type="raw" cache="none"/>
+ <source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
+ <target bus="virtio" dev="vdz"/>
+ </disk>
** Summary changed:
- OS install failed in the VM creating using ISO image
+ OS install failed in the VM created using ISO image
** Summary changed:
- OS install failed in the VM created using ISO image
+ OS install failed in the VM created using an ISO image
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1454901
Title:
OS install failed in the VM created using an ISO image
Status in OpenStack Compute (Nova):
New
Bug description:
When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce:
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-14.04.2-server-amd64.iso --progress
2. create a vm using this ISO image
3. install OS in this vm.
We think the nova generates wrong libvirt config, below are two examples:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
<devices>
<disk type="file" device="cdrom">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk"/>
<target bus="ide" dev="hda"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw" cache="none"/>
<source file="/opt/stack/data/nova/instances/9b3c730a-8391-4b11-8e07-dcd0981fbc56/disk.config"/>
<target bus="ide" dev="hdd"/>
</disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the
partial libvirt.xml is as follow:
<devices>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk"/>
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="disk">
<driver name="qemu" type="raw" cache="none"/>
<source file="/var/lib/nova/instances/95a38caf-9f12-4516-8166-6c5b572b4734/disk.config"/>
<target bus="virtio" dev="vdz"/>
</disk>
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1454901/+subscriptions
Follow ups
References