yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76888
[Bug 1815109] [NEW] cloud-init modules --mode final exit with "KeyError: 'modules-init'" after upgrade to version 18.2
Public bug reported:
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/systemd/system/cloud-final.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-02-01 13:14:31 CET; 28min ago
Process: 21927 ExecStart=/usr/bin/cloud-init modules --mode=final (code=exited, status=1/FAILURE)
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-18.2-1.el7_6.1.x86_64
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=/dev/sr0][dsmode=net]. Up 10634.40 seconds
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 9, in <module>
load_entry_point('cloud-init==18.2', 'console_scripts', 'cloud-init')()
File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 882, in main
get_uptime=True, func=functor, args=(name, args))
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 2388, in log_time
ret = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 679, in status_wrapper
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=/dev/sr0][dsmode=net]. Up 9530.34 seconds
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
** Affects: cloud-init
Importance: Undecided
Status: New
** Merge proposal linked:
https://code.launchpad.net/~aromito/cloud-init/+git/cloud-init/+merge/362878
--
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/1815109
Title:
cloud-init modules --mode final exit with "KeyError: 'modules-init'"
after upgrade to version 18.2
Status in cloud-init:
New
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/systemd/system/cloud-final.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-02-01 13:14:31 CET; 28min ago
Process: 21927 ExecStart=/usr/bin/cloud-init modules --mode=final (code=exited, status=1/FAILURE)
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-18.2-1.el7_6.1.x86_64
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=/dev/sr0][dsmode=net]. Up 10634.40 seconds
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 9, in <module>
load_entry_point('cloud-init==18.2', 'console_scripts', 'cloud-init')()
File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 882, in main
get_uptime=True, func=functor, args=(name, args))
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 2388, in log_time
ret = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 679, in status_wrapper
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=/dev/sr0][dsmode=net]. Up 9530.34 seconds
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1815109/+subscriptions
Follow ups