Missing python3-yaml dependency in landscape-client package
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
High
|
Mitch Burton | |||
landscape-client (Ubuntu) | Status tracked in Plucky | |||||
Noble |
In Progress
|
Undecided
|
Unassigned | |||
Oracular |
Fix Committed
|
Undecided
|
Unassigned | |||
Plucky |
Fix Released
|
Undecided
|
Mitch Burton |
Bug Description
[ Impact ]
Versions of landscape-client >= 24.02 use python3-yaml to parse snap assertions. If this dependency is not installed, there is a Python import error and the landscape-client service cannot start. Often this package is installed for other reasons, so this issue is not commonly experienced. However, it should be explicitly fixed.
Bug is fixed by adding python3-yaml to Depends for landscape-client.
[ Test Plan ]
On noble or higher:
1. remove python3-yaml:
sudo apt remove python3-yaml
2. install landscape-client:
sudo apt install landscape-client
3. attempt to register landscape-client with a server:
sudo landscape-config
4. Observe the following error:
Traceback (most recent call last):
File "/usr/bin/
from landscape.
File "/usr/lib/
from landscape.
File "/usr/lib/
from landscape.
File "/usr/lib/
from landscape.
File "/usr/lib/
import yaml
ModuleNotFoundE
[ Where problems could occur ]
* If python3-yaml is for some reason unavailable to be installed, this change would block landscape-client from being installed.
==== Original bug report ====
The landscape-client package must have a `python3-yaml` dependency because without it the service fails to start:
```
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
Oct 15 19:17:13 n8n landscape-
```
Related branches
- Lukas Märdian (community): Approve
- Canonical Server Reporter: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 88 lines (+56/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/fix-plucky-tests.patch (+46/-0)
debian/patches/series (+1/-0)
- Lukas Märdian (community): Approve
- Andreas Hasenack: Needs Fixing
-
Diff: 28 lines (+8/-1)2 files modifieddebian/changelog (+6/-0)
debian/control (+2/-1)
- Lukas Märdian (community): Approve
- Julian Andres Klode (community): Needs Fixing
- git-ubuntu import: Pending requested
-
Diff: 28 lines (+8/-1)2 files modifieddebian/changelog (+6/-0)
debian/control (+2/-1)
Changed in landscape-client (Ubuntu): | |
assignee: | nobody → Mitch Burton (mitchburton) |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client (Ubuntu Oracular): | |
status: | New → In Progress |
Thanks for the bug report! I've verified that this is the case from version 24.02 forward.