Project

General

Profile

Bug #41894

ceph_argparse: UnicodeEncodeError: 'ascii' codec can't encode...

Added by Pietari Hyvärinen about 1 year ago. Updated about 1 year ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
common
Target version:
% Done:

0%

Source:
Community (user)
Tags:
UTF-8 character encoding
Backport:
Regression:
No
Severity:
3 - minor

Description

Ceph Telemetry tool fails with skandic characters

# ceph config set mgr mgr/telemetry/contact 'Utamo Hääppölä <unntamo.haappola@company.com.or.something'
Traceback (most recent call last):
  File "/bin/ceph", line 1263, in <module>
    retval = main()
  File "/bin/ceph", line 1194, in main
    verbose)
  File "/bin/ceph", line 619, in new_style_command
    ret, outbuf, outs = do_command(parsed_args, target, cmdargs, sigdict, inbuf, verbose)
  File "/bin/ceph", line 551, in do_command
    valid_dict = validate_command(sigdict, cmdargs, verbose)
  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 1140, in validate_command
    matched = matchnum(args, sig, partial=True)
  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 879, in matchnum
    validate_one(word, desc, partial and (len(words) == 0))
  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 850, in validate_one
    desc.instance.valid(word, partial)
  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 241, in valid
    format(''.join(sset - self.goodset), s))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 0: ordinal not in range(128)

Related issues

Duplicates Ceph - Bug #14626: Ceph CLI + python bindings restrict string inputs to ASCII, but mon doesn't New

History

#1 Updated by Sebastian Wagner about 1 year ago

  • Subject changed from Ceph Telemetry tool fails with skandic characters to ceph_argparse: UnicodeEncodeError: 'ascii' codec can't encode...
  • Description updated (diff)

#2 Updated by Sebastian Wagner about 1 year ago

  • Duplicates Bug #14626: Ceph CLI + python bindings restrict string inputs to ASCII, but mon doesn't added

#3 Updated by Sebastian Wagner about 1 year ago

  • Status changed from New to Duplicate

Also available in: Atom PDF