Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of CSI: fix potential state store corruptions into release/1.3.x #16264

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16256 to be assessed for backporting due to the inclusion of the label backport/1.3.x.

The below text is copied from the body of the original PR.


The CSIVolume struct has references to allocations that are "denormalized"; we don't store them on the CSIVolume struct but hydrate them on read. Tests detecting potential state store corruptions (ref #16257) found two locations where we're not copying the volume before denormalizing:

  • When garbage collecting CSI volume claims.
  • When checking if it's safe to force-deregister the volume.

There are no known user-visible problems associated with these bugs but both have the potential of mutating volume claims outside of a FSM transaction. This changeset also cleans up state mutations in some CSI tests so as to avoid having working tests cover up potential future bugs.

@hc-github-team-nomad-core hc-github-team-nomad-core merged commit da8b629 into release/1.3.x Feb 27, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/csi-state-store-corruption/radically-keen-piglet branch from 4350b9a to 19798c6 Compare February 27, 2023 13:47
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/csi-state-store-corruption/radically-keen-piglet branch February 27, 2023 13:47
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.

None yet

2 participants