Skip to content

Quiet the start-up noise: empty-name lookups and a busy node record - #9

Merged
Jaben merged 1 commit into
developfrom
quiet-startup-noise
Nov 24, 2026
Merged

Jaben merged 1 commit into
developfrom
quiet-startup-noise

Conversation

@Jaben

@Jaben Jaben commented Nov 24, 2026

Copy link
Copy Markdown
Member

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. Get now answers an empty name without the array and marks a name the array does not have with plugin.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=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.

Tested with go test -race, go vet and 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.

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.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 Get requests and logs expected missing-volume responses at debug level without changing their HTTP error status.
  • Retries failed iSCSI node.startup=manual updates 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

@Jaben
Jaben merged commit 08d5f40 into develop Nov 24, 2026
3 checks passed
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