Activity log for bug #1780071

Date Who What changed Old value New value Message
2018-07-04 10:05:53 Krzysztof Kolasa bug added bug
2018-07-04 10:05:53 Krzysztof Kolasa attachment added solution to my problem https://bugs.launchpad.net/bugs/1780071/+attachment/5159547/+files/encode-utf8.patch
2018-07-04 12:32:46 Simon Poirier landscape-client: status New Triaged
2018-07-04 12:32:50 Simon Poirier landscape-client: importance Undecided Medium
2018-07-04 12:52:00 Simon Poirier landscape-client: assignee Simon Poirier (simpoir)
2018-07-04 19:47:42 Simon Poirier landscape-client: status Triaged In Progress
2018-07-13 13:54:59 Simon Poirier landscape-client: status In Progress Fix Committed
2018-07-16 22:07:43 Simon Poirier bug task added landscape-client (Ubuntu)
2018-07-16 22:12:24 Simon Poirier attachment added cosmic.debdiff https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1780071/+attachment/5164306/+files/cosmic.debdiff
2018-07-16 22:12:48 Simon Poirier attachment added bionic.debdiff https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1780071/+attachment/5164307/+files/bionic.debdiff
2018-07-16 22:47:47 Simon Poirier description Exception after login: --------------------- Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-24-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Jul 4 10:41:09 CEST 2018 System load: 0.0 Swap usage: 5% Usage of /home: unknown Users logged in: 0 Memory usage: 16% IP address for enp3s0: 192.168.20.12 => There were exceptions while processing one or more plugins. See /var/log/landscape/sysinfo.log for more information. * Meltdown, Spectre and Ubuntu: What are the attack vectors, how the fixes work, and everything else you need to know - https://ubu.one/u2Know * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 0 pakietów może zostać zaktualizowanych. 0 aktualizacji jest aktualizacjami zabezpieczeń. -------------------- sysinfo.log: 2018-06-19 23:19:34,877 ERROR Processes plugin raised an exception. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py", line 99, in run result = plugin.run() File "/usr/lib/python3/dist-packages/landscape/sysinfo/processes.py", line 18, in run for process_info in info.get_all_process_info(): File "/usr/lib/python3/dist-packages/landscape/lib/process.py", line 39, in get_all_process_info process_info = self.get_process_info(process_id) File "/usr/lib/python3/dist-packages/landscape/lib/process.py", line 61, in get_process_info cmd_line = file.readline() File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 152: ordinal not in range(128) ----------------- the problem concerned the decoding of utf8 forms, attached patch resolve my problem, after patch my login screen looks normal: ----------------- Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-24-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Jul 4 11:10:20 CEST 2018 System load: 0.2 Processes: 187 Usage of /home: unknown Users logged in: 1 Memory usage: 18% IP address for enp3s0: 192.168.20.12 Swap usage: 5% * Meltdown, Spectre and Ubuntu: What are the attack vectors, how the fixes work, and everything else you need to know - https://ubu.one/u2Know * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 0 pakietów może zostać zaktualizowanych. 0 aktualizacji jest aktualizacjami zabezpieczeń. [Impact] * An error message is included in when rendering landscape-sysinfo statistics through pam_motd if there are processes with a non-ascii command. This is due to the fact that environment is not passed by pam-motd. * As landscape-sysinfo is present on cloud-images, this bug affects all images since bionic. * This change sets locale variables in the landscape-sysinfo wrapper, so the python interpreter can know which locale to load. [Test Case] * Make sure the system default locale is configured with a valid charset (e.g. /etc/default/locale contains "LANG=C.UTF-8"). * Spawn a process with non-ascii parameters (which are part of the configured charset): sh -c 'sleep 60; echo holà mundo' & sudo login * Check the output of the motd [Regression Potential] * Since this changes only alters the landscape-sysinfo wrapper script, its effects shouldn't alter other functionalities. * Although it is still possible to have a misconfigured locale file, and run commands, the effect would be limited to an error message similar to the one which is currently displayed. [Original Description] Exception after login: --------------------- Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-24-generic x86_64)  * Documentation: https://help.ubuntu.com  * Management: https://landscape.canonical.com  * Support: https://ubuntu.com/advantage   System information as of Wed Jul 4 10:41:09 CEST 2018   System load: 0.0 Swap usage: 5%   Usage of /home: unknown Users logged in: 0   Memory usage: 16% IP address for enp3s0: 192.168.20.12   => There were exceptions while processing one or more plugins. See      /var/log/landscape/sysinfo.log for more information.  * Meltdown, Spectre and Ubuntu: What are the attack vectors,    how the fixes work, and everything else you need to know    - https://ubu.one/u2Know  * Canonical Livepatch is available for installation.    - Reduce system reboots and improve kernel security. Activate at:      https://ubuntu.com/livepatch 0 pakietów może zostać zaktualizowanych. 0 aktualizacji jest aktualizacjami zabezpieczeń. -------------------- sysinfo.log: 2018-06-19 23:19:34,877 ERROR Processes plugin raised an exception. Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py", line 99, in run     result = plugin.run()   File "/usr/lib/python3/dist-packages/landscape/sysinfo/processes.py", line 18, in run     for process_info in info.get_all_process_info():   File "/usr/lib/python3/dist-packages/landscape/lib/process.py", line 39, in get_all_process_info     process_info = self.get_process_info(process_id)   File "/usr/lib/python3/dist-packages/landscape/lib/process.py", line 61, in get_process_info     cmd_line = file.readline()   File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode     return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 152: ordinal not in range(128) ----------------- the problem concerned the decoding of utf8 forms, attached patch resolve my problem, after patch my login screen looks normal: ----------------- Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-24-generic x86_64)  * Documentation: https://help.ubuntu.com  * Management: https://landscape.canonical.com  * Support: https://ubuntu.com/advantage   System information as of Wed Jul 4 11:10:20 CEST 2018   System load: 0.2 Processes: 187   Usage of /home: unknown Users logged in: 1   Memory usage: 18% IP address for enp3s0: 192.168.20.12   Swap usage: 5%  * Meltdown, Spectre and Ubuntu: What are the attack vectors,    how the fixes work, and everything else you need to know    - https://ubu.one/u2Know  * Canonical Livepatch is available for installation.    - Reduce system reboots and improve kernel security. Activate at:      https://ubuntu.com/livepatch 0 pakietów może zostać zaktualizowanych. 0 aktualizacji jest aktualizacjami zabezpieczeń.
2018-07-16 22:48:21 Simon Poirier bug added subscriber Ubuntu Sponsors Team
2018-11-03 23:25:58 Mathew Hodson landscape-client (Ubuntu): importance Undecided Medium
2018-11-03 23:26:18 Mathew Hodson tags sysinfo patch sysinfo
2019-04-20 17:55:17 Simon Quigley nominated for series Ubuntu Eoan
2019-04-20 17:55:17 Simon Quigley bug task added landscape-client (Ubuntu Eoan)
2019-04-20 17:55:17 Simon Quigley nominated for series Ubuntu Cosmic
2019-04-20 17:55:17 Simon Quigley bug task added landscape-client (Ubuntu Cosmic)
2019-04-20 17:55:17 Simon Quigley nominated for series Ubuntu Bionic
2019-04-20 17:55:17 Simon Quigley bug task added landscape-client (Ubuntu Bionic)
2019-04-20 17:55:17 Simon Quigley nominated for series Ubuntu Disco
2019-04-20 17:55:17 Simon Quigley bug task added landscape-client (Ubuntu Disco)
2019-04-20 17:58:41 Simon Quigley landscape-client (Ubuntu Disco): importance Undecided Medium
2019-04-20 17:58:44 Simon Quigley landscape-client (Ubuntu Bionic): importance Undecided Medium
2019-04-20 17:58:46 Simon Quigley landscape-client (Ubuntu Cosmic): importance Undecided Medium
2019-04-20 17:58:48 Simon Quigley landscape-client (Ubuntu Bionic): status New In Progress
2019-04-20 17:58:50 Simon Quigley landscape-client (Ubuntu Cosmic): status New In Progress
2019-04-20 17:58:51 Simon Quigley landscape-client (Ubuntu Disco): status New In Progress
2019-04-20 17:58:53 Simon Quigley landscape-client (Ubuntu Eoan): status New In Progress
2019-04-20 17:59:12 Simon Quigley removed subscriber Ubuntu Sponsors Team
2019-04-22 07:14:26 Launchpad Janitor landscape-client (Ubuntu Eoan): status In Progress Fix Released
2020-07-02 19:53:07 Steve Langasek landscape-client (Ubuntu Disco): status In Progress Won't Fix