Updated description to use SRU bug template in preparation for SRU to
noble, oracular.

** Description changed:

+ [ 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/landscape-config", line 12, in <module>
+     from landscape.client.configuration import main
+   File "/usr/lib/python3/dist-packages/landscape/client/configuration.py", 
line 19, in <module>
+     from landscape.client.broker.config import BrokerConfiguration
+   File "/usr/lib/python3/dist-packages/landscape/client/broker/config.py", 
line 4, in <module>
+     from landscape.client.deployment import Configuration
+   File "/usr/lib/python3/dist-packages/landscape/client/deployment.py", line 
14, in <module>
+     from landscape.client.snap_utils import get_snap_info
+   File "/usr/lib/python3/dist-packages/landscape/client/snap_utils.py", line 
3, in <module>
+     import yaml
+ ModuleNotFoundError: No module named 'yaml'
+ 
+ [ 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-config[4271]:     from 
landscape.client.broker.config import BrokerConfiguration
  Oct 15 19:17:13 n8n landscape-config[4271]:   File 
"/usr/lib/python3/dist-packages/landscape/client/broker/config.py", line 4, in 
<module>
  Oct 15 19:17:13 n8n landscape-config[4271]:     from 
landscape.client.deployment import Configuration
  Oct 15 19:17:13 n8n landscape-config[4271]:   File 
"/usr/lib/python3/dist-packages/landscape/client/deployment.py", line 14, in 
<module>
  Oct 15 19:17:13 n8n landscape-config[4271]:     from 
landscape.client.snap_utils import get_snap_info
  Oct 15 19:17:13 n8n landscape-config[4271]:   File 
"/usr/lib/python3/dist-packages/landscape/client/snap_utils.py", line 3, in 
<module>
  Oct 15 19:17:13 n8n landscape-config[4271]:     import yaml
  Oct 15 19:17:13 n8n landscape-config[4271]: ModuleNotFoundError: No module 
named 'yaml'
  ```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084586

Title:
  Missing python3-yaml dependency in landscape-client package

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/2084586/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to