-
-
Notifications
You must be signed in to change notification settings - Fork 115
Fix changing default_netvm #716
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
Conversation
Do not exclude network-providing qubes when checking if changing default_netvm is allowed.
Avoid collision with similar function in dvmtemplate mixin.
Do not duplicate the check if changing to non-running netvm. But more importantly, call the property-pre-set event to unset old netvm. Otherwise setting the new one will fail (property-reset:netvm handler assumes matching pre-(re)set handler detached old value already). DO not use property-pre-reset:netvm here, because it can't know the new value yet (pre-reset is used when changing non-default to default value, so normally it can check what is the default value at the call time - but here it wouldn't work because the default value is going to change). Fixes QubesOS/qubes-issues#10125
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #716 +/- ##
==========================================
+ Coverage 70.47% 70.59% +0.12%
==========================================
Files 61 61
Lines 13560 13561 +1
==========================================
+ Hits 9557 9574 +17
+ Misses 4003 3987 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Check if attach/detach network functions are called. QubesOS/qubes-issues#10125
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025080809-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025061004-4.3&flavor=update
Failed tests15 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/142375#dependencies 11 fixed
Unstable testsPerformance TestsPerformance degradation:3 performance degradations
Remaining performance tests:130 tests
|
Reduce code duplication by calling the same events as on normal netvm change. Especially, this fixes missing detaching old netvm before attaching new one.
Fixes QubesOS/qubes-issues#10125