Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Since using Juno, file injection is forced to open the virtual machine rootfs during VM creation. How do I disable the file injection and force metadata service method?

On The compute node /etc/nova/nova.conf under [libvirt] section is configured as follows and still injection is forced to be active.

inject_password = false

inject_key = false

inject_partition = -2

In my case the outcome will be that the VM creation fails. Here are the relevant example logs:

2014-12-01 16:42:45.163 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Checking if we can resize filesystem inside /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk. CoW=True is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:206 2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Instance for image imgfile=/var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk imgfmt=qcow2 partition=None instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:45 2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Using primary VFSGuestFS instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:49 2014-12-01 16:43:09.095 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Setting up appliance for /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk qcow2 setup /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:137 2014-12-01 16:43:18.458 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Mount guest OS image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk partition None setup_os_static /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:83 2014-12-01 16:43:18.570 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Tearing down appliance teardown /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:185 2014-12-01 16:43:18.572 1912 WARNING nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas 2014-12-01 16:43:18.595 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Unable to mount image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with error Error mounting /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with libguestfs (mount_options: /dev/sda on / (options: ''): mount: you must specify the filesystem type). Cannot resize. is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:218

Since using Juno, file injection is forced to open the virtual machine rootfs during VM creation. How do I disable the file injection and force metadata service method?

On The compute node /etc/nova/nova.conf under [libvirt] section is configured as follows and still injection is forced to be active.

inject_password = false

false inject_key = false

false inject_partition = -2

-2

In my case the outcome will be that the VM creation fails. Here are the relevant example logs:

2014-12-01 16:42:45.163 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Checking if we can resize filesystem inside /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk. CoW=True is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:206
2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Instance for image imgfile=/var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk imgfmt=qcow2 partition=None instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:45
2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Using primary VFSGuestFS instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:49
2014-12-01 16:43:09.095 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Setting up appliance for /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk qcow2 setup /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:137
2014-12-01 16:43:18.458 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Mount guest OS image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk partition None setup_os_static /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:83
2014-12-01 16:43:18.570 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Tearing down appliance teardown /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:185
2014-12-01 16:43:18.572 1912 WARNING nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas
2014-12-01 16:43:18.595 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Unable to mount image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with error Error mounting /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with libguestfs (mount_options: /dev/sda on / (options: ''): mount: you must specify the filesystem type). Cannot resize. is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:218

/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:218

Since using Juno, file injection is forced to open the virtual machine rootfs during VM creation. How do I disable the file injection and force metadata service method?

Since using Juno on Ubuntu 14.04., file injection is forced to open the virtual machine rootfs during VM creation. On The compute node /etc/nova/nova.conf under [libvirt] section is configured as follows and still injection is forced to be active.

inject_password = false
 inject_key = false
 inject_partition = -2

In my case the outcome will be that the VM creation fails. Here are the relevant example logs:

2014-12-01 16:42:45.163 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Checking if we can resize filesystem inside /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk. CoW=True is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:206
2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Instance for image imgfile=/var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk imgfmt=qcow2 partition=None instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:45
2014-12-01 16:42:45.164 1912 DEBUG nova.virt.disk.vfs.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Using primary VFSGuestFS instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:49
2014-12-01 16:43:09.095 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Setting up appliance for /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk qcow2 setup /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:137
2014-12-01 16:43:18.458 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Mount guest OS image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk partition None setup_os_static /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:83
2014-12-01 16:43:18.570 1912 DEBUG nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Tearing down appliance teardown /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/guestfs.py:185
2014-12-01 16:43:18.572 1912 WARNING nova.virt.disk.vfs.guestfs [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas
2014-12-01 16:43:18.595 1912 DEBUG nova.virt.disk.api [req-aa831aad-d580-4321-ad09-33c2a52049d1 None] Unable to mount image /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with error Error mounting /var/lib/nova/instances/926b8283-7063-4863-bd52-974bd9c67e91/disk with libguestfs (mount_options: /dev/sda on / (options: ''): mount: you must specify the filesystem type). Cannot resize. is_image_partitionless /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:218