From 762f230cb37bdceaed3fb264e9cede48c2749d3f Mon Sep 17 00:00:00 2001 From: Ryan Harper Date: Fri, 27 Sep 2019 14:48:52 +0000 Subject: ovf: do not generate random instance-id for IMC customization path Cloud-init will not operate properly if the instance-id value changes on each boot. This is the source of a number of behavioral bugs filed against cloud-init with OVF datasource. Instead, use a static instance-id value, iid-vmware-imc, similar to iid-dsovf. --- cloudinit/sources/DataSourceOVF.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py index b1561892..e7794aab 100644 --- a/cloudinit/sources/DataSourceOVF.py +++ b/cloudinit/sources/DataSourceOVF.py @@ -406,9 +406,7 @@ def read_vmware_imc(config): if config.timezone: cfg['timezone'] = config.timezone - # Generate a unique instance-id so that re-customization will - # happen in cloud-init - md['instance-id'] = "iid-vmware-" + util.rand_str(strlen=8) + md['instance-id'] = "iid-vmware-imc" return (md, ud, cfg) -- cgit v1.2.3