cloud-final.service: "cloud-init modules --mode final" exit with "KeyError: 'modules-init'" after upgrade to version 18.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Antonio Romito |
Bug Description
Description of problem:
After the upgrade of cloud-init to version 18.2 cloud-final.service do not start due to the following error and the service remains in not running state
-----
# service cloud-final status
Redirecting to /bin/systemctl status cloud-final.service
● cloud-final.service - Execute cloud user/final scripts
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Fri 2019-02-01 13:14:31 CET; 28min ago
Process: 21927 ExecStart=
Main PID: 21927 (code=exited, status=1/FAILURE)
-----
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 7.6 (Maipo)
cloud-init-
How reproducible:
Steps to Reproduce:
1. [root@rhvm ~]# cloud-init modules --mode=final
Actual results:
[root@rhvm ~]# cloud-init modules --mode final
Cloud-init v. 18.2 running 'modules:final' at Wed, 06 Feb 2019 20:00:14 +0000. Up 10634.29 seconds.
Cloud-init v. 18.2 finished at Wed, 06 Feb 2019 20:00:15 +0000. Datasource DataSourceNoCloud [seed=/
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
if v1[m]['errors']:
KeyError: 'modules-init'
Expected results:
[root@rhvm ~]# cloud-init modules --mode final
Cloud-init v. 18.2 running 'modules:final' at Wed, 06 Feb 2019 19:41:50 +0000. Up 9530.23 seconds.
Cloud-init v. 18.2 finished at Wed, 06 Feb 2019 19:41:50 +0000. Datasource DataSourceNoCloud [seed=/
Additional info:
This problem do not happens with previous cloud-init version:
cloud-init.x86_64 0:0.7.9-24.el7_5.1 will be updated
Related branches
- Server Team CI bot: Needs Fixing (continuous-integration)
- Ryan Harper: Approve
-
Diff: 2904 lines (+1300/-449)34 files modifiedcloudinit/cmd/main.py (+5/-4)
cloudinit/config/cc_ubuntu_advantage.py (+116/-109)
cloudinit/config/cc_ubuntu_drivers.py (+112/-0)
cloudinit/config/tests/test_ubuntu_advantage.py (+191/-156)
cloudinit/config/tests/test_ubuntu_drivers.py (+174/-0)
cloudinit/net/eni.py (+11/-5)
cloudinit/net/network_state.py (+33/-8)
cloudinit/net/sysconfig.py (+25/-9)
cloudinit/sources/DataSourceAzure.py (+168/-89)
cloudinit/sources/DataSourceEc2.py (+6/-2)
cloudinit/sources/DataSourceNoCloud.py (+3/-1)
cloudinit/sources/DataSourceScaleway.py (+2/-1)
cloudinit/sources/__init__.py (+3/-3)
cloudinit/sources/helpers/azure.py (+31/-0)
cloudinit/sources/tests/test_init.py (+15/-0)
cloudinit/util.py (+15/-0)
config/cloud.cfg.tmpl (+3/-0)
debian/changelog (+29/-0)
doc/rtd/topics/datasources/azure.rst (+35/-22)
doc/rtd/topics/datasources/nocloud.rst (+1/-1)
doc/rtd/topics/modules.rst (+1/-0)
tests/cloud_tests/testcases/modules/apt_pipelining_disable.yaml (+1/-2)
tests/cloud_tests/testcases/modules/apt_pipelining_os.py (+3/-3)
tests/cloud_tests/testcases/modules/apt_pipelining_os.yaml (+4/-5)
tests/data/azure/non_unicode_random_string (+1/-0)
tests/unittests/test_datasource/test_azure.py (+22/-2)
tests/unittests/test_datasource/test_nocloud.py (+42/-0)
tests/unittests/test_datasource/test_scaleway.py (+7/-0)
tests/unittests/test_distros/test_netconfig.py (+2/-0)
tests/unittests/test_ds_identify.py (+17/-0)
tests/unittests/test_handler/test_schema.py (+1/-0)
tests/unittests/test_net.py (+209/-15)
tools/ds-identify (+4/-3)
tox.ini (+8/-9)
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper: Approve
- Dan Watkins: Needs Information
-
Diff: 23 lines (+5/-4)1 file modifiedcloudinit/cmd/main.py (+5/-4)
summary: |
- cloud-init modules --mode final exit with "KeyError: 'modules-init'" - after upgrade to version 18.2 + cloud-final.service: cloud-init modules --mode final exit with + "KeyError: 'modules-init'" after upgrade to version 18.2 |
summary: |
- cloud-final.service: cloud-init modules --mode final exit with + cloud-final.service: "cloud-init modules --mode final" exit with "KeyError: 'modules-init'" after upgrade to version 18.2 |
Changed in cloud-init: | |
status: | Incomplete → New |
Changed in cloud-init: | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in cloud-init: | |
assignee: | nobody → Antonio Romito (aromito) |
Could you attach /var/log/ cloud-init. log of the failure?