Crashes in convert_ec2_metadata_network_config on ScalingStack bos01 (ppc64el)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
This is all on 0.7.9-259-
cloud-init is currently crashing on our ScalingStack ppc64el images as used for autopkgtest. It's bad for us, as we set up proxies in /etc/environment using userdata and this isn't written because of the crash.
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
netcfg, src = self._find_
File "/usr/lib/
if self.datasource and hasattr(
File "/usr/lib/
self.metadata)
File "/usr/lib/
macs_metadata = metadata[
KeyError: 'network'
'metadata' is:
{'block-
Note that this does *not* happen on lcy01 or lgw01. In cloud-init-
2017-09-05 03:00:46,477 - warnings.
# A new feature in cloud-init identified possible datasources for #
# this system as: #
# [] #
# However, the datasource used was: Ec2 #
# #
# In the future, cloud-init will only attempt to use datasources that #
# are identified or specifically configured. #
# For more information see #
# https:/
# #
# If you are seeing this message, please file a bug against #
# cloud-init at #
# https:/
# Make sure to include the cloud provider your instance is #
# running on. #
# #
# After you have filed a bug, you can disable this warning by launching #
# your instance with the cloud-config below, or putting that content #
# into /etc/cloud/
# #
# #cloud-config #
# warnings: #
# dsid_missing_
*******
I don't know if that's relevant.
Related branches
- Ryan Harper: Approve
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Approve
-
Diff: 152 lines (+60/-12)2 files modifiedcloudinit/sources/DataSourceEc2.py (+35/-8)
tests/unittests/test_datasource/test_ec2.py (+25/-4)
Ok, I found the commit that introduced this code.
https:/ /git.launchpad. net/cloud- init/commit/ ?id=3c45330af2a 301f2bf219da556 844d01cef6778e
Chad, please can you help us out here?