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-134104 / 25.04-RC.1 / Fix netmask being empty string (by Qubad786) #15662

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

bugclerk
Copy link
Contributor

Automatic cherry-pick failed. Please resolve conflicts by running:

git cherry-pick -x d6975d89b23f87119b8162172199a1ed163d2c19

If the original PR was merged via a squash, you can just cherry-pick the squashed commit:

git reset --hard HEAD~1
git cherry-pick -x 0464eafd719c08ff391be3f5c3013eabafe5370e

Problem

In certain race conditions i.e stopping/crashing a virt instance, it is possible that netmask is an empty string returned by incus which breaks our query logic which in turn breaks consumers of virt.instance.query.

Solution

Gracefully handle the case when netmask is reported as an empty string

Original PR: #15660
Jira URL: https://ixsystems.atlassian.net/browse/NAS-134104

@Qubad786 Qubad786 marked this pull request as ready for review February 10, 2025 18:48
@yocalebo yocalebo merged commit d034a0c into stable/fangtooth Feb 10, 2025
1 check passed
@yocalebo yocalebo deleted the NAS-134104-25.04-RC.1 branch February 10, 2025 18:49
@bugclerk
Copy link
Contributor Author

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 Feb 10, 2025
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