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 2039669

Summary: [cephadm] input validation: Prevent MDS services with numeric service ids.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Angadi <sangadi>
Component: CephadmAssignee: Redouane Kachach Elhichou <rkachach>
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: low Docs Contact: Karen Norteman <knortema>
Priority: medium    
Version: 5.1CC: adking, akraj, ceph-eng-bugs, kdreyer, rkachach
Target Milestone: ---Keywords: Rebase
Target Release: 5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.8-2.el8cp Doc Type: Bug Fix
Doc Text:
.Setting up a MDS service with a numeric service ID throws an error to alert user Previously, setting up a MDS service with a numeric service ID would result in crashing of the MDS daemons. With this fix, if an attempt is made to create a MDS service with a numeric service ID, an error is immediately thrown to alert and warn the users to not use a numeric service ID.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-09 17:36:48 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:
Bug Depends On:    
Bug Blocks: 2102272    

Comment 6 Sebastian Wagner 2022-01-18 12:46:47 UTC
Ok, let's report a better error message when applying this service id. Moving to 5.2

Comment 8 Redouane Kachach Elhichou 2022-02-07 14:00:44 UTC
The behavior (from the point of view of MDS) is correct. Numeric service_ids are not allowed on the MDS service (https://github.com/ceph/ceph-container/issues/97) however so far this was not documented properly. I checked with MDS team and they will be opening a PR to update the doc to reflect this restriction. A check at orchestrator level would be added to report a better error message for this scenario as well.

Comment 9 Redouane Kachach Elhichou 2022-02-10 17:35:08 UTC
Documentation PR has been created: https://github.com/ceph/ceph/pull/44971
cephadm code changes PR is under review: https://github.com/ceph/ceph/pull/44928

Comment 10 Redouane Kachach Elhichou 2022-03-01 17:27:54 UTC
Issue is fixed and merged to master (upstream) by the following PRs:

Documentation fix: https://github.com/ceph/ceph/pull/44971
Cephadm fix: https://github.com/ceph/ceph/pull/44928

Comment 21 errata-xmlrpc 2022-08-09 17:36:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5997