dpkg-reconfigure cloud-init: yaml.load errors during MAAS deloyment of Ubuntu 23.04(Lunar)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init |
Fix Released
|
High
|
Chad Smith | ||
maas (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Affects cloud-init 23.1.1 Lunar
MAAS deployed Ubuntu 23.04 (Lunar) machines invoke `dpkg-reconfigure cloud-init` which results in an exit 1 with the following traceback as seen in curtin logs:
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpwr8y_
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/curtin/
ret = args.func(args)
File "/curtin/
builtin_
File "/curtin/
do_
File "/curtin/
apt_
File "/curtin/
apply_
File "/curtin/
dpkg_
File "/curtin/
util.
File "/curtin/
return _subp(*args, **kwargs)
File "/curtin/
raise ProcessExecutio
curtin.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpwr8y_
Exit code: 1
Reason: -
Stdout: ''
Stderr: Traceback (most recent call last):
File "<string>", line 23, in <module>
TypeError: load() missing 1 required positional argument: 'Loader'
Ubuntu 23.04 Lunar has published PyYAML 6.0.1[1] which finally changed the signature on yaml.load to require a Loader= parameter.
This traceback is due to a stale call to yaml.load() in cloud-init.
In Jammy and and earlier, PyYAML was still emitting deprecation warning messages to stderr, but those warnings are silenced automatically by any invocation to `dpkg-reconfigure --frontend=
References:
[1] Pyyaml 6.0.1 commit sync'd to lunar https:/
[2] yaml.load failure on Lunar: https:/
Changed in cloud-init: | |
importance: | Undecided → High |
status: | New → Triaged |
assignee: | nobody → Chad Smith (chad.smith) |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: bug-council |
Changed in maas: | |
status: | Triaged → Invalid |
importance: | High → Undecided |
tags: | removed: bug-council |
Changed in maas (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.