Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/QubesOS/qubes-core-admin-client

Qubes management API client
https://github.com/QubesOS/qubes-core-admin-client

tools/qvm-ls: allow list only selected VMs

Restore possibility to list only some VMs, by naming them on command
line.

0533703ddfd273cae2919525bf4e088ae88cda8b authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-ls: add --raw-list option for compatibility with R3.2

There was an option to list just VM names, useful for scripting.
Preserve that for compatibility.

080b563ae27ea7b1249f22ed60bbfcc3edd3c144 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-ls: add --network and --disk compatibility options

Shortcuts for new --format=...

b16f3ab79bf510d43e54458ebce179a15371c0d3 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start: add naive waiting for cdrom device

When starting a VM with --cdrom=some-vm:/some/path/to.iso, it can be
started only when loop devi...

9b5546f1b0dd892b38967568c52011d3bcb29a12 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix handling optional domain list

It wasn't possible to use QubesArgumentParser(vmname_nargs=...) for
optional domain list - the o...

4af13d5445b9bd8261a18220bc12d515af7ac02d authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: add volume.is_outdated() function

This is to match core-admin API. Logically it could be a property not a
method (as other things ...

5b0e7123b81bd4ae2004616f77108a57a7f8a1c0 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: add info about specific qvm-device cases

The tool can be called also as qvm-DEVICE_CLASS, for example qvm-block
or qvm-pci.

3fcae995df9923044148a6316adc973aa135fda9 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/47'

* qubesos/pr/47:
qvm-device.rst: Document '--ro' option
qvm-device/block: Alias '--ro' to '-...

626c764459223fe1c8ff8cff7f6ec5a9dcb3bd4f authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
add QubesVM.connected_vms attribute

One more step to core-admin/core-admin-client API compatibility.

97724a2e0038097beffeeb72db51e640c0339764 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
qvm-device.rst: Document '--ro' option

a1171a8fa8e97cc60bfbb7338f677007077e4dc2 authored almost 7 years ago by Rusty Bird <[email protected]>
qvm-device/block: Alias '--ro' to '--option read-only=yes'

It's quicker to type and compatible with pre-R4.0 habits/scripts.

58cecf6b3f3cbffbbd0431d8423beca5e1139107 authored almost 7 years ago by Rusty Bird <[email protected]>
Merge remote-tracking branch 'qubesos/pr/44'

* qubesos/pr/44:
Fix style else-return
tests: update qvm-template-process and qvm-remove tes...

51a89a9e779648783022d731e8af33e7607ef731 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'tasket01' of https://github.com/tasket/qubes-core-admin-client into tasket01

297dec9c55602afcad0e90a7864b38b93a6ab77d authored almost 7 years ago by Christopher Laprise <[email protected]>
Fix style else-return

acd5f2e524274467987bd8db6c9335301e157b3d authored almost 7 years ago by Christopher Laprise <[email protected]>
tests: update qvm-template-process and qvm-remove tests

75a433f07a81e8811e2a58059ed48cb27ac28be9 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add --force to manpage.

7a948c7f19fb92914678a18f0cbad22e9591a75a authored almost 7 years ago by Christopher Laprise <[email protected]>
doc: update qvm-features documentation

QubesOS/qubes-issues#2488
QubesOS/qubes-issues#3432

6258eae17fa53b6176618cbff09efb8701c2a4b3 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: restore Qubes 3.x VMs as HVMs

Make use of better security of Qubes 4.x by using HVM by default. If
some VMs are incompatible w...

0e033645adf0e5b1fa4b8209570abb78a9dadd0e authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Avoid cloning installed_by_rpm

7a9b0c232c12db96828496fb7376985c72179489 authored almost 7 years ago by Christopher Laprise <[email protected]>
Print vm list before prompt

8b03c9cc9cc2eb1de508ada88653353d513c87e0 authored almost 7 years ago by Christopher Laprise <[email protected]>
Use --force instead of --yes

91928ae0c6d213c8761cddcac8c1854167c68823 authored almost 7 years ago by Christopher Laprise <[email protected]>
Toggle installed_by_rpm in template tool

f7d27cdcdc9f2c69425542cab9c2667fe9b55acf authored almost 7 years ago by Christopher Laprise <[email protected]>
Fix error message grammar

ac7461d1e8560ebcdbe3bafb6b065d24dbf32a09 authored almost 7 years ago by Christopher Laprise <[email protected]>
Add --yes option and confirm prompt.

ed11346977851712c1ab5187e06b60a93d4ad5b6 authored almost 7 years ago by Christopher Laprise <[email protected]>
tools/qvm-ls: fix handling columns with underscore

Mangling column type was inconsistent, resulting in
KeyError('VIRT_MODE').

917df5a8c55562956297bb80c8c4d94881e31044 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Make pylint happy

Updated pylint on Travis-CI is slightly stricter.

c82d5b0a73575d2524672b2fefd031cf202b0439 authored almost 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: make pylint happy

Use 'vm_info' instead of restore_info['dom0'], as it is available inside
the loop. And break som...

796a3d43aeb54ea5ce6f5c138a99f4c2ddc9f2d3 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/43'

* qubesos/pr/43:
Fix dom0-related issues

c2281fefc88b6f22eae7d383de9caa9996e100f9 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.12

2da7ca8c44d8d3aa4ebdc6ecd0efb245e5759863 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix dom0-related issues

c6bc4f05cb40d453eeb09e2f02b09dc751907d7f authored about 7 years ago by Christopher Laprise <[email protected]>
Another approach for making qvm-shutdown nice for tests

bc9fd47aa01fe5230ec5cbe96ba0a24d14c98ead authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Make pylint happy

5944de1eedc44c8d37c7038fe41331c702f3f853 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
make qvm-shutdown nice for unit tests

Make it deterministic.

448fbb8309231984681a702d1470c9004d30b9ef authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: update tests for fixed verify_only handling

8ebcb438ddc18359534ccc5ad726c9ad73b2875f authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/42'

* qubesos/pr/42:
verify-only avoid dom0 handler
Fix verify-only
Issue #3303

3541b7d883ab15e19fc6d29e8d76a46e99cc4bb0 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
verify-only avoid dom0 handler

d84423b0b237b19a4648c985f39c412cdc06ea9f authored about 7 years ago by Christopher Laprise <[email protected]>
Fix verify-only

f86c640d657c71defe61bd88319f75f8e282a9ce authored about 7 years ago by Christopher Laprise <[email protected]>
tests: make filter-esc tests working also on travis

There stderr is not a tty, so filtering isn't turned on by default. Mock
os.isatty() to fake it.

5b7ea168081676850b647799df3d477c2822742c authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: fix tests after dropping unnecessary admin.label.List call

01114e828b877bd3e317dba5f6fbb8aa0122d221 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
don't use ast.literal_eval, just directly convert to the desired type

It's slow and unnecessary

14b3acec241b103b1019f48f39c906b44e828b7f authored about 7 years ago by qubesuser <[email protected]>
don't lookup list of labels just to read VM properties

If qubesd returns a label name, we can just assume it's valid.

This makes qvm-ls take only one ...

565bdf8549b4ed0351ae7dd1606b58c632b85a42 authored about 7 years ago by qubesuser <[email protected]>
Merge remote-tracking branch 'qubesos/pr/41'

* qubesos/pr/41:
Remove dead code

cb069367d559ffb1743f144686fed2b783f54cd1 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/40'

* qubesos/pr/40:
Disable spinner if --raw-data
Fix qvm-ls --raw-data

bd9016a2dbfd830242f94fb54bac6d38f4ffb49a authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: Update tests after fix for filtering stderr

afc9e645fae938d34e36de751c348c1be10b179d authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/39'

* qubesos/pr/39:
Stop leaking terminal escapes via stderr

1813988074c0e808c62f03f820db15d2d3c999b0 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Issue #3303

6fe5f8c0e71300e35d0af4c916cc5ec6245cd208 authored about 7 years ago by Christopher Laprise <[email protected]>
Remove dead code

123aa28e870e3b6d72f818881f30f70b8669cdaf authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
Disable spinner if --raw-data

16ae4a64b682056a1f92c5641e84cf7f3700ee64 authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
Fix qvm-ls --raw-data

b52371f614141baf70d6e1f8d3c71e92531cadf1 authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
Stop leaking terminal escapes via stderr

This restores Qubes R3.2 behavior

Before this patch, the following:

qvm-run -p sys-firewal...

87230fc042337ae5bed2cee7a789bd29178b6cd2 authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
version 4.0.11

91759077ffb8a9f4c76d6191c799ac0d71744c48 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/38'

* qubesos/pr/38:
Restore correct colors in verbose mode
Fix setting stderr default coloring ...

afe4eef15ffe4bcf2781c03c4faec3697e23b14c authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Restore correct colors in verbose mode

Restore stderr color when printing to stderr, not stdout color

6afe5a98c29719025771cb1aa7a9c0d75e2438cd authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
Fix setting stderr default coloring policy

stderr default should be set if stderr is None, not if stdout is None

57bf88aa30d36f318d2f9a2ffb868de9cd0e47ca authored about 7 years ago by Jean-Philippe Ouellet <[email protected]>
remove format_doc and docutils import

This wastes 100-200ms loading and removing markup every run and none
of the strings contain any ...

dbd2f0ee06f21dfcf6b994139f42315fee080e36 authored about 7 years ago by qubesuser <[email protected]>
don't import pkg_resources in the top of qubesadmin/utils.py

It's slow to import

d08f1a58b7cfe92bf73698e13366abb398cb19ae authored about 7 years ago by qubesuser <[email protected]>
replace key in dir(self) with faster and better code

6e844940cceb05eb146457353aaaa0692457049c authored about 7 years ago by qubesuser <[email protected]>
replace console entry points with just importing the module

importing pkg_resources and looking up entry points wastes 100ms+
of time, which is totally unne...

b731ef388571c30e1d2383bdf6b287ed7c6dbe42 authored about 7 years ago by qubesuser <[email protected]>
version 4.0.10

da327d7abde41dd6635d5ba95dfa84919a0c042a authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/35'

* qubesos/pr/35:
make qvm-run work for non-blocking stdin

dc5afa56bf5c31cc54052c446c7484dde15ee69b authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
make qvm-run work for non-blocking stdin

The main process sometimes sets fd 1 to O_NONBLOCK, and since in the
terminal case fd 0 and 1 ar...

cb644eb1749f3d484329b31dbae7189e07f7535a authored about 7 years ago by qubesuser <[email protected]>
backup: fix handling labels in Qubes 4.0 backups

Labels can be referred as either id or name. Support both ways.

Fixes QubesOS/qubes-issues#3211

7f728e2dad9a14f5908146b5cae56133b2f15751 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-shutdown: fix handling shutdown timeout for multiple VMs

When some VM timeout on shutdown, the tool will try to kill all of them,
but at this point some ...

7bcab46f96e58b772a2aa82093582dd7f2941adc authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Document device attach options in man page

Fixes QubesOS/qubes-issues#3204

2fac77da6f4d2462ee94bdc2e3f976b3b988f866 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.9

ef17e868100da46c9b5f34d430b7b1ace3e39b3d authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'fixes-20171019'

* fixes-20171019:
tools: fix handling qvm-run --no-autostart
backup: improve migrating templ...

7f269770d55b76b42b06267e9c8b4bc3befba88d authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'bug3179'

* bug3179:
Drop log.DBusHandler
vm: fix handling policy deny on admin.vm.List

61ddccb6d6a094f270180b0bd388c42094650639 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix handling qvm-run --no-autostart

Fixes QubesOS/qubes-issues#3083

8981e71b889b6b6cdec75e06d869a63b6e366c3a authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: improve migrating templates from Qubes 3.x

In Qubes 3.x any PV template had qrexec-agent and gui-agent installed.
Adjust features appropria...

f89d67c3e335330c2f47438377f1ffff544b5a60 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix DeviceInfo objects comparing

Do not crash if the other object is completely different type. Return
False ("unequal") instead....

abc0d0063e313e6f6da332b19d0133325c191d9a authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add CentOS support and fix python3 dependencies for CentOS (except python3-sphinx and python3-daemon which has no python34 package)

d3ea2845cdce884e5c95e4a66c530477bc391647 authored about 7 years ago by Frédéric Pierret <[email protected]>
version 4.0.8

bb02c6f4a9983450ed4ba04c1030f68f482731f1 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: multi-part volume in backup tests

Create on of VM's disk volumes big enough to split it into multiple
parts. To do that, add a tes...

a6ff459a1dd3352489d5858280422d84884b6281 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: do not try to read tar's stderr past EOF

If EOF is reached on tar's stderr, stop reading it, even if didn't found
expected data. Log this...

513163276f00b5b3ea82ed2009ddb594b509e597 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: improve restoring HVMs from Qubes 3.2

Set kernel to '' - boot from VM's own bootloader.
Keep it on MiniOS-based stubdomain - otherwise...

7a6e8d04b8a435cb17d7e9526462733ad41ce73e authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: update DispVM template property: template_for_dispvms

It was renamed from 'dispvm_allowed'.

QubesOS/qubes-issues#3047

d1eab2d4f5333aa58522c6b6c97010d050df7090 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: fix name of meminfo-writer feature

It's 'service.meminfo-writer'.

001b42f7d81595a64e05d296f4d4828440d9167d authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: clarify that qvm-backup needs absolute path

Fixes QubesOS/qubes-issues#3066

cbdc2170b4223ca46976f630ed5adbb65b148ad9 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: fix restoring template VMs

os.path.splitext fails on path without proper file base name, like
'/something/..000'. Use plain...

9cdb2a8152aea6720a581fe1d6796767a174f468 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Drop log.DBusHandler

Packages had missing dependency on python-dbus. Since DBusHandler isn't
used anywhere, drop it, ...

654da7cb03f3e976d603e898f16e69f381860085 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: fix handling policy deny on admin.vm.List

vm.get_power_state() have specifically documented 'NA' state for cases
when it's unable to get V...

2f7d1ca47666c53e875c6909666fe2054460b590 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.7

17670eae1b5ff86a52b638a8fa9e448c3d3998b7 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: adjust qvm-start message and logic, update tests

QubesOS/qubes-issues#3130

0187588531c41b00ba59d35bfbf96425fb18d845 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/28'

* qubesos/pr/28:
qvm-start: exit if domain running and no --skip-if-running

bf4c9bacb4564921c46f144932869a92d83719f1 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
rpm: add conflict with too-old qubes-manager

There is an API change, be sure to install both updates at the same
time.

45a7c5516c5a57105129aee1a4428eb030bf4475 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: drop suspend and resume methods - not part of the Admin API

98e39ca63b0b48fd3e824e35b0da5199d8bbc0f8 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start: fix starting a VM with cdrom image

1. Output of `losetup` command contains `\n` - strip it.
2. Provide read-only option - if device...

559cc9b0d64fb606a2595d0b7c2db79796e4b72d authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: finish 'qvm-volume revert' implementation, add tests

It wasn't aware of snapshot identifier, fix that. Also update to use
VM:VOLUME syntax, not POOL:...

8476afc306f38c2a063969e3d55c28051135f363 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Always use QubesVM objects, instead of AppVM/TemplateVM etc

Very few calls at client side really needs VM class name. So, even in
non-blind mode use just Qu...

edcaed537a118b0ee8eb6e62f11630e459947635 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Move vm.appvms to QubesVM

First, TemplateVM is not used anymore (see previous commit). Second,
don't harcode on client sid...

b55f6159428be8c6e3cffd60457e556cbac1d830 authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Drop individual VM classes as python types completely

Since those are unused now, remove them from the source, so it is easier
to debug the code (avoi...

c87820fba8798e1e4079e06028b2367a1463467b authored about 7 years ago by Marek Marczykowski-Górecki <[email protected]>
qvm-start: exit if domain running and no --skip-if-running

76c4a6421be8ad7c861c908aca96d2cff38a5ae7 authored about 7 years ago by Mindy Preston <[email protected]>
tools: fix qvm-run --help

QubesOS/qubes-issues#

ab9a57a5448647aa8f9d5dcaa60342a1f35f5d3a authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: ignore events from non-existing domains

It may happen that when client handle the event, domain no longer
exists. This is for example co...

0a06ad91524d678b085fefca04ca8ef684497348 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Implement "blind mode" to avoid listing objects

This allows to perform actions on objects (VM, storage etc), without
listing them. This is usefu...

b28ddb6621b4f42b0d02cfe67a6b6e8b63ac7dee authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.6

0eec5cb8c93522a7ee594c36c8b02ff83760e675 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: restore qvm-start --cdrom and similar options

Booting a VM from cdrom require attaching the device before VM startup,
which is possible only i...

5e2638ab5ead172eb0aca2c447c2c0592ef04723 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
devices: client stub for DeviceCollection.update_persistent

QubesOS/qubes-issues#3055

1481dc4fb867e5509c65d4a24ba76b66617f38e0 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: cleanup temporary files after qvm-template-postprocess

b895015274bd87b833f1410c0f9258baf51f36a1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix too long lines

QubesOS/qubes-issues#2983

336807e8daae2a46fa4ef6f0336d5ba2ef178fb5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>