Repository navigation
fix(pnfs): manage a remote cluster's MDS state volume through its own endpoint - #974
Merged
Merged
Conversation
… 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.
geoffrey1330
approved these changes
Nov 24, 2026
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.
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-clustersimplyblock-webappapi, which does not exist there: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.StateVolumeAPIis the newAPIFor:spec.remoteClusters, it returns a client for that entry's endpoint and credentials Secret. This is the same client the remote-cluster probe from feat(driver): declare remote storage clusters on the SimplyblockDriver #966 uses.Tests
TestTheStateVolumeOfARemoteClusterGoesToItsEndpointfailed 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.TestTheStateVolumeOfAnUndeclaredClusterGoesToTheLocalControlPlaneis a guard and passes before and after.The driver suite (envtest) passes, along with lint (no new findings) and the style gate.