Actions
Bug #53572
closedcephadm should not require running as root for --help
% Done:
0%
Source:
Tags:
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
[ceph@ceph0 ~]$ cephadm --help
ERROR: cephadm should be run as root
[ceph@ceph0 ~]$ cephadm bootstrap --help
ERROR: cephadm should be run as root
Running `sudo cephadm --help` & `sudo cephadm bootstrap --help` prints help text.
The options should probably be parsed before the check to verify if the process is root. This way a user executing cephadm commands can get use --help as a quick reference for options prior to running the real command as root (with sudo, etc).
Actions