yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81077
[Bug 1849731] Re: Introduction of subplatform around 18.5 broke ConfigDrive
This bug is believed to be fixed in cloud-init in version 19.2-79. If
this is still a problem for you, please make a comment and set the state
back to New
Thank you.
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1849731
Title:
Introduction of subplatform around 18.5 broke ConfigDrive
Status in cloud-init:
Fix Released
Bug description:
I create custom LXD images from Ubuntu minimal images for an OpenStack
environment based on LXD containers and the images I created worked on
Ubuntu 18.04 hosts until around the cloud-init v18.5 release where
subplatform was introduced. My images produced this error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 760, in find_source
if s.update_metadata([EventType.BOOT_NEW_INSTANCE]):
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 649, in update_metadata
result = self.get_data()
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 276, in get_data
self.persist_instance_data()
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 306, in persist_instance_data
self._get_standardized_metadata())
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 246, in _get_standardized_metadata
'subplatform': self.subplatform}}
File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 419, in subplatform
self._subplatform = self._get_subplatform()
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 170, in _get_subplatform
return '%s (%s)' % (subplatform_type, self.source)
This code uses and if/elif which leaves subplatform_type undefined on
my image. I don't have any idea what this is supposed to be, but
looking at other DataSources, they use an if/else so that
subplatform_type is alway defined. The diff that makes this work for
me and works like other DataSources is attached.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1849731/+subscriptions
References