Project

General

Profile

Actions

Bug #4599

closed

ceph auth import -i <file> is broken

Added by Dan Mick about 11 years ago. Updated almost 11 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

Digging into history, but: it's not ruled out by preprocess_command, and so never gets to
the code in handle_command; when I try to make it do so, I end up in a locked-Mutex assert
that I haven't yet untangled.

Actions #1

Updated by Dan Mick about 11 years ago

The mutex issue was my new code. The bug is simply that import should be reenabled.

Actions #2

Updated by Sage Weil about 11 years ago

  • Assignee set to Dan Mick
Actions #3

Updated by Anonymous almost 11 years ago

  • Project changed from Ceph to 16
Actions #4

Updated by Ian Colle almost 11 years ago

  • Project changed from 16 to Ceph
Actions #5

Updated by David Zafman almost 11 years ago

As of now ./ceph auth import -i appears to work, but reading from stdin doesn't:

dzafman@ubuntu:~/ceph/src$ ./ceph auth export > saveauth
c*** DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH
exported master keyring
dzafman@ubuntu:~/ceph/src$ ./ceph auth import -i saveauth
  • DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH
    imported keyring
    dzafman@ubuntu:~/ceph/src$ cat saveauth | ./ceph auth import
  • DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH
    <<<HANGS>>>>
Actions #6

Updated by Dan Mick almost 11 years ago

Did it ever work from stdin? I don't see any code in the original tool that would
do that...

Actions #7

Updated by Dan Mick almost 11 years ago

OK. I believe it never worked with stdin, but David points out:

1) the help could be more clear about that, and
2) if -i <file> isn't given, auth import says it imported a keyring of nothing, which is
a bit confusing
3) if stdin is supplied via pipe, ceph hangs. This may not be auth import specific, but
I don't understand it yet.

Actions #8

Updated by Dan Mick almost 11 years ago

  • Status changed from 12 to Fix Under Review
  • Assignee changed from Dan Mick to David Zafman
Actions #9

Updated by Dan Mick almost 11 years ago

Fix pushed to wip-4599; David, can you have a look?

Actions #10

Updated by Dan Mick almost 11 years ago

  • Status changed from Fix Under Review to 7
  • Assignee changed from David Zafman to Dan Mick
Actions #11

Updated by Dan Mick almost 11 years ago

  • Status changed from 7 to Resolved
Actions

Also available in: Atom PDF