Skip to content

Add cluster ping to publish#258

Draft
dabradley wants to merge 1 commit intokubernetes-sigs:developmentfrom
dabradley:add-cluster-ping
Draft

Add cluster ping to publish#258
dabradley wants to merge 1 commit intokubernetes-sigs:developmentfrom
dabradley:add-cluster-ping

Conversation

@dabradley
Copy link
Collaborator

If the IP address for a cluster is not reachable, it takes a very long time for the mount to time out, holding up K8S operations and preventing quick deletion of incorrect volumes.

This change adds ping operation to ensure that the node is able to communicate with the expected cluster before attempting the mount operation. The result is cached for 30 seconds to prevent overwhelming the API if many volumes are being published in a short period of time.

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 15, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dabradley

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 15, 2026
If the IP address for a cluster is not reachable, it takes
a very long time for the mount to time out, holding up K8S
operations and preventing quick deletion of incorrect volumes.

This change adds ping operation to ensure that the node is
able to communicate with the expected cluster before attempting
the mount operation. The result is cached for 30 seconds to
prevent overwhelming the API if many volumes are being
published in a short period of time.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21040971027

Details

  • 31 of 44 (70.45%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.4%) to 87.285%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/azurelustre/azurelustre.go 2 4 50.0%
pkg/azurelustre/nodeserver.go 19 30 63.33%
Totals Coverage Status
Change from base Build 20998306893: -0.4%
Covered Lines: 1977
Relevant Lines: 2265

💛 - Coveralls

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants