Skip to content

Conversation

@harshang03
Copy link

What does this PR do?

Handles corrupted grains cache msgpack data by safely loading cached grains, invalidating bad cache files, and refreshing grains instead of crashing. Adds msgpack error helpers and unit tests.

What issues does this PR fix or reference?

Fixes #68678

Previous Behavior

A corrupted grains cache could raise SaltDeserializationError, causing repeated CRITICAL failures during grains refresh.

New Behavior

Grains cache deserialization failures are handled gracefully: the cache is removed, grains refresh continues, and the minion stays healthy.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@harshang03 harshang03 marked this pull request as ready for review February 8, 2026 10:55
@harshang03 harshang03 requested a review from a team as a code owner February 8, 2026 10:55
@harshang03 harshang03 marked this pull request as draft February 9, 2026 16:13
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.

[Bug]: msgpack deserialization error during grains refresh

1 participant