Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1927847

Summary: [cephadm] 5.0 - reconfig/redeploy of a entire service using ceph orch commands are accepting invalid parameters or service name
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Preethi <pnataraj>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED DUPLICATE QA Contact: Vasishta <vashastr>
Severity: high Docs Contact: Karen Norteman <knortema>
Priority: high    
Version: 5.0CC: vereddy
Target Milestone: ---   
Target Release: 5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-05 18:51:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Preethi 2021-02-11 16:38:32 UTC
Description of problem:[cephadm] 5.0 - reconfig/redeploy of a entire service using ceph orch commands are accepting invalid parameters or service name


Version-Release number of selected component (if applicable):
[root@magna115 ~]# sudo cephadm version
Using recent ceph image registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest
ceph version 16.0.0-7953.el8cp (aac7c5c7d5f82d2973c366730f65255afd66e515) pacific (dev)


How reproducible:


Steps to Reproduce:
1. Deploy 5.0 cluster with dashboard enabled
2. Enter into cephadm shell
3. Perform reconfig/redeploy of an service by passing invalid service name
4. observe the behaviour

Actual results:
ceph orch command for reconfig/redeploy accepts invalid inputs/parameters without throwing any error


Expected results:
Cmd should throw an error if service name specified is invalid

output snippet:

[ceph: root@magna115 /]# ceph orch reconfig
Invalid command: missing required parameter service_name(<string>)
orch start|stop|restart|redeploy|reconfig <service_name> :  Start, stop, restart, redeploy, or reconfig an entire service (i.e. all daemons)
Error EINVAL: invalid command
[ceph: root@magna115 /]# ceph orch reconfig 12345
[ceph: root@magna115 /]# ceph orch redeploy uuuuuu

Additional info:
magna115
root/q

Comment 1 Adam King 2021-02-17 22:15:30 UTC
upstream tracker issue: https://tracker.ceph.com/issues/49348
upstream fix PR: https://github.com/ceph/ceph/pull/39537

Comment 2 Adam King 2021-03-05 18:51:49 UTC

*** This bug has been marked as a duplicate of bug 1909628 ***