KVM - config_drive <Image UUID> doesn't create disk.config

Asked by Tushar Patil

I'm testing config_drive function using latest trunk code.

Launch one server with config_drive set to <image-uuid>.

$nova boot --flavor 1 --image a1f827d7-9726-4343-b52a-b8a2bf4cb594 --key_name openstack --config-drive 80495421-ed25-4fc1-918f-88d6ebf5f3dd iso-config-drive

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-precise-002:/opt/stack/nova/instances/instance-00000017# ls -lrt
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="/opt/stack/nova/instances/instance-00000017/disk"/>
      <target bus="virtio" dev="vda"/>

After putting debug trace in nova.virt.libvirt.driver.py, I could see config_drive_id is None. There is no config_drive_id column in the instance db table and also this config_drive_id is not sent to the compute manager in the RPC call from scheduler (filter_scheduler).

Is this a bug?

Note: If I set config_drive to True, then I could see disk.config inside instance folder of size 64MB as expected.

Question information

English Edit question
OpenStack Compute (nova) Edit question
No assignee Edit question
Solved by:
Davanum Srinivas (DIMS)
Last query:
Last reply:
Revision history for this message
Best Davanum Srinivas (DIMS) (dims-v) said :

the bug report is marked as won't fix. so this feature will not be supported.

Revision history for this message
Tushar Patil (tpatil) said :

Thanks Davanum Srinivas, that solved my question.