[release-4.21] Fix NFS mount failure on IBM Cloud by fixing retry logic and opening port 2049#15128
Open
openshift-cherrypick-robot wants to merge 4 commits into
Conversation
The retry() calls wrapping self.con.exec_cmd() were broken in two ways: 1. exec_cmd was called immediately and its tuple result passed to retry() instead of passing a callable, so no retry ever occurred 2. Connection.exec_cmd() returns (retcode, stdout, stderr) and never raises CommandFailed, so the retry exception type never triggered Add _mount_nfs_with_retry() helper that wraps exec_cmd in a nested function which raises CommandFailed on non-zero retcode, and calls it via retry properly. Replace all 5 broken call sites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
IBM Cloud VPC LoadBalancer security groups block inbound traffic by default. The NFS LB on port 2049 needs an explicit inbound rule, same as the ingress LB needs rules for ports 80/443 (added in red-hat-storage#15012). Add configure_nfs_lb_security_group() that finds the VPC LB backing the rook-ceph-nfs-my-nfs-load-balancer Service and adds an inbound TCP 2049 rule to its security groups. Call it automatically from create_nfs_load_balancer_service() on IBM Cloud. Add remove_nfs_lb_security_group_rules() to clean up the rule during teardown, called from delete_nfs_load_balancer_service() before the Service is deleted (so the VPC LB is still present for lookup). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
Assert that the specific subvolume created by the test is no longer stale after deletion, instead of asserting zero stale subvolumes cluster-wide. Pre-existing stale subvolumes from other tests caused false failures. Also log the delete output and stale lists for debuggability. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com>
Co-Authored-By: Claude <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 |
Contributor
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 #15119
/assign amr1ta