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

Merge remote-tracking branch 'qubesos/pr/24'

* qubesos/pr/24:
Fixed https://github.com/QubesOS/qubes-issues/issues/2983

533fccfc1002f8411126a378d745f1bf371e0081 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'bug2986'

3c9e5f66300ce1ca2c1ef5f0a95fc571fca5029f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: add qvm-create --help-classes

List available VM classes

QubesOS/qubes-issues#3017

0fa374264f98740e15a7bc2e1b3966630b874fb7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: implement qvm-create --root-move-from/--root-copy-from

0464a3ebfca9219dc01a3fe47e06409c4d88af85 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup/restore: do not fail the whole restore when qvm-appmenus is missing

Fixes QubesOS/qubes-issues#2991

f98ea4a5205b7d919affcc1f19ac7400a9d97d05 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup/restore: make backup header extraction faster

Abort tar process after extracting requested files - do not parse the
archive until the end (pos...

6568d624cc402a4f412efa84398447614c9eaf35 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: add short description of VM classes to qvm-create man page

10f6d96e0f7c6d4035f6f48e071bab4db47e7361 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: update list of properties in qvm-prefs/qubes-prefs man pages

Fixes QubesOS/qubes-issues#3011

f7b31a005e68d48e7455e570a2fd60a233a3fdc3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: drop --delete and --unset aliases for --default option

This may be confiusing, for example one may think that
`qvm-prefs --unset vmname netvm` will mak...

a260685bd14e2fe4c59236a09274534e49c2e5bd authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Improve QubesDaemonNoResponseError error message

Include hint to look into dom0 logs

QubesOS/qubes-issues#3016

5b7947b51ac507426e36c1f6fe33a391b97748a3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: add DispVM tests

Especially for one service call wrapper

QubesOS/qubes-issues#3016

188bc2799bdc77930f656ec0a423cd42887f76fc authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm/dispvm: fix dispvm.cleanup() when no service was called

In such a case (especially when running in dom0) there is nothing to
cleanup.

Fixes QubesOS/qub...

3d2d3a29740014318284b7b86efb9779dc9756d9 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: ignore --filter-esc/--no-filter-esc unless --pass-io is given

If no VM output is printed on terminal, those options doesn't make sense
anyway.

Fixes QubesOS/...

596eb3d96c3ac08e475b6f2eed501b1d9bbdda67 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.5

e64bd839a5ad8eb862c6f08ff9870b8050ad61df authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: add default values to qvm-features man page

QubesOS/qubes-issues#

51a7b4493bbea9ac05752c1d28d146b050a81e76 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fixed https://github.com/QubesOS/qubes-issues/issues/2983

qvm-create -l yellow backuptest-1-vm
qvm-create -l yellow backuptest-2-vm
echo -n passphrase >te...

6534f8c19110f80dd86a0947da48e4a0c32580d2 authored over 7 years ago by blackpit <[email protected]>
tools/qvm-device: list attach options

414be0945dc2c98bb7e0ddcf5bffe187faee9705 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: do not use os.set_blocking

It's available only in python >= 3.5, but we do support tools on python
3.4 (Debian jessie).

430ff342d4861f5253085b98d987c2226a5bf9ec authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: add VMCollection.values()

Let it behave more like a dict()

7d25f1bf2b6ac43ffd1ebc52faa2492cf8483ad4 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: list known features in qvm-features manual page

Fixes QubesOS/qubes-issues#2410

7d476f8ba2a4df41b01b99f2d7208a09c975cfe7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: add qvm-run --dispvm option

Add option to uniformly start new DispVM from either VM or Dom0. This
use DispVMWrapper, which t...

37ae76823baae93d7f5c38be9983bd0917ae7c81 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: add DispVMWrapper for calling a single service in new DispVM

This is a wrapper to use `$dispvm` target of qrexec call, just like any
other service call in qu...

9bb59cdd20fa551563a04346559be2f09500708a authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: fix handling small data blocks

When data block is smaller than 4096 (and no EOF is reached), python's
io.read() will call read(...

50bd9f5fab0d68732431c05f5a78982cf9449d49 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.4

1d29929ae122e846753813f20f4dfd062cf587d1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start-gui: do not start stubdomain GUI for VMs with gui-agent

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

02ddbb32c9280ea9cfd4381b28edc4ac2863b394 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'devel-6'

* devel-6:
qvm-ls: fix total VM size reporting
doc: update manpage of qvm-service
tools: q...

f48321dd985a740e34714ccb6bf55fbf035141db authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'events2'

* events2:
events: add variable Admin API method name

f25321bdcc8a01680412b2278723f6515558dd89 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup/restore: add option to ignore size limit

Allow to restore backup which have miscalculated VMs size, but otherwise
is good.

9210048673ddb06a3ee77b4b945e65bf88e5b9f7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
qvm-ls: fix total VM size reporting

There is no vm.storage object in qubesadmin module.

7db2ed82eae87f8f99557df6ae1ddba109f84430 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup/restore: improve error reporting

213760f263d975ed4346b1bdca0fdcbfbbd54c9b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: update qvm-backup man page

07cffc340cbd39b4e5a801ef8ef62f5f9f8af2e2 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: add variable Admin API method name

Add support for differnet methods, not only admin.Events. For example
admin.vm.Stats also return...

9c5531c5adccf1d6cc8194e3ed83a8f30210b91b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: update manpage of qvm-service

QubesOS/qubes-issues#1227

80f1dd7d135d9f6dbb18f9e7f6201d86dc3d79d3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-service tool

This really use features, but keep compatibility with Qubes 3.x

Fixes QubesOS/qubes-issues#1227

18153652f3408d2585bc528d2ad86b7ac5bc5f04 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: too much copy&paste

1000d7902da9317113deda89e394968d3b69bc5e authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
features: serialize True as '1'

Do the same as core-admin code.

0fae70be53823222a54757ef4ca0b629ebaa47e8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-shutdown: fix help message

5b0c8e84d8f01403fa62c1013329dc006860cb48 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-shutdown: drop --force option, it isn't supported anymore

Admin API does not allow this action.

5d0bd4f6dcb130399bae2e7070dcb20753b90a9a authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start-gui: add --force-stubdomain options

Sometimes it's useful to access emulated VGA, without rebooting the VM
in debug mode

416ee0bd22d1d62ed68eb1f2adc09657040bf0e6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
debian: update build depends

0e8422cf82f6b03cfb6f34a32797e87f16603bec authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: add qvm-backup tool

New qvm-backup tool can either use pre-existing backup profile
(--profile), or - when running in...

2d5d9d6d7dd5942d603a80a9e0bbbbdb5a11e8da authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: move BackupRestore class and helpers to 'restore' submodule

This breaks cyclic imports and also allow cleaner separation between
backup make and restore cod...

d8af76ed604182cb97c09cefbd8a45345b5db1ee authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: qvm-backup-restore tool tests

Very simple one, but also fix reporting errors detected by tests.

c50fc21e449f58ccf483c1ee758fb59085c70394 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-backup-restore: fix restoring only specific VMs

Related to QubesOS/qubes-issues#2924

ea47701fe69c13d8835b0be78ef1f7c3d3dc96c6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: disable slow tests unless ENABLE_SLOW_TESTS=1 is set

8d884a52e64e2fec0b8a90ab08a7b6207a306837 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-volume: fix default action handling

3c9fb8dbacf262b3f3992c746d3886fc3a5f4487 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: drop 'internal' volume property

Since external block devices use Devices API now, it isn't useful
anymore.

QubesOS/qubes-issues...

ae0729fb533ccc804fda8c3e17e0fc3e991c4ce7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-backup-restore: fix default list of VMs to restore

By default restore all of them, not only the ones named "[" or "]"
(which are invalid name).

Fi...

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

6f1c7c2b230c3c6b72fd02f27bb2ee05d9fc65b5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Change 'hvm' property to 'virt_mode'

QubesOS/qubes-issues#2912

756235d4f310d35b7f5c8f75a8242b673da5d363 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Choose QubesLocal or QubesRemote based on /etc/qubes-release presence

Do not check for qubesd socket (at module import time), because if not
running at this precise t...

7b9ee45c0791d8368a0bb8af52652d3fcd482c79 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'devel-backup'

0c0b625a70d0c33dd05c6dd362d1aec3a39a3db7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'devel-2-qvm-run-1'

* devel-2-qvm-run-1:
Make pylint happy
tools/qvm-run: fix handling EOF
tests: mark qvm-run...

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

5178029a3c7e7d76a6409d1324178572823f07e5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: fix handling EOF

706cecd60d093eab2927d5403d2cb0163d9d558f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: mark qvm-run tests with "expected failure"

since qvm-run use multiprocessing.Process now, stdin sent to it is
processed in separate process...

40a1769806fbb625cb75969ea1bda4a49cec7bb8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-backup-restore: handle VMs selection, not only exclusion

QubesOS/qubes-issues#1214

e7ee06936a36f00ead21fcbdb93e055c0967b607 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: improve error logging

Include VM and volume name in data-related error mesages.

QubesOS/qubes-issues#1214

ce2215c6032943d3f39641ba9173457f798a8ac8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: use 'cat' instead of read-write loop in python

The most important part is fixing resize handling - call size_func
before data_func, but after t...

f2fa613dce03389dbab45b8dc387a5fc3b27c28d authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: change 'hvm' property to 'virt_mode'

QubesOS/qubes-issues#2912

96d4a2f06658da5629c34a5161ac1585343bb3d0 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: do not show full stacktrace to the user

Opt for a simple one-liner error messages, instead of meaningless stack
trace (it's most of the ...

ced735b4766cb579591c8d0f938a17841d38a54c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: call admin.vm.volume.Import as root

This is needed to write LVM data.

ca399c1a5a64cca5d3da85bdea5e5106ffb553df authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: add qvm-backup-restore

Frontend tool for backup restore code.

Fixes QubesOS/qubes-issues#1214

f0151d73b30b35bae8a124ea14440a3d2344e583 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
firewall: fix handling DstHost.prefixlen=0

Do not silently convert it into 32 or 128 netmask. And also do not
include it actual rule (it's ...

51f77d5834cbd2733f3dd06ccdf8af48a56fd5ca authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: backup: add firewall.xml and appmenus checking

137e1ed877a9c0df52a69b8124dcf317502de634 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: add v4 (Qubes 4.0) backup format tests, move qubes.xml

Move qubes.xml to be tested into separate files. The backup tests script
is long enouch already.

04ad224a9d672ba100aea6c86bd2633ff6482ba2 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: add firewall and appmenus list handling

f1036c27a7bfff7aad42f56fe138085d8f83aec7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests/backup: use smaller images

This will be less realistic (private.img of 2MB?!), but makes tests much
quicker. And since tar ...

525f8dc7f394c78135473dc635b75032500ee822 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Exclude 'qubesadmin.backup' module from python2 install

2ab31e63dc1b440826948869d3660a1a58debb9c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
devices,features: fix bool values handling

API define False value serialized as '' and True as 'True'. Do not
serialize 0 as '' (features) ...

a91372a919e0c291a952651c5abd3deea6bb2287 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests/backup: tests for backup-restore code

Based on "backup compatibility" tests, which manually assemble the
backup. This is because we do...

e6d3425047517cda3729ac229f963829b6d7e06d authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
backup: initial support for backup restore over Admin API

The code is mostly copied from core-admin.

QubesOS/qubes-issues#1214

268a3453a9b08c4a7ac9c97ca07a3da4f0c1fd76 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge remote-tracking branch 'qubesos/pr/11'

* qubesos/pr/11:
added helper function updates_vms_status

66f2e9c88970b039d936d428d2f3f4fe0fc0e159 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Don't try to set 'created-by-' tag when cloning VM

This tag can't be set from outside of qubesd.

68ed06a2005c3f4639313605c1f6111409348c69 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: fix handling copying stdin to the process

Launch stdin copy loop in a separate process (multiprocessing.Process)
and terminate it when tar...

941b553b811deb5cfb7c0420c48b9649ab8a689e authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: fix cleanup function in qrexec case

qrexec-client-vm process may be already dead, don't treat this as an
error.

b35303ff62186610597e53894598d73023bf07db authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: improve test failure message

When multiple Admin API calls are expected, but not all were made, show
which were missing.

a3e3dac6dc9034fccfa61fd581764cefccc66bf2 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests/tools: add MockEventsReader

Make it easy to test things listening for events

6b1c6141f66ab7ca0c2b8e64312a15de0f5e15e6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix VM creation with default template

Fixes QubesOS/qubes-issues#2866

e6149b09cef8a6e2343021596c6d5d619cbf64c6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: qvm-shutdown --wait tests

903610310257c66bfd64e760d6025381fa3f8d6b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: handle shutdown order in qvm-shutdown

VMs can have runtime dependencies - for example it isn't possible to
shutdown netvm used by some...

389252f386bb35d42dd7ae22a585c652620e36ac authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: simplify wait_for_domain_shutdown coroutine

1. Handle timeout externally - using asyncio.wait_for.
2. Add support for waiting for multiple VMs.

2052b322020dd91eb0f187aecd9bddecb58ef41c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: make QubesVM objects hashable

43ef244eaaaa81171e23a977cd5387723efd0ee1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
version 4.0.1

8f7b0009db9082159be2d90469cd369716624155 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: split calling qubes.PostInstall service to a separate function

The code is long enough to warrant separate function (suggested by
pylint).

7c9699cd87f10c3755575a309da6f4010f10725f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: fix policy deny reporting when running in VM

qrexec-client-vm non-zero exit code means policy have denied the call.
Treat this exactly the sa...

a2d9303ea99ea6e7708a9645d14a35ae1be9625d authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: clarify help in qvm-template-postprocess

d8f018eb95fdfbd0df356749725b02aa62122c32 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: do not clone 'uuid' property

Cloned VM have new UUID

ade5083e5e508b3f4b89acc36bb4d247cde9c8d1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: rework clone as two-stage operation

Split clone to two Admin API calls - one to the source volume, then
other to destination.

c6eb4c49a3efc3d6361f3d3feff773415c866a2f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: remove policy handling from qvm-firewall tool

Follow the API removal

QubesOS/qubes-issues#2869

627aebf2cd8a4adfc3611e90941c76cbf3fa01f1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
firewall: drop GetPolicy/SetPolicy calls

Firewall policy is now hardcoded to 'drop'. Keep the property, so anyone
trying to assign it wil...

942e122d27c5c710c1c65217577cb07a135a47c9 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: handle returning different response for the same request

Allow programming different responses for the same request when called
multiple times. This is u...

88de4f77a56c7117e252b2b64db8e08a35d76859 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
added helper function updates_vms_status

9174d8c3782c2088db713900816b1433d83aef41 authored over 7 years ago by Marta Marczykowska-Górecka <[email protected]>
tools: move event loop creation/closing to main function

Do not close event loop in utility function - handle it only in main().
For this reason, change ...

5430e04e1c0a2d4adbce18158d15462cefd21e2c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-template-postprocess: improve error handling

Don't fail the whole process when "just" appmenus import fails.
But if data import fails, remove...

0012eb3ac68519eb7a5f55fd1c0df432cc74caf0 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: fix calling mgmt.Events from VM

asyncio.create_subprocess_exec expects program and arguments directly,
not as a list.

ce7d4865b629eb0ef17a948bfd3a06c671b9a32f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: fix qvm-run test on travis

stdout there is not a tty, which change default value of filter_esc.

c545c95660cff9cb0260f743d9d0835d63d57f7f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'devel-4'

* devel-4:
tools/qvm-start-gui: multiple fixes
vm: raise CalledProcessError instead of Qubes...

3cf5840d7a9bf66f64b0b7ea9dac99a06b383ee8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Merge branch 'devel-3'

* devel-3:
Implement VM clone as create + copy data+metadata
storage: make Volumes sortable
...

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