[release-4.21] Fix mon pod selection on LSO deployments in test_mon_data_avail_warn#15135
Open
openshift-cherrypick-robot wants to merge 3 commits into
Conversation
The LSO code path used ceph_daemon_id label to find the mon pod, but this label is shared between mon and mgr pods (both have ceph_daemon_id=a). When the mgr pod was returned first by the API, the test selected it instead of the mon pod, causing mon_suffix=None and mkdir failure. Replace the LSO-specific pod lookup with get_mon_pods() which uses the unambiguous app=rook-ceph-mon label. The worker node for the LSO dd path is now derived from the selected mon pod's spec.nodeName. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
On LSO, df -Th | grep /etc/hosts returned empty because df shows mount
points not file paths, causing IndexError. Use df -Th with the actual
mon data path (/var/lib/rook/mon-{suffix}/data) via oc debug on the
worker node. Also switch non-LSO to use df -Th {path} directly instead
of grep for reliability.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
Writing 1GB of random data via oc debug can exceed the default 300s timeout, especially on later iterations when the disk is nearly full. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
amr1ta
approved these changes
May 13, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amr1ta, openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated cherry-pick of #14707
/assign amr1ta