Failed to register device: landscape.client.broker.registr ation.RegistrationHandler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
Fix Released
|
High
|
Dave Jones | ||
Bionic |
In Progress
|
Undecided
|
Simon Poirier |
Bug Description
[ Impact ]
* Landscape-client fails to start on some hardware where the DMI fields
for chassis/
* This prevents some machines from being managed by landscape on bionic.
The issue has already been patched on following series. Previous series
were relying on python2 str and were comparing binary data, thus are
also unaffected.
[ Test Plan ]
* apt install cloud-image-utils qemu-system-x86
* wget http://
* printf '#cloud-
* kvm -smbios type=3,
-smbios type=1,
-drive file=bionic-
-drive file=seed.
* ssh -p 22222 localhost with ubuntu:ubuntu
* sudo landscape-config -a account -p registrationkey \
-t my_bad_dmi_machine --silent
* check /var/log/
[ Where problems could occur ]
* The backported patch touches a few code paths related to file reading.
In particular, the now lossy decoding (due to decode replace)
could have the side effect of unblocking code paths which previously
were failing early on the decoding. This could surface in new errors
in code which now gets to execute on affected machines.
* The lossy decoding now introduces some utf8 replacement characters.
That replacement character being unicode might generate some
inconsistency if different code paths decode the same file data
differently.
* Also, that replacement character is non-ascii unicode. Although the
server and clients should handle that gracefully, there is a chance
that they never got to exercise some fields having unicode. This might
surface more encoding issues in other parts of the code.
Changed in landscape-client (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in landscape-client (Ubuntu): | |
assignee: | nobody → Dave Jones (waveform) |
status: | Confirmed → In Progress |
Changed in landscape-client (Ubuntu): | |
importance: | Undecided → High |
Changed in landscape-client (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in landscape-client (Ubuntu Bionic): | |
assignee: | nobody → Simon Poirier (simpoir) |
status: | New → In Progress |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
For reference:
jamie@rose: /var/log/ landscape$ uname -a /var/log/ landscape$ lsb_release -a
Linux rose 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
jamie@rose:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic