Skip to content

fix(pnfs): manage a remote cluster's MDS state volume through its own endpoint - #974

Merged
boddumanohar merged 1 commit into
mainfrom
fix/mds-state-remote-cluster-client
Nov 24, 2026
Merged

boddumanohar merged 1 commit into
mainfrom
fix/mds-state-remote-cluster-client

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

Problem

On a client cluster whose storage is declared in spec.remoteClusters, the standby metadata server (MDS) from #767 never serves an export.

The MDS state coordinator gets its control-plane client from APIFor, which ignored the cluster ID and always returned the local client (cmd/main.go). On a client cluster that client points at the in-cluster simplyblock-webappapi, which does not exist there:

MDSStateUnavailable: ... list volumes in <cluster>/<pool>: Get "http://simplyblock-webappapi:5000/...": dial tcp: lookup simplyblock-webappapi ... no such host

The state volume is never found and no guest is promoted. Every export then fails with the guest is not the active metadata server.

Seen on cluster 81 (client) with storage on 66, while the driver reported 66 as Connected.

Fix

driver.StateVolumeAPI is the new APIFor:

Tests

  • TestTheStateVolumeOfARemoteClusterGoesToItsEndpoint failed before the fix (got the local control plane for a remote cluster) and passes now. It checks that the call reaches the remote endpoint with that cluster's secret.
  • TestTheStateVolumeOfAnUndeclaredClusterGoesToTheLocalControlPlane is a guard and passes before and after.

The driver suite (envtest) passes, along with lint (no new findings) and the style gate.

… endpoint

The MDS state coordinator's APIFor ignored the cluster ID and always
returned the local control-plane client. On a client cluster whose storage
is declared in spec.remoteClusters, the state volume lookup went to the
in-cluster simplyblock-webappapi, which does not exist there, so no guest
was promoted and no pNFS export was served.

APIFor now returns a client for the cluster's own endpoint and credentials
Secret when a SimplyblockDriver declares it, and the local client
otherwise.
@boddumanohar
boddumanohar merged commit 761daaa into main Nov 24, 2026
24 of 25 checks passed
@boddumanohar
boddumanohar deleted the fix/mds-state-remote-cluster-client branch November 24, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants