Add support for zesty cloud-init by setting product_name

Change-Id: Ibc6fc11173a0e1388dbcd5b9e384e6d2e20360e3
This commit is contained in:
Paul Hummer
2017-02-09 08:46:08 -07:00
parent 1f04f663bc
commit 0519fb9edd
2 changed files with 2 additions and 0 deletions

View File

@@ -1282,6 +1282,7 @@ class LXDDriverTest(test.NoDBTestCase):
config = lxd_driver.config_instance_options({}, instance)
self.assertEqual({'security.idmap.isolated': 'True',
'environment.product_name': 'OpenStack Nova',
'boot.autostart': 'True'}, config)
def test_container_isolated_unsupported(self):

View File

@@ -1418,6 +1418,7 @@ class LXDDriver(driver.ComputeDriver):
# Set the container to autostart when the host reboots
config['boot.autostart'] = 'True'
config['environment.product_name'] = 'OpenStack Nova'
# Determine if we require a nested container
flavor = instance.flavor