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

dynamic host volumes: set status unavailable on failed restore #24962

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

tgross
Copy link
Member

@tgross tgross commented Jan 27, 2025

When a client restarts but can't restore a volume (ex. the plugin is now missing), it's removed from the node fingerprint so we won't allow future scheduling of the volume. But we were not updating the volume state field to report this reasoning to operators. Make debugging easier and the state field more meaningful by setting the value to "unavailable".

Also, remove the unused "deleted" field value. We did not implement soft deletes and aren't planning on it for Nomad 1.10.0.

Ref: https://hashicorp.atlassian.net/browse/NET-11551

When a client restarts but can't restore a volume (ex. the plugin is now
missing), it's removed from the node fingerprint. So we won't allow future
scheduling of the volume, but we were not updating the volume state field to
report this reasoning to operators. Make debugging easier and the state field
more meaningful by setting the value to "unavailable".

Also, remove the unused "deleted" field. We did not implement soft deletes and
aren't planning on it for Nomad 1.10.0.

Ref: https://hashicorp.atlassian.net/browse/NET-11551
@tgross tgross force-pushed the dhv-failed-restore-state-update branch from 4d2b888 to c124e85 Compare January 27, 2025 20:20
@tgross tgross marked this pull request as ready for review January 27, 2025 21:27
@tgross tgross requested review from a team as code owners January 27, 2025 21:27
Copy link
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

lgtm!

@tgross tgross merged commit 09eb473 into main Jan 27, 2025
30 checks passed
@tgross tgross deleted the dhv-failed-restore-state-update branch January 27, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants