nova/releasenotes
Miguel Herranz 8f975bc828 Add support for cloud-init on LXC instances
Images that use cloud-init are not correctly initialized when using
libvirt LXC nova driver.

One way cloud-init checks if the OpenStack datasource should be used
is by checking DMI data that is meaningful for virtual machines but
not for containers.

Another way cloud-init is using is to check if the 'product_name'
env variable for init process (PID 1) is "OpenStack Nova" [1][2].

This commit add that env variable to the instance when the driver
is LXC.

[1] https://cloudinit.readthedocs.io/en/latest/topics/datasources/openstack.html
[2] https://git.launchpad.net/cloud-init/tree/tools/ds-identify#n974

Closes-Bug: 1834506

Change-Id: I2d0a4461081f5284d16df73a783cb7dae3ff0ef5
Signed-off-by: Miguel Herranz <miguel@midokura.com>
2019-10-09 17:31:40 +01:00
..
notes Add support for cloud-init on LXC instances 2019-10-09 17:31:40 +01:00
source Use a less chipper title for release notes 2019-07-26 20:19:05 +00:00