Ask Your Question

Revision history [back]

This area is used for comment , I need it only due to formatting options
This is not addressing your question directly, but if a final target is to launch VM , then inject_partition = -1 works in Juno at least on CentOS 7. If [libvirt] inject_partition = -1 then libguestfs would inspect and determine the correct mounts.
Working fragment nova.conf on Compute Node :-

[libvirt]
virt_type=kvm
inject_partition=-1
live_migration_uri=qemu+tcp://nova@%s/system
qemu_allowed_storage_drivers = gluster
cpu_mode=host-model
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

This area is used for comment , I need it only due to formatting options
This is not addressing your question directly, but if a final target is to launch VM , then inject_partition = -1 works in Juno at least on CentOS 7. If [libvirt] inject_partition = -1 then libguestfs would inspect and determine the correct mounts.
Looks like Ubuntu specific issue or misconfiguration.
Working fragment nova.conf on Compute Node (CentOS 7) :-

 [libvirt]
 virt_type=kvm
 inject_partition=-1
 live_migration_uri=qemu+tcp://nova@%s/system
 qemu_allowed_storage_drivers = gluster
 cpu_mode=host-model
 vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Replaced with

    [libvirt]
    virt_type=kvm
    inject_partition=-2
    force_config_drive = always
    live_migration_uri=qemu+tcp://nova@%s/system
    qemu_allowed_storage_drivers = gluster
    cpu_mode=host-model
    vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Restarted openstack-nova-compute service first time with

force_config_drive = always

Launched new VM (Ubuntu 14.10 ) with no problems.
Commented out

# force_config_drive = always

Restarted openstack-nova-compute service second time
Launched CirrOS instance with no problems.
Seems that force_config_drive is set by default.
Both options for injection_partion (-1,-2) work
independently of presence force_config_drive = always

Looks like Ubuntu specific issue or misconfiguration.
Working fragment nova.conf on Compute Node (CentOS 7) :-

    [libvirt]
    virt_type=kvm
    inject_partition=-1
    live_migration_uri=qemu+tcp://nova@%s/system
    qemu_allowed_storage_drivers = gluster
    cpu_mode=host-model
    vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Replaced with

    [libvirt]
    virt_type=kvm
    inject_partition=-2
    force_config_drive = always
    live_migration_uri=qemu+tcp://nova@%s/system
    qemu_allowed_storage_drivers = gluster
    cpu_mode=host-model
    vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Restarted openstack-nova-compute service first time with

force_config_drive = always

Launched new VM (Ubuntu 14.10 ) with no problems.
Commented out

# force_config_drive = always

Restarted openstack-nova-compute service second time
Launched CirrOS instance with no problems.
Seems that force_config_drive is set by default.
Both options for injection_partion (-1,-2) work
independently of presence force_config_drive = always


Juno sets force_config_drive, rather then forces file injection.

Looks like Ubuntu specific issue or misconfiguration.
Working fragment nova.conf on Compute Node (CentOS 7) :-

    [libvirt]
    virt_type=kvm
    inject_partition=-1
    live_migration_uri=qemu+tcp://nova@%s/system
    qemu_allowed_storage_drivers = gluster
    cpu_mode=host-model
    vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Replaced with

    [libvirt]
    virt_type=kvm
    inject_partition=-2
    force_config_drive = always
    live_migration_uri=qemu+tcp://nova@%s/system
    qemu_allowed_storage_drivers = gluster
    cpu_mode=host-model
    vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver

Restarted openstack-nova-compute service first time with

force_config_drive = always

Launched new VM (Ubuntu 14.10 ) with no problems.
Commented out

# force_config_drive = always

Restarted openstack-nova-compute service second time
Launched CirrOS instance with no problems.
Seems that force_config_drive is set by default.
Both options for injection_partion (-1,-2) work
independently of presence force_config_drive = always
Juno sets set force_config_drive, rather then forces file injection.