KVM - config_drive <Image UUID> doesn't create disk.config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Launch one server with config_drive set to <image-uuid>.
$nova boot --flavor 1 --image a1f827d7-
If the value is set to “image-UUID”, it builds a volume from the image and attaches it.
It should create disk.config file of size equal to image size on the compute node inside the instance folder. But this file doesn't exists in the instance folder.
root@ubuntu-
total 13708
-rw-rw-r-- 1 rohit libvirtd 1363 Jul 24 14:40 libvirt.xml
-rw-rw-r-- 1 libvirt-qemu kvm 4731440 Jul 24 14:40 kernel
-rw-rw-r-- 1 libvirt-qemu kvm 2254249 Jul 24 14:40 ramdisk
-rw-rw---- 1 libvirt-qemu kvm 16007 Jul 24 14:41 console.log
-rw-r--r-- 1 libvirt-qemu kvm 7143424 Jul 24 14:41 disk
I only see one disk attached to the instance in the libvirt.xml
<disk type="file" device="disk">
<driver type="qcow2" cache="none"/>
<source file="/
<target bus="virtio" dev="vda"/>
</disk>
After putting debug trace in nova.virt.
Note: If I set config_drive to True, then I could see disk.config inside instance folder of size 64MB as expected.
JFYI /bugs.launchpad .net/openstack- qa/+bug/ 883337
config_drive_id is not present in instance model as has been reported in
https:/
This should explain its absence from the column in the instance db table