open-nomad/nomad/state
Tim Gross 4c9688271a
CSI: fix potential state store corruptions (#16256)
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 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.
2023-02-27 08:47:08 -05:00
..
indexer
paginator
autopilot.go
autopilot_test.go
deployment_events_test.go
events.go
events_test.go
iterator.go
schema.go
schema_test.go
state_changes.go
state_store.go
state_store_acl.go
state_store_acl_binding_rule.go
state_store_acl_binding_rule_test.go
state_store_acl_sso.go
state_store_acl_sso_test.go
state_store_acl_test.go
state_store_oss.go
state_store_restore.go
state_store_restore_test.go
state_store_service_regisration_test.go
state_store_service_registration.go
state_store_test.go
state_store_variables.go
state_store_variables_oss.go
state_store_variables_test.go
testing.go