OS install failed in the VM created using an ISO image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
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-
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:
<disk type='file' device='cdrom'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/
<backingStore type='file' index='1'>
<format type='raw'/>
<source file='/
<
<target dev='hda' bus='ide'/>
<readonly/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the partial libvirt.xml is as follow:
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<auth username='compute'>
<secret type='ceph' uuid='a5d0dd94-
</auth>
<source protocol='rbd' name='volumes/
<host name='10.133.1.3' port='6789'/>
<host name='10.133.1.9' port='6789'/>
<host name='10.133.1.10' port='6789'/>
</source>
<
<target dev='vda' bus='virtio'/>
<
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
description: | updated |
description: | updated |
summary: |
- OS install failed in the VM creating using ISO image + OS install failed in the VM created using ISO image |
summary: |
- OS install failed in the VM created using ISO image + OS install failed in the VM created using an ISO image |
Changed in nova: | |
assignee: | nobody → Noel Nelson Dsouza (noelnelson) |
description: | updated |
Changed in nova: | |
assignee: | Noel Nelson Dsouza (noelnelson) → junxu (xujun-1) |
Changed in nova: | |
assignee: | junxu (xujun-1) → nobody |
tags: | added: libvirt |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → Dave Johnston (dave-johnston) |
Changed in nova: | |
assignee: | Dave Johnston (dave-johnston) → nobody |
Junxu ,
I saw your bug. Before proceeding with this bug i need clarification regarding step 3 of reproducing.
3. install OS in this vm.
My Environment :
i will try to reproduce your bug in Juno devstatck version
Provide your environment also.
Please provide more information( elaborate) on this step, to get into reproduction of this bug. Based on your feedback i can move further.
Regards
Noel