Bug 2107339 - [cephadm] ceph orch host maintenance enter ignores the --force flag
Summary: [cephadm] ceph orch host maintenance enter ignores the --force flag
Keywords:
Status: POST
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 7.0
Assignee: Adam King
QA Contact: Manasa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-14 18:41 UTC by Michael J. Kidd
Modified: 2023-08-15 13:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-4765 0 None None None 2022-07-14 18:47:45 UTC

Internal Links: 2018266

Description Michael J. Kidd 2022-07-14 18:41:16 UTC
Description of problem:
- In a degraded environment, supplied the --force flag, but the host still did not enter maintenance mode:

[root@mgmt-0 ~]# ceph orch host maintenance enter osds-0.ceph5t.lab.pnq2.cee.redhat.com --force
unsafe to stop osd(s) at this time (97 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag

Version-Release number of selected component (if applicable):
RHCS 5.1z1

How reproducible:
100%

Steps to Reproduce:
1. Set multiple OSD hosts into maintenance mode without allowing rebalance
2. Attempt to set another OSD host into maintenance mode using --force


Actual results:
[root@mgmt-0 ~]# ceph orch host maintenance enter osds-0.ceph5t.lab.pnq2.cee.redhat.com --force
unsafe to stop osd(s) at this time (97 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag

Expected results:
- Host to enter maintenance mode

Additional info:


Note You need to log in before you can comment on or make changes to this bug.