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: CLOSED ERRATA
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: Vinayak Papnoi
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2237662
TreeView+ depends on / blocked
 
Reported: 2022-07-14 18:41 UTC by Michael J. Kidd
Modified: 2023-12-13 15:19 UTC (History)
7 users (show)

Fixed In Version: ceph-18.2.0-1
Doc Type: Enhancement
Doc Text:
.Users can now put a host into maintenance mode despite the possibility of losing data Previously, users could not put a host into maintenance mode as stopping all the daemons on that host would cause data unavailability. With this enhancement, a stronger force flag for the `ceph orch host maintenance enter` command called `--yes-i-really-mean-it` is added. Users can now put a host into maintenance mode, even when Cephadm warns against it.
Clone Of:
Environment:
Last Closed: 2023-12-13 15:18:58 UTC
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
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:19:02 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:

Comment 21 errata-xmlrpc 2023-12-13 15:18:58 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 (Red Hat Ceph Storage 7.0 Bug Fix 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/RHBA-2023:7780


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