Skip to content

[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
red-hat-storage:release-4.21from
openshift-cherrypick-robot:cherry-pick-14707-to-release-4.21
Open

[release-4.21] Fix mon pod selection on LSO deployments in test_mon_data_avail_warn#15135
openshift-cherrypick-robot wants to merge 3 commits into
red-hat-storage:release-4.21from
openshift-cherrypick-robot:cherry-pick-14707-to-release-4.21

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

This is an automated cherry-pick of #14707

/assign amr1ta

amr1ta and others added 3 commits May 13, 2026 10:00
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>
@openshift-ci openshift-ci Bot added the lgtm label May 13, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented 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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm size/M PR that changes 30-99 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants