Project

General

Profile

Actions

Bug #41894

closed

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

Added by Pietari Hyvärinen over 4 years ago. Updated over 4 years 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
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 1 (1 open0 closed)

Is duplicate of Ceph - Bug #14626: Ceph CLI + python bindings restrict string inputs to ASCII, but mon doesn'tNew

Actions
Actions #1

Updated by Sebastian Wagner over 4 years ago

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

Updated by Sebastian Wagner over 4 years ago

  • Is duplicate of Bug #14626: Ceph CLI + python bindings restrict string inputs to ASCII, but mon doesn't added
Actions #3

Updated by Sebastian Wagner over 4 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF