UnicodeEncodeError from logging code during ceph-volume lvm create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Invalid
|
Undecided
|
Unassigned | ||
ceph (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
When deploying ceph-osd with Bionic-Stein, a UnicdeEncodeError exception is logged every time a disk is initialized as a BlueStore OSD. The logging framework appears to catch this and it does not cause any actual problems, only the spurious warning.
The issue appears to be due to non-ascii characters in the output from "systemctl enable" that is executed by ceph-volume (you can see the stderr output at the bottom of the message)
cmd: ['ceph-volume', 'lvm', 'create', '--osd-fsid', '234af60b-
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/
stream.
UnicodeEncodeError: 'ascii' codec can't encode character '\u2192' in position 186: ordinal not in range(128)
Call stack:
File "/usr/sbin/
load_
File "/usr/lib/
self.
File "/usr/lib/
return f(*a, **kw)
File "/usr/lib/
terminal.
File "/usr/lib/
instance.main()
File "/usr/lib/
terminal.
File "/usr/lib/
instance.main()
File "/usr/lib/
self.
File "/usr/lib/
return func(*a, **kw)
File "/usr/lib/
Activate(
File "/usr/lib/
return func(*a, **kw)
File "/usr/lib/
activate_
File "/usr/lib/
systemctl.
File "/usr/lib/
return enable(volume_unit % (device_type, id_, fsid))
File "/usr/lib/
process.
File "/usr/lib/
log_
File "/usr/lib/
log_
File "/usr/lib/
logger.
Message: 'stderr Created symlink /<email address hidden> \u2192 /lib/systemd/
Arguments: ()
Changed in ceph (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Reproduced on bionic with 13.2.4+ dfsg1-0ubuntu2~ cloud0 from the stein cloud-archive