Actions
Bug #18371
closedceph-disk: error on _bytes2str
% 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
Updated by Kefu Chai over 7 years ago
- Status changed from 12 to Fix Under Review
Updated by Kefu Chai over 7 years ago
- Status changed from Fix Under Review to Resolved
Updated by Kefu Chai over 7 years ago
- Status changed from Resolved to Pending Backport
Updated by Nathan Cutler over 7 years ago
- Copied to Backport #18431: kraken: ceph-disk: error on _bytes2str added
Updated by Nathan Cutler about 7 years ago
- Has duplicate Bug #18694: ceph-disk activate for partition failing added
Updated by Alexey Sheplyakov about 7 years ago
- Copied to Backport #18729: jewel: ceph-disk: error on _bytes2str added
Updated by Nathan Cutler about 7 years ago
- Backport changed from kraken to jewel, kraken
Updated by Sage Weil about 7 years ago
- Priority changed from Immediate to Urgent
Updated by Nathan Cutler about 7 years ago
- Status changed from Pending Backport to Resolved
Actions