Add support for zesty cloud-init by setting product_name
Change-Id: Ibc6fc11173a0e1388dbcd5b9e384e6d2e20360e3
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user