Repository navigation
Quiet the start-up noise: empty-name lookups and a busy node record - #9
Merged
Merged
Conversation
Docker 29 asks every plugin for a volume with an empty name at start-up, and every node asks about names that belong to other drivers. The plugin asked the array about the empty name too, and logged each "not mine" as a failed request. Get now answers an empty name without the array, marks a name the array does not have as no such volume, and the handler logs that at debug. An unreachable array is still a failure, and the known-volume answer is unchanged. Right after boot, setting node.startup=manual failed on 3 of 8 fresh node records and succeeded a moment later; every connect sets it again, so the records ended up right. It is now tried a second time after a second, and only a second failure warns.
There was a problem hiding this comment.
🟢 Approved
No active review issues block approval of the startup-warning and volume-lookup changes.
No open issues 🎉
What changed in this PR
This PR reduces startup warnings in the FlashArray Docker volume plugin while preserving genuine failure logging and known-volume responses during array outages.
Changes:
- Short-circuits empty-name
Getrequests and logs expected missing-volume responses at debug level without changing their HTTP error status. - Retries failed iSCSI
node.startup=manualupdates once after one second, warning only if the retry fails. - Adds regression tests for volume lookup classification, request logging, and iSCSI retry behavior.
| File | Description |
|---|---|
internal/transport/transport_test.go |
Tests retry count, warning behavior, and continued login. |
internal/transport/iscsi.go |
Adds a cancellation-aware retry for startup-mode updates. |
internal/plugin/plugin.go |
Introduces ErrNoSuchVolume and logs matching errors at debug level. |
internal/plugin/plugin_test.go |
Verifies missing-volume errors stay quiet while real failures still warn. |
internal/driver/driver.go |
Handles empty names locally and classifies confirmed missing volumes. |
internal/driver/driver_test.go |
Tests empty-name handling, missing-volume classification, and outage errors. |
Review effort: Balanced
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.
Two harmless sources of start-up noise, reported from a staging upgrade to 1.4.0.
Docker 29 asks every plugin for a volume with an empty name when it starts, and every node asks about names that belong to other drivers. The plugin sent the empty name to the array as well, and logged each "not mine" as a failed request.
Getnow answers an empty name without the array and marks a name the array does not have withplugin.ErrNoSuchVolume, which the handler logs at debug. An unreachable array is still logged as a failure, and the known-volume answer during an outage is unchanged.Right after boot, setting
node.startup=manualfailed on 3 of 8 fresh node records and succeeded a moment later; every connect sets it again, so the records ended up right. It is now tried a second time after a second, and only a second failure warns.Tested with
go test -race,go vetand golangci-lint on Go 1.27.4; each new test fails with its change reverted. Not run on hardware. The retry is tested against a fake iscsiadm; the failure itself was only seen after a node reboot.