Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqvm-ls in 4.0-rc1 throw QubesDaemonNoResponseError if no anyvm rule for admin.vm.List #3179
Comments
pietrushnic
changed the title from
qubes-core-admin-client in 4.0-rc1 throw QubesDaemonNoResponseError if no anyvm rule for admin.vm.List
to
qvm-ls in 4.0-rc1 throw QubesDaemonNoResponseError if no anyvm rule for admin.vm.List
Oct 15, 2017
added a commit
to marmarek/qubes-core-admin-client
that referenced
this issue
Oct 15, 2017
added a commit
to marmarek/qubes-core-admin-client
that referenced
this issue
Oct 15, 2017
added a commit
to marmarek/qubes-core-admin-client
that referenced
this issue
Oct 15, 2017
marmarek
referenced this issue
in QubesOS/qubes-core-admin-client
Oct 15, 2017
Merged
Fixes for limited management VM #30
marmarek
added
bug
C: core
P: minor
labels
Oct 15, 2017
marmarek
added this to the Release 4.0 milestone
Oct 15, 2017
marmarek
self-assigned this
Oct 15, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 15, 2017
Member
Thanks for the report. Yes, this is appropriate place for such things. If you have list of shorter items, it may be worth creating a single issue with them.
As for the fix, see linked pull request, especially marmarek/qubes-core-admin-client@2f7d1ca
There are two issues here:
- Missing policy line in the article.
- Even without it, qvm-ls shouldn't crash, especially with such message. It should just list
NAas power state of all the VMs in that case.
The pull request fixes the second thing.
|
Thanks for the report. Yes, this is appropriate place for such things. If you have list of shorter items, it may be worth creating a single issue with them. As for the fix, see linked pull request, especially marmarek/qubes-core-admin-client@2f7d1ca
The pull request fixes the second thing. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pietrushnic
Oct 16, 2017
@marmarek I would be glad to test that, what is the easiest way except direct file replacement ?
pietrushnic
commented
Oct 16, 2017
|
@marmarek I would be glad to test that, what is the easiest way except direct file replacement ? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pietrushnic
Oct 16, 2017
@marmarek ok I did that through sudo python3 setup.py install and can confirm that it fix mentioned problem.
pietrushnic
commented
Oct 16, 2017
|
@marmarek ok I did that through |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pietrushnic
Oct 16, 2017
@marmarek I assume that this rules:
/etc/qubes-rpc/policy/admin.vm.Create.AppVM:test-mgmt $adminvm allow,target=$adminvm
/etc/qubes-rpc/policy/include/admin-local-rwx:test-mgmt $tag:created-by-test-mgmt allow,target=$adminvm
/etc/qubes-rpc/policy/admin.label.List:test-mgmt $adminvm allow,target=$adminvm
/etc/qubes-rpc/policy/admin.vm.List:test-mgmt $adminvm allow,target=$adminvm
Should give me list only VM create by my test-mgmt, but I get all vms:
[user@test-mgmt qubes-core-admin-client]$ qvm-ls
NAME STATE CLASS LABEL TEMPLATE NETVM
debian-9 NA TemplateVM - - -
dev NA TemplateVM - - -
dom0 Running AdminVM - - -
fedora-25 NA TemplateVM - - -
fedora-25-dvm NA AppVM - - -
managed-research NA AppVM red fedora-25 sys-firewall
managed-vpn NA AppVM green fedora-25 sys-firewall
managed-work NA AppVM green fedora-25 sys-firewall
personal NA AppVM - - -
sys-firewall NA AppVM - - -
sys-net NA AppVM - - -
test-mgmt NA AppVM - - -
test-mon NA AppVM - - -
untrusted NA AppVM - - -
vault NA AppVM - - -
work NA AppVM - - -
pietrushnic
commented
Oct 16, 2017
|
@marmarek I assume that this rules:
Should give me list only VM create by my
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 16, 2017
Member
This is how it works currently, as explained in the article:
Before we test things, we need to allow two more R-calls, which are needed due to a temporary limitation of the current implementation of the qvm-* tools, which always attempt to acquire the list of all the VMs in the system. So, we need to either grant access to all the global R-calls (note that we added the rule above to admin-local-rwx, so this time we would also have to add the rule to admin-global-ro), or we need to be more precise by selectively allowing only admin.vm.List and admin.label.List calls to $adminvm:
test-mgmt $adminvm allow,target=$adminvm
In upcoming releases (beyond 4.0-rc1) we plan to remove this limitation, allowing for the possibility of management VMs that cannot get a complete list of all the VMs in the system.
As you can see, you get only a list all VMs, but detailed info is limited to those managed VMs.
If you want to see also state of those managed VMs (running/halted etc), add this rule to admin.vm.List:
test-mgmt $tag:created-by-test-mgmt allow,target=$adminvm
|
This is how it works currently, as explained in the article:
As you can see, you get only a list all VMs, but detailed info is limited to those managed VMs.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pietrushnic
commented
Oct 16, 2017
|
@marmarek ok now got it. Thanks. |
marmarek
closed this
in
marmarek/qubes-core-admin-client@2f7d1ca
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-dom0-cur-test
label
Oct 21, 2017
qubesos-bot
referenced this issue
in QubesOS/updates-status
Oct 21, 2017
Closed
core-admin-client v4.0.9 (r4.0) #283
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.9-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-jessie-cur-test
label
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.9-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-stretch-cur-test
label
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc24-cur-test
label
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc25-cur-test
label
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 21, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc26 has been pushed to the r4.0 testing repository for the Fedora fc26 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 21, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc26-cur-test
label
Oct 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.9-1+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-jessie-stable
and removed
r4.0-jessie-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-core-admin-client_4.0.9-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-stretch-stable
and removed
r4.0-stretch-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc24-stable
and removed
r4.0-fc24-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc25-stable
and removed
r4.0-fc25-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesadmin-4.0.9-0.1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
pietrushnic commentedOct 15, 2017
Qubes OS version:
R4.0Affected TemplateVMs:
debian-8andfedora-25Steps to reproduce the behavior:
Follow introduction
qvm-create --label green --template debian-8 test-mgmt- repro also with fedora-25qvm-run test-mgmt gnome-terminaltest-mgmt:qvm-lspython3-dbusand run againExpected behavior:
qvm-lsshould not crash and list qubes thattest-mgmtcreated.Actual behavior:
qvm-lscrashing as above.General notes:
test-monexample from introduction works fine.After investigation it looks like fault is in lack of:
Adding lead to
test-mgmtworking.BTW I see more problems in mentioned article, do you think issues here are best method to report this problems ?
Related issues: