Project

General

Profile

Actions

Bug #6424

closed

ceph cli: -o failure to open gives backtrace, not error message

Added by Dan Mick over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

Apparently the "can't open output file" path is not quite right:

ubuntu@mira119:/etc/diamond$ ceph osd getcrushmap  -o mymap
Traceback (most recent call last):
  File "/usr/bin/ceph", line 774, in <module>
    sys.exit(main())
  File "/usr/bin/ceph", line 650, in main
    format(parsed_args.output_file, e)
UnboundLocalError: local variable 'e' referenced before assignment
ubuntu@mira119:/etc/diamond$ ceph -o mymap osd getcrushmap  
Traceback (most recent call last):
  File "/usr/bin/ceph", line 774, in <module>
    sys.exit(main())
  File "/usr/bin/ceph", line 650, in main
    format(parsed_args.output_file, e)
UnboundLocalError: local variable 'e' referenced before assignment
ubuntu@mira119:/etc/diamond$ ceph osd getcrushmap  -o /tmp/mymap
got crush map from osdmap epoch 4
Actions #1

Updated by Dan Mick over 10 years ago

  • Status changed from New to 12
  • Source changed from other to Development
Actions #2

Updated by Ian Colle over 10 years ago

  • Assignee set to Dan Mick
Actions #3

Updated by Dan Mick over 10 years ago

  • Status changed from 12 to Resolved
Actions

Also available in: Atom PDF