Project

General

Profile

Actions

Bug #10021

closed

ceph auth caps doesn't show in the CLI help / commands list

Added by Yogev Rabl over 9 years ago. Updated over 9 years ago.

Status:
Can't reproduce
Priority:
Low
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:

0%

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

Description

When trying to resetting a client's permissions I've tried to use the 'ceph auth add' command, and it failed. When searched for this scenario I've found online the option of 'ceph auth caps'.

currently the CLI menu show:
auth print_key <entity>
auth print-key <entity>
auth export {<entity>}
auth get-key <entity>
auth get <entity>
auth list
auth import
auth add <entity> {<caps> [<caps>...]}
auth get-or-create-key <entity> {<caps> [<caps>...]}
auth get-or-create <entity> {<caps> [<caps>...]}

or

General usage: ==============
usage: ceph [-h] [-c CEPHCONF] [-i INPUT_FILE] [-o OUTPUT_FILE]
[--id CLIENT_ID] [--name CLIENT_NAME] [--cluster CLUSTER]
[--admin-daemon ADMIN_SOCKET] [--admin-socket ADMIN_SOCKET_NOPE]
[-s] [-w] [--watch-debug] [--watch-info] [--watch-sec]
[--watch-warn] [--watch-error] [--version] [--verbose] [--concise]
[-f {json,json-pretty,xml,xml-pretty,plain}]
[--connect-timeout CLUSTER_TIMEOUT]

Ceph administration tool

optional arguments:
-h, --help request mon help
-c CEPHCONF, --conf CEPHCONF
ceph configuration file
-i INPUT_FILE, --in-file INPUT_FILE
input file
-o OUTPUT_FILE, --out-file OUTPUT_FILE
output file
--id CLIENT_ID, --user CLIENT_ID
client id for authentication
--name CLIENT_NAME, -n CLIENT_NAME
client name for authentication
--cluster CLUSTER cluster name
--admin-daemon ADMIN_SOCKET
submit admin-socket commands ("help" for help
--admin-socket ADMIN_SOCKET_NOPE
you probably mean --admin-daemon
-s, --status show cluster status
-w, --watch watch live cluster changes
--watch-debug watch debug events
--watch-info watch info events
--watch-sec watch security events
--watch-warn watch warn events
--watch-error watch error events
--version, -v display version
--verbose make verbose
--concise make less verbose
-f {json,json-pretty,xml,xml-pretty,plain}, --format {json,json-pretty,xml,xml-pretty,plain}
--connect-timeout CLUSTER_TIMEOUT
set a timeout for connecting to the cluster

The OS is RHEL-7

the Ceph version is:
ceph-0.80.7-0.el7.x86_64
python-ceph-0.80.7-0.el7.x86_64
httpd-2.4.6-17_ceph.el7.x86_64
ceph-release-1-0.el7.noarch
libcephfs1-0.80.7-0.el7.x86_64
httpd-tools-2.4.6-17_ceph.el7.x86_64
ceph-common-0.80.7-0.el7.x86_64
ceph-deploy-1.5.18-0.noarch
mod_ssl-2.4.6-17_ceph.el7.x86_64
mod_fastcgi-2.4.7-1.ceph.el7.x86_64

Actions #1

Updated by Joao Eduardo Luis over 9 years ago

  • Status changed from New to Can't reproduce

Running on "pretty-close to master with a few unrelated patches":

ubuntu@terminus:~/tmp/foo$ ceph --version
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
ceph version 0.87-598-g093c5f0 (093c5f0cabeb552b90d944da2c50de48fcf6f564)
ubuntu@terminus:~/tmp/foo$ ceph -h
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
[...]
Monitor commands: 
=================
[Contacting monitor, timeout after 5 seconds]
auth add <entity> {<caps> [<caps>...]}   add auth info for <entity> from input 
                                          file, or random key if no input is 
                                          given, and/or any caps specified in 
                                          the command
auth caps <entity> <caps> [<caps>...]    update caps for <name> from caps 
                                          specified in the command
ubuntu@terminus:~/tmp/foo$ ceph auth -h
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
[...]
Monitor commands: 
=================
[Contacting monitor, timeout after 5 seconds]
auth add <entity> {<caps> [<caps>...]}   add auth info for <entity> from input 
                                          file, or random key if no input is 
                                          given, and/or any caps specified in 
                                          the command
auth caps <entity> <caps> [<caps>...]    update caps for <name> from caps 
                                          specified in the command
Actions

Also available in: Atom PDF