q-dev: fix and unify device detach on frontend shutdown - #60
Conversation
When a frontend qube with an attached device is shut down, the detach event should be fired Use common parts from utils. Add tests
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026080611-devel&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=2026050504-devel&flavor=update
Failed tests14 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/176874#dependencies 30 fixed
Unstable testsDetails
Performance TestsPerformance degradation:19 performance degradations
Remaining performance tests:92 tests
|
The above looks to be related to this PR. |
| # notify that they are gone and detach them from frontend vms | ||
| utils.device_list_change(self, {}, vm, None, USBDevice) | ||
| # devices attached to shutting-down frontend vm: notify detach | ||
| utils.detach_attached_devices_on_shutdown(self, vm, USBDevice) |
There was a problem hiding this comment.
Note to self: this needs relevant core-admin change uploaded to R4.3, and appropriate package dependency set.
When a frontend qube with an attached device is shut down, the detach event should be fired Use common parts from utils.
Add tests
requires: QubesOS/qubes-core-admin/pull/843