ppc64el: Subiquity Debug Shell PATH Breaks netplan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Undecided
|
Ubuntu on IBM Power Systems Bug Triage | ||
subiquity |
Fix Released
|
Undecided
|
Dan Bungert |
Bug Description
While attempting to debug errors on cloud-init on ppc64el, I noticed what I believe is a bug.
[ Help ] -> [Enter shell]
Enters a shell that a user will likely want to use for debugging. However, netplan (and I suspect other python-based tools as well) are broken:
root@ubuntu-
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
if not self.is_
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
yaml_data = yaml.load(f, Loader=
AttributeError: module 'yaml' has no attribute 'CSafeLoader'. Did you mean: 'SafeLoader'?
root@ubuntu-
imPython 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.__version__
'5.3.1'
>>> quit()
root@ubuntu-
PRETTY_NAME="Ubuntu 22.04 LTS"
I believe this is caused by PATH and PYTHONPATH:
root@ubuntu-
/snap/subiquity
root@ubuntu-
/snap/subiquity
Overriding the settings allowed me to `netplan apply` and carry on as expected, but I don't think we want users to have to debug unexpected environment variables when they are trying to troubleshoot the system.
description: | updated |
Changed in subiquity: | |
assignee: | nobody → Dan Bungert (dbungert) |
status: | New → In Progress |
Changed in ubuntu-power-systems: | |
status: | New → Fix Committed |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
tags: | added: installer ppc64el |
https:/ /github. com/canonical/ subiquity/ pull/1300