Bug 1959983
| Summary: | [GSS][mon] rook-operator scales mons to 4 after healthCheck timeout | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Container Storage | Reporter: | Travis Nielsen <tnielsen> |
| Component: | rook | Assignee: | Travis Nielsen <tnielsen> |
| Status: | CLOSED ERRATA | QA Contact: | Shrivaibavi Raghaventhiran <sraghave> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.6 | CC: | agantony, bkunal, madam, muagarwa, ocs-bugs, r.martinez, tdesala |
| Target Milestone: | --- | Keywords: | AutomationBackLog, ZStream |
| Target Release: | OCS 4.6.5 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.6.5-411.ci | Doc Type: | Bug Fix |
| Doc Text: |
Previously, the mon quorum was at risk, as the operator could erroneously remove the new mon if the operator was restarted during a mon failover. With this update, the operator completes the same mon failover after the operator is restarted, and hence the mon quorum is more reliable in the node drains and mon failover scenarios.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-17 15:46:46 UTC | Type: | --- |
| 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: | 1955831 | ||
| Bug Blocks: | |||
|
Comment 1
Elad
2021-05-13 08:01:39 UTC
Correct, 20 minutes for mon failover if a node drain is detected. Elad Correct, the mon failover during a node drain will be 20 minutes after the related BZ. However, the node drain is not necessary to repro this issue. These repro steps would be sufficient: 1. Create the cluster, wait for it to be initially deployed 2. Scale down a mon (e.g. mon-a) so it falls out of quorum 3. Wait for the mon failover to be initiated (10 min) 4. As soon as the new mon (e.g. mon-d) is created and before the bad mon deployment (rook-ceph-mon-a) is deleted, restart the operator 5. After the operator restarts, it will be confused and remove mon-d, which can leave the mons out of quorum. "ceph status" shows that four mons are in the monmap, which means at least 3 of them must be online for quorum. 6. In this test scenario, the operator will automatically scale back up mon-a after it restarts, but if mon-a can't start again such as because of the node drain, the mons would stay out of quorum. For more details see the upstream issue: https://github.com/rook/rook/issues/7797 Platform: ---------- Vmware 3M 3W RHCOS cluster Versions: ---------- OCP - 4.6.30 OCS - ocs-operator.v4.6.5-411.ci Testcases Executed: ---------------------- 1. Perform single node drain and Restart rook-ceph operator during mon failover to happen a. Wait for >= 20 mins and restart the rook-ceph operator b. Uncordon drained node after 20 mins c. Check for mons running in healthy state and no mons should be observed in pending state post recovery of node 2. Delete the mon deployment a. Create the cluster, wait for it to be initially deployed b. Scale down a mon (e.g. mon-a) so it falls out of quorum c. Wait for the mon failover to be initiated (10 min) d. As soon as the new mon is created and before the bad mon deployment (rook-ceph-mon-a) is deleted, restart the operator e. All 3 mons will be running Restarted rook-ceph operator just during the failover I did not see 4 mons, I always saw 3 mons, Its working as expected. we dont see 2 pending Mons Moving the BZ to Verified state How about cutting out a small phrase like this? Previously, the mon quorum was at risk, as the operator could erroneously remove the new mon if the operator was restarted during a mon failover. With this update, the operator completes the same mon failover after the operator is restarted, and hence the mon quorum is more reliable in the node drains and mon failover scenarios. 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 OpenShift Container Storage 4.6.5 security and 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/RHSA-2021:2479 |