Bug #49570
cephadm: UnicodeDecodeError when reading sysctl
Status:
Can't reproduce
Priority:
Low
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
cephadm throws an UnicodeDecodeError when reading systctl data which contains unreadable errors.
user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = sb#R� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = £»M� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = ¨>� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = �í� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = V¡� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = ëCõ� user@home ~ » sudo sysctl -a | rg sunrpc.transports sysctl: reading key "kernel.spl.hostid" sunrpc.transports = #^ÿ~ user@home ~ »
This is an issue that is not based in cephadm and actually only due to `sysctl -a` returning gibberish on a host, which cephadm (rightfully) cannot decode to utf-8. Rebooting the machine worked as a workaround.
History
#1 Updated by Sebastian Wagner almost 3 years ago
- Priority changed from Normal to Low
#2 Updated by Sebastian Wagner over 2 years ago
- Status changed from Need More Info to Can't reproduce