Project

General

Profile

Bug #40525

radosgw does not accept -i as ID argument

Added by Max E. Aubrey almost 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
easy first bug
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

radosgw uses the generic_server_usage help text, but doesn't actually accept -i as a way of passing the ID.

As i understand it, it's excluded on the basis of this https://github.com/ceph/ceph/blob/v13.2.5/src/common/ceph_argparse.cc#L490 though i am not familiar enough with the codebase to propose what the right heuristic is for accepting -i only for radosgw and not any other modules that share that type.

Rather minor, but confusing as the output of --help disagrees with what is actually accepted.

# radosgw --help
usage: radosgw [options...]
options:
  --rgw-region=<region>     region in which radosgw runs
  --rgw-zone=<zone>         zone in which radosgw runs
  --rgw-socket-path=<path>  specify a unix domain socket path
  -m monaddress[:port]      connect to specified monitor
  --keyring=<path>          path to radosgw keyring
  --logfile=<logfile>       file to log debug output
  --debug-rgw=<log-level>/<memory-level>  set radosgw debug level
  --conf/-c FILE    read configuration from the given configuration file
  --id/-i ID        set ID portion of my name
  --name/-n TYPE.ID set name
  --cluster NAME    set cluster name (default: ceph)
  --setuser USER    set uid to user or uid (and gid to user's gid)
  --setgroup GROUP  set gid to group or gid
  --version         show version and quit

  -d                run in foreground, log to stderr
  -f                run in foreground, log to usual location

  --debug_ms N      set message debug level (e.g. 1)
# radosgw -i rgw-0 -c /etc/ceph/ceph.conf -f
2019-06-24 15:16:18.778 7f3bbf0c6540 -1 auth: unable to find a keyring on /var/lib/ceph/radosgw/ceph-admin/keyring: (2) No such file or directory

History

#1 Updated by Yuval Lifshitz over 3 years ago

  • Tags set to easy first bug

Also available in: Atom PDF