TypeError: get_hostname() got an unexpected keyword argument 'metadata_only' on GCE bionic boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
High
|
Chad Smith |
Bug Description
I'm seeing this in syslog via the serial port:
Mar 20 15:02:42 ubuntu cloud-init[817]: Traceback (most recent call last):
Mar 20 15:02:42 ubuntu cloud-init[817]: File "/usr/lib/
Mar 20 15:02:42 ubuntu cloud-init[817]: ret = functor(name, args)
Mar 20 15:02:42 ubuntu cloud-init[817]: File "/usr/lib/
Mar 20 15:02:42 ubuntu cloud-init[817]: _maybe_
Mar 20 15:02:42 ubuntu cloud-init[817]: File "/usr/lib/
Mar 20 15:02:42 ubuntu cloud-init[817]: init.cfg, cloud, metadata_only=True)
Mar 20 15:02:42 ubuntu cloud-init[817]: File "/usr/lib/
Mar 20 15:02:42 ubuntu cloud-init[817]: fqdn = cloud.get_
Mar 20 15:02:42 ubuntu cloud-init[817]: File "/usr/lib/
Mar 20 15:02:42 ubuntu cloud-init[817]: fqdn=fqdn, metadata_
Mar 20 15:02:42 ubuntu cloud-init[817]: TypeError: get_hostname() got an unexpected keyword argument 'metadata_only'
This prevents SSH host keys from being generated, so I can't SSH in to get further information.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 1052 lines (+551/-128)17 files modifiedcloudinit/apport.py (+3/-3)
cloudinit/net/network_state.py (+10/-0)
cloudinit/settings.py (+1/-0)
cloudinit/sources/DataSourceAliYun.py (+1/-1)
cloudinit/sources/DataSourceCloudSigma.py (+1/-1)
cloudinit/sources/DataSourceGCE.py (+1/-1)
cloudinit/sources/DataSourceHetzner.py (+100/-0)
cloudinit/sources/DataSourceOpenNebula.py (+75/-31)
cloudinit/sources/DataSourceScaleway.py (+1/-1)
cloudinit/sources/helpers/hetzner.py (+26/-0)
cloudinit/sources/tests/test_init.py (+28/-0)
debian/changelog (+11/-0)
tests/unittests/test_datasource/test_common.py (+2/-0)
tests/unittests/test_datasource/test_hetzner.py (+99/-0)
tests/unittests/test_datasource/test_opennebula.py (+177/-89)
tests/unittests/test_ds_identify.py (+9/-0)
tools/ds-identify (+6/-1)
- Scott Moser: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 112 lines (+33/-5)6 files modifiedcloudinit/sources/DataSourceAliYun.py (+1/-1)
cloudinit/sources/DataSourceCloudSigma.py (+1/-1)
cloudinit/sources/DataSourceGCE.py (+1/-1)
cloudinit/sources/DataSourceOpenNebula.py (+1/-1)
cloudinit/sources/DataSourceScaleway.py (+1/-1)
cloudinit/sources/tests/test_init.py (+28/-0)
description: | updated |
looks to affect CloudSigma AliYun, OpenNebula too. Will post a branch on this today