WIP-8112 radosgw usage & man update
cover WIP-8112 radosgw usage & man update
Hi,
This is a series of patches to update radosgw usage and man pages with all the available help options. 1/3 is a minor format fix to display the options in the same line.
Abhishek Lekshmanan (3):
rgw: format help options to align with the rest
rgw: list all available options during help()
doc: update radosgw man page with available opts
doc/man/8/radosgw.rst | 28 ++++++++++++++++++++++++++++ src/rgw/rgw_main.cc | 10 ++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-)
Signature · 4 lines
1.9.1
Thanks,
AbhishekPATCH 1/3 rgw: format help options to align with the rest
Whitespace removal to make all help options align in a similar fashion
--- src/rgw/rgw_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/rgw/rgw_main.cc +2 -2
@@ -724,8 +724,8 @@ int usage() { cerr << "usage: radosgw [options...]" << std::endl; cerr << "options:\n"; - cerr << " --rgw-region=<region> region in which radosgw runs\n"; - cerr << " --rgw-zone=<zone> zone in which radosgw runs\n"; + cerr << " --rgw-region=<region> region in which radosgw runs\n"; + cerr << " --rgw-zone=<zone> zone in which radosgw runs\n"; generic_server_usage(); return 0; }
Signature · 1 line
1.9.1
PATCH 2/3 rgw: list all available options during help()
In reply to Abhishek LekshmananAdding the available help arguments from the man page
--- src/rgw/rgw_main.cc | 6 ++++++ 1 file changed, 6 insertions(+)
src/rgw/rgw_main.cc +6 -0
@@ -726,7 +726,13 @@ int usage() cerr << "options:\n"; cerr << " --rgw-region=<region> region in which radosgw runs\n"; cerr << " --rgw-zone=<zone> zone in which radosgw runs\n"; + cerr << " --rgw-socket-path=<path> specify a unix domain socket path\n"; generic_server_usage(); + cerr << " -m monaddress[:port] connect to specified monitor\n"; + cerr << " --keyring=<path> path to radosgw keyring\n"; + cerr << " --logfile=<logfile> file to log debug output\n"; + cerr << " --debug-rgw=<log-level>/<memory-level> Set radosgw debug level\n"; + return 0; }
Signature · 1 line
1.9.1
PATCH 3/3 doc: update radosgw man page with available opts
In reply to Abhishek Lekshmanan--- doc/man/8/radosgw.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
doc/man/8/radosgw.rst +28 -0
@@ -32,10 +32,38 @@ Options Connect to specified monitor (instead of looking through ``ceph.conf``). +.. option:: -i ID, --id ID + + Set the ID portion of name for radosgw + +.. option:: -n TYPE.ID, --name TYPE.ID + + Set the name for rados gateway (eg. client.radosgw.gateway) + +.. option:: --cluster NAME + + Set the cluster name (default: ceph) + +.. option:: -d + + Run in foreground, log to stderr + +.. option:: -f + + Run in foreground, log to usual location + .. option:: --rgw-socket-path=path Specify a unix domain socket path. +.. option:: --rgw-region=region + + The region where radosgw runs + +.. option:: --rgw-zone=zone + + The zone where radosgw runs + Configuration =============
Signature · 1 line
1.9.1
Applied (with very slight modifications).
Thanks,
Yehuda
Quoted 24 lines · Abhishek Lekshmanan
Hi,
This is a series of patches to update radosgw usage and man pages with all the available help options. 1/3 is a minor format fix to display the options in the same line.
Abhishek Lekshmanan (3):
rgw: format help options to align with the rest
rgw: list all available options duringhelp()
doc: update radosgw man page with available optsdoc/man/8/radosgw.rst | 28 ++++++++++++++++++++++++++++ src/rgw/rgw_main.cc | 10 ++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-)--
1.9.1Thanks,
Abhishek
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi
Actually there was a minor error in the above patchset, the help options should have come before generic_server_usage() as the function exits after that. I have updated this as a PR at https://github.com/ceph/ceph/pull/2248
This should hopefully close the issues http://tracker.ceph.com/issues/8112
and related http://tracker.ceph.com/issues/8864. However as mentioned in #8112 teuthology shows some apache conf file location options being passed for apache conf & rgw ops log etc. I'm not sure whether those (and a few others options related to rgw seen in common/config_opts.h) should be displayed in help. Let me know if any other options are to be documented we can close this.
Signature · 1 line
Abhishek