Project

General

Profile

Bug #18371

ceph-disk: error on _bytes2str

Added by Sage Weil 11 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
12/30/2016
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel, kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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

Duplicated by Ceph - Bug #18694: ceph-disk activate for partition failing Resolved 01/27/2017
Copied to Ceph - Backport #18431: kraken: ceph-disk: error on _bytes2str Resolved
Copied to Ceph - Backport #18729: jewel: ceph-disk: error on _bytes2str Resolved

History

#1 Updated by Kefu Chai 11 months ago

  • Assignee set to Kefu Chai

#2 Updated by Kefu Chai 11 months ago

  • Status changed from Verified to Need Review

#3 Updated by Kefu Chai 11 months ago

  • Status changed from Need Review to Resolved

#4 Updated by Kefu Chai 11 months ago

  • Status changed from Resolved to Pending Backport

#5 Updated by Nathan Cutler 11 months ago

#6 Updated by Nathan Cutler 10 months ago

  • Duplicated by Bug #18694: ceph-disk activate for partition failing added

#7 Updated by Alexey Sheplyakov 10 months ago

#8 Updated by Nathan Cutler 10 months ago

  • Backport changed from kraken to jewel, kraken

#9 Updated by Sage Weil 9 months ago

  • Priority changed from Immediate to Urgent

#10 Updated by Nathan Cutler 9 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF