** Description changed:

+ [ Impact ]
+ 
+ Unexpected traceback when requesting information from an unknown plugin.
+ 
+ [ Test plan ]
+ 
+ On each affected $series:
+ 
+ * landscape-sysinfo --sysinfo-plugins=Foobar
+ * Observe traceback
+ * sudo apt install -t $series-proposed landscape-client
+ * landscape-sysinfo --sysinfo-plugins=Foobar
+ * Observe no traceback
+ 
+ [ Where things could go wrong ]
+ 
+ TBD
+ 
+ [ Original description ]
+ 
  $ landscape-sysinfo --sysinfo-plugins=Foobar
  Traceback (most recent call last):
-   File "/usr/bin/landscape-sysinfo", line 22, in <module>
-     run(sys.argv[1:], reactor)
-   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
115, in run
-     for plugin in config.get_plugins():
-   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
71, in get_plugins
-     for plugin_name in plugins]
-   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
71, in <listcomp>
-     for plugin_name in plugins]
-   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 173, 
in namedObject
-     module = namedModule('.'.join(classSplit[:-1]))
-   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 159, 
in namedModule
-     topLevel = __import__(name)
+   File "/usr/bin/landscape-sysinfo", line 22, in <module>
+     run(sys.argv[1:], reactor)
+   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
115, in run
+     for plugin in config.get_plugins():
+   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
71, in get_plugins
+     for plugin_name in plugins]
+   File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 
71, in <listcomp>
+     for plugin_name in plugins]
+   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 173, 
in namedObject
+     module = namedModule('.'.join(classSplit[:-1]))
+   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 159, 
in namedModule
+     topLevel = __import__(name)
  ModuleNotFoundError: No module named 'landscape.sysinfo.foobar'
- 
  
  The --exclude-sysinfo-plugins option works just fine with unknown plugins:
  $ landscape-sysinfo --exclude-sysinfo-plugins=Foobar
-   System load:    0.03              Processes:           81
-   Usage of /home: 0.6% of 19.68GB   Users logged in:     1
-   Memory usage:   6%                IP address for ens3: 192.168.122.47
-   Swap usage:     0%
+   System load:    0.03              Processes:           81
+   Usage of /home: 0.6% of 19.68GB   Users logged in:     1
+   Memory usage:   6%                IP address for ens3: 192.168.122.47
+   Swap usage:     0%
  
-   Graph this data and manage this system at:
-     https://landscape.canonical.com/
+   Graph this data and manage this system at:
+     https://landscape.canonical.com/

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

Title:
  [SRU] landscape-sysinfo crashes if asked to use an unknown plugin

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


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

Reply via email to