Public bug reported:
This is all on 0.7.9-259-g7e76c57b-0ubuntu1 in artful.
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/python3/dist-packages/cloudinit/cmd/main.py", line 638, in
status_wrapper
ret = functor(name, args)
File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 357, in
main_init
init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))
File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 635, in
apply_network_config
netcfg, src = self._find_networking_config()
File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 622, in
_find_networking_config
if self.datasource and hasattr(self.datasource, 'network_config'):
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceEc2.py",
line 297, in network_config
self.metadata)
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceEc2.py",
line 461, in convert_ec2_metadata_network_config
macs_metadata = metadata['network']['interfaces']['macs']
KeyError: 'network'
'metadata' is:
{'block-device-mapping': {'ami': 'vda', 'root': '/dev/vda'},
'placement': {'availability-zone': 'nova'}, 'public-keys': {'testbed-
juju-prod-ues-proposed-migration-machine-3': ['ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDBJ2WCstti4DGBSSY+QleVTmqlGNfMPjzSoaCvbC4fk6sb4KvrCjNO+Hn8F2Qaw0j2uUVgwDwlcIgVh2pawyenR01hDqBEuHtH/l6VZsVYsiO83WL5HE8Iwy0i+S2W3saaZq38F19mKNrZ5obTJeRK21t84PN4nE107WTnXSj+o6DXrw4dlGPwRlejKmuhiKIn7WEQSve6fyzDXJT/F70SSUW+NqzpffGmLs2DandlJLxKKcAhLxVSZuEaLF1dY6rDPgwejd+vF64X8YVcRBaLXTQs+iWq5BKxpCfL9NsxNfYOD0vxNmENfvHgX4PXxRWefhavIMQhRs2sY967kmLR
ubuntu@juju-prod-ues-proposed-migration-machine-3']}, 'ami-id': 'ami-
00002bbc', 'ami-launch-index': '0', 'ami-manifest-path': 'FIXME',
'hostname': 'laney.novalocal', 'instance-action': 'none', 'instance-id':
'i-00225797', 'instance-type': 'autopkgtest', 'kernel-id': 'None',
'local-hostname': 'laney.novalocal', 'local-ipv4': '10.43.46.163',
'public-hostname': 'laney.novalocal', 'public-ipv4': '', 'ramdisk-id':
'None', 'reservation-id': 'r-lrjn99ln', 'security-groups': ''}
Note that this does *not* happen on lcy01 or lgw01. In cloud-init-
output.log for bos01 (but not lcy01 or lgw01) I have:
2017-09-05 03:00:46,477 - warnings.py[WARNING]:
**************************************************************************
# 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://bugs.launchpad.net/bugs/1669675 #
# #
# If you are seeing this message, please file a bug against #
# cloud-init at #
# https://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid #
# 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.cfg.d/99-warnings.cfg #
# #
# #cloud-config #
# warnings: #
# dsid_missing_source: off #
**************************************************************************
I don't know if that's relevant.
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1715128
Title:
Crashes in convert_ec2_metadata_network_config on ScalingStack bos01
(ppc64el)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1715128/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs