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

NAS-130230 / 24.10 / Prevent removing failover group from critical interfaces #14083

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

aiden3c
Copy link
Contributor

@aiden3c aiden3c commented Jul 25, 2024

This prevents clearing failover_group from a NIC marked as failover_critical

@aiden3c aiden3c requested a review from a team July 25, 2024 13:53
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Prevent removing failover group from critical interfaces NAS-130230 / 24.10 / Prevent removing failover group from critical interfaces Jul 25, 2024
@aiden3c
Copy link
Contributor Author

aiden3c commented Jul 25, 2024

Passing test (look for test_004_remove_critical_failover_group)

Copy link
Contributor

@yocalebo yocalebo left a comment

Choose a reason for hiding this comment

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

This changes the behavior of how an error is returned. Before this change, on interface create, we raised a CallError with specific verbiage. Now this will return a ValidationError with different error message on create.

On line 1046, we validate these during a create operation. We should probably add an else branch to that check (so we know it's an update operation) and raise your validation error.

@aiden3c aiden3c requested a review from a team July 25, 2024 16:09
@aiden3c aiden3c merged commit eb8bf23 into master Jul 25, 2024
3 checks passed
@aiden3c aiden3c deleted the NAS-130230 branch July 25, 2024 17:48
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants