Project

General

Profile

Actions

Bug #18371

closed

ceph-disk: error on _bytes2str

Added by Sage Weil over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
jewel, kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

# ceph-disk activate /dev/sdc1
mount_activate: Failed to activate
Traceback (most recent call last):
  File "/usr/sbin/ceph-disk", line 9, in <module>
    load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')()
  File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5230, in run
    main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5183, in main
    main_catch(args.func, args)
  File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 5214, in main_catch
    msg=e,
  File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 306, in __str__
    return ': '.join([doc] + [_bytes2str(a) for a in self.args])
TypeError: sequence item 2: expected string or Unicode, CalledProcessError found

changing _bytes2str to just str fixes it:
# ceph-disk activate /dev/sdc1
mount_activate: Failed to activate
ceph-disk: Error: ceph osd create failed: Command '/usr/bin/ceph' returned non-zero exit status 1: 2016-12-30 13:22:09.277947 7fdb1249a700 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-12-30 13:22:09.289862 7fdb1249a700 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-12-30 13:22:09.294176 7fdb1249a700  0 librados: client.bootstrap-osd authentication error (1) Operation not permitted
Error connecting to cluster: PermissionError

ubuntu 16.04, Python 2.7.12


Related issues 3 (0 open3 closed)

Has duplicate Ceph - Bug #18694: ceph-disk activate for partition failingResolved01/27/2017

Actions
Copied to Ceph - Backport #18431: kraken: ceph-disk: error on _bytes2strResolvedShinobu KinjoActions
Copied to Ceph - Backport #18729: jewel: ceph-disk: error on _bytes2strResolvedAlexey SheplyakovActions
Actions #1

Updated by Kefu Chai over 7 years ago

  • Assignee set to Kefu Chai
Actions #2

Updated by Kefu Chai over 7 years ago

  • Status changed from 12 to Fix Under Review
Actions #3

Updated by Kefu Chai over 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions #4

Updated by Kefu Chai over 7 years ago

  • Status changed from Resolved to Pending Backport
Actions #5

Updated by Nathan Cutler over 7 years ago

Actions #6

Updated by Nathan Cutler about 7 years ago

  • Has duplicate Bug #18694: ceph-disk activate for partition failing added
Actions #7

Updated by Alexey Sheplyakov about 7 years ago

Actions #8

Updated by Nathan Cutler about 7 years ago

  • Backport changed from kraken to jewel, kraken
Actions #9

Updated by Sage Weil about 7 years ago

  • Priority changed from Immediate to Urgent
Actions #10

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF