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

device identity #304

Open
wants to merge 56 commits into
base: main
Choose a base branch
from
Open

device identity #304

wants to merge 56 commits into from

Conversation

piotrbartman
Copy link
Member

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 80.38793% with 91 lines in your changes missing coverage. Please review.

Project coverage is 75.23%. Comparing base (d9db37f) to head (22aac29).

Files with missing lines Patch % Lines
qubesadmin/device_protocol.py 75.43% 85 Missing ⚠️
qubesadmin/tools/qvm_device.py 95.18% 4 Missing ⚠️
qubesadmin/events/__init__.py 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
+ Coverage   75.09%   75.23%   +0.13%     
==========================================
  Files          52       52              
  Lines        8541     8799     +258     
==========================================
+ Hits         6414     6620     +206     
- Misses       2127     2179      +52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@piotrbartman piotrbartman marked this pull request as ready for review August 30, 2024 06:09
1. `ask-to-attach` is not even implemented for PCI (assigned devices will be ignored)
2. manual attaching could lead to unusable devices
3. `auto-attach` there is no good reason for ignoring absent of PCI device
If front-vm is down, we still want assignment
Listing all assignments by default could be overwhelming. Now to see all assignment a flag `-s` must be used. Assignments are indicated by '*' before qube name.
Even if device is `auto-attached` it could be manually reattached, so to avoid confusion just show as `attached`
@marmarek
Copy link
Member

Changes here looks okay, but I haven't tried running this version yet.

@piotrbartman
Copy link
Member Author

Important note on breaking backward compatibility: there may exists scripts using qvm-device devclass attach VM back:port --persistent to assign the device (which still works) and respectively qvm-device detach VM back:port to remove this assignment, which does not work anymore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants