Ecosyste.ms: OpenCollective

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

github.com/QubesOS/qubes-core-admin

Qubes component: core-admin
https://github.com/QubesOS/qubes-core-admin

tests: drop VM cleanup from tearDownClass, fix asyncio usage in tearDown

When tearDownClass is executed, event loop is already closed. Since no
test really need it right...

4be325a38373705818d14adab41148e81207edce authored over 7 years ago
tests: more tests fixes

1af7034d57b4a8b6109b386b9f0aea40bd4802d2 authored over 7 years ago
firewall: raise ValueError on invalid hostname in dsthost=

...instead of AssertionError

214c64641777bd807437e0fb891a7b4a4bce7eed authored over 7 years ago
qmemman: don't load qubes.xml

Only qubesd should load qubes.xml directly. Put a TODO comments for now
in place of slow VM repo...

625c94d1f6a869677ed071434a09b30f5feedba5 authored over 7 years ago
tests: fix AdminVM test

Since it is no longer child of QubesVM, constructor do not take 'qid'
and 'name' arguments.
Also...

5d9bc00885c99e35424133732ea7579ba0b94782 authored over 7 years ago
tests: create temporary files in /tmp

a9934316c13d1f2946cae7dbdfe0e37f3730462d authored over 7 years ago
tests: remove renaming test - it isn't supported anymore

QubesOS/qubes-issues#2868

8bae2d39c2de22d907f88da633d1b45150a636b2 authored over 7 years ago
tests: various fixes for storage tests

- improve TestPool mock - init_volume now return appropriate mock type,
instead of TestPool
...

8b2db94b412885c3c234c71cde5b1c8f75a1a84c authored over 7 years ago
tests: fix asyncio usage in some tests

75394a1348fa82586d2cb1d7499674274b826685 authored over 7 years ago
tests: fix removing LVM volumes

VM volumes have 'vm-' name prefix now.
This is continuation of fd5386c storage/lvm: prefix VM LV...

a8e2f3111d5991e9e22dddb744c655c2c16cc3ab authored over 7 years ago
tests: minor fixes to api/admin tests

Drop debug print, fix mocking Storage.remove (it is a coroutine).

ba2b034843ad9bfc6a862137d43efa80b8b43775 authored over 7 years ago
storage: move volume_config['source'] filling to one place

Don't set 'source' volume in various places (each VM class constructor
etc), do it as part of vo...

c5667791e8f4de847793203c5440f369ee2e4f96 authored over 7 years ago
storage/file: create -cow.img only when needed

Do not create it at volume creation time. It it needed only when VM is
running, so create it jus...

4208897146974c6c10b62e5bf520744d1a807683 authored over 7 years ago
app: do not create 'default' storage pool

Since we have app.default_pool* properties, create appropriately named
pool and let those proper...

3a21e1f1b357eee009efa9f798781e2947795aac authored over 7 years ago
app: add missing setters for default_pool* global properties

Function itself was already written, but not set in the properties.

QubesOS/qubes-issues#2256

73a78ca0dba52ee847da2fdffe99bde43a22836f authored over 7 years ago
tests: add qdb_watch test

Use dom0 instance of QubesDB, to be independent of working (or not) VMs
at this stage.

QubesOS/...

1933a720d09ac23b6ae34312659445905aaf1409 authored over 7 years ago
ext/block: make use of QubesDB watch

Actually use just introduced API.

Also document new `device-list-change:class` event.

QubesOS/...

67c382c8b01e654d8e133c795da258b8222a65a5 authored over 7 years ago
vm: optimize imports

Remove unused, sort others.

d5b94d1cbd1a14c7210169a8ded3e189d78e7f65 authored over 7 years ago
vm: add API for watching changes in QubesDB

Provide an API for use QubesDB.watch() inside of qubesd.

Fixes QubesOS/qubes-issues#2940

b7f0cf7d82eb925b6b5adbabcc6b1ed18c1f441b authored over 7 years ago
Add explanation why admin.vm.volume.Import is a custom script

Cc @rootkovska

b25cf4b085211f50d31098ed0feaedfba9143f78 authored over 7 years ago
api/admin: don't send internal events in admin.Events

Some events are internal for a sole purpose of getting some data from
extension. Since listeners...

354aa14c5346ae04d6d3af4c217714d1b7f5b170 authored over 7 years ago
Follow change of qubesdb path return type

It's str/unicode, not bytes now.

QubesOS/qubes-issues#2937

0fb7c1fbed5a3ee3778bca50aabea2448c2d832b authored over 7 years ago
Rename vm.qdb to vm.untrusted_qdb

QubesDB can be freely modified by a VM, so one should take care when
reading any data retrieved ...

1759bca00f62a6325c3a68e3c700c287012e5df5 authored over 7 years ago
rpm: include directory for backup profiles

QubesOS/qubes-issues#2931

cdbe1d14b3bf4cbaffc772ad1db4f1e61d65d36e authored over 7 years ago
tarwriter: use new PAX format, instead of old GNU for sparse files

The old format have many issues and is discouraged by tar developers. In
this case the most impo...

397a8263bd22adcad9709ecd8d7c7d507edeedfc authored over 7 years ago
backup: allow backup running VMs

Since we have LVM by default, it is possible to backup VMs while they
are running. For now it wi...

abdad8c2b2063f953a32e3eac7b9ffaf5aae64a4 authored over 7 years ago
backup: check inner archiver exit code

If inner tar returns with non-zero code, mostly like the backup is
incomplete, so it is very imp...

1ec00605773c243de51d2927bf362f8efa0d6913 authored over 7 years ago
api/admin: gracefuly report cancelled backup operation

QubesOS/qubes-issues#2931

82918ee704f41862741066a060a093847b4b1a8e authored over 7 years ago
storage: typo fix in comment

088c838ac3b520578c7f0ed16b811588449d1d2e authored over 7 years ago
tests: admin.backup.*

Those tests are only about Admin API integration, not about actual backup
backend code

QubesOS/...

dbea03ad1fd079bae04b6654fe9792dc1bb15f63 authored over 7 years ago
tools/qubesd: increase loglevel with --debug option

74375146e8557afb4c50dca736f7295713543406 authored over 7 years ago
api/admin: plug backup into Admin API

Fixes QubesOS/qubes-issues#2931

6dbce8259f0cabc44818415dcaf800d74c8e7c90 authored over 7 years ago
backup: use proper API for getting volumes list and size

Do not assume static list of volume (although it is true for now), and
also use proper API for g...

579d90e174bdc5847f4a410cd134bd3b23d94ef1 authored over 7 years ago
backup: fix get_backup_summary

QubesOS/qubes-issues#2931

81246cac6443e9e2d5146897212c463b509b51a9 authored over 7 years ago
backup: drop BackupHeader loading code

It is useless here since backup restore is moved to
qubes-core-admin-client.

9dd0cfe6c56b8dfb1705c67ea9cb418bcfc2e376 authored over 7 years ago
backup: convert from multiprocessing to asyncio

QubesOS/qubes-issues#2931

d4e9120903d2c8929d2dec3ca7724dc59a75860f authored over 7 years ago
version 4.0.2

c17e63588ee16983b1d1030f7022fc80d32ff66b authored over 7 years ago
systemd: order VMs autostart after qubesd

Fixes QubesOS/qubes-issues#2919

c035f8fc35f0ac0fe4b02dc988bd046f4056e66b authored over 7 years ago
Rename 'net/*' features to 'net.*'

Same reasoning as with 'service/*' - '/' is not allowed in qrexec (so
Admin API) call argument.
...

801d6acf5c621d5a34e34fe8e223a57a03d8b234 authored over 7 years ago
Merge remote-tracking branch 'qubesos/pr/131'

* qubesos/pr/131:
When running tests clean up and remove qubesd.socket
Do not display gi Gtk...

9e4f2d09079a6df54d72bf74988a87e32525a23c authored over 7 years ago
Remove qvm-backup tool

The tool itself should live in qubes-core-admin-client and communicate
with actual backup code o...

7f85d811975c7289262f8ef348e9dd1af02088e6 authored over 7 years ago
storage: fix resize and revert handling

- fix coroutine calling from Admin API
- fix off-by-one error in resize
- adjust tests

c6e09b5a991c9547e45d2d04a556b6b788d85345 authored over 7 years ago
backup: make pylint happy, remove dead settings

After removing backup-restore code the remaining part of backup.py is
not that bad - lets fix it...

2ace5901dfd129d80e3eb2c034892ddaeb0bf937 authored over 7 years ago
Remove qvm-backup-restore and its backend code

This functionality is moved to qubes-core-admin-client, which does it
over Admin API

QubesOS/qu...

61519014cbe04d44b18d30c15412a674eb8cf94a authored over 7 years ago
vm/qubesvm: do not assign all host vCPUs to a qube

Fixes QubesOS/qubes-issues#2900

4037bf9abc8b55a57687227b2083aac5d576a6a7 authored over 7 years ago
vm/qubesvm: minor fix

11fac7be569042a3bfdc22a7b8e9141312190396 authored over 7 years ago
Fix libvirt xml template

Issue found by the test created in previous commit.

8dfe2b873d2a37fdc4ef56e4ce6792e8e5c39cfe authored over 7 years ago
tests: libvirt xml rendering unit test

ef756eb05d193912c51eba1bea5d4ed5e94c19f8 authored over 7 years ago
Add code and test for migrating vm.hvm into vm.virt_mode

This will allow to load old qubes.xml - otherwise previous change render
the system unusable (un...

9ba84ecdad0414a2c78533b4330a58f01210c5ca authored over 7 years ago
Change vm.hvm into vm.virt_mode

Fixes QubesOS/qubes-issues#2912

21940bef90fb21989b143cfb56a45b3d2467ed31 authored over 7 years ago
ext/admin: allow setting 'created-by-*' tags from dom0

Add an exception for this limit - if for nothing else, to allow full
backup restore (non-paranoi...

8cb831da297e4887ddb34d49df1e25ff81757d03 authored over 7 years ago
api/admin: rename mgmt-permission:* event to admin-permission:*

Be more consistent with Admin API name and method names.

cbc7241a93828d0aceee073d20eece35aa3018ba authored over 7 years ago
When running tests clean up and remove qubesd.socket

Changed the inheritance hierarchy:

1. Renamed `SystemTestsMixin` to `SystemTestCase`
2. `System...

3be7b23f4626cdced5b31980e0f63e5424ac06b0 authored over 7 years ago
Do not display gi Gtk warning when running tests

- Fix Gtk import

a936b07d7bb086d0c056d0d8beb5c63dc9968984 authored over 7 years ago
Merge branch 'drop-netvm-startup'

* drop-netvm-startup:
Remove qubes-netvm.service

3c99aab75a97a6b66a7854ad3752e909e2fff874 authored over 7 years ago
Merge branch 'dispvm-fix'

* dispvm-fix:
storage: add comment about source volume lookup
vm/dispvm: convert DispVM rela...

ab7ed776f99831abe32d84746318ebe682035aad authored over 7 years ago
Merge branch 'tests-fixes-1'

* tests-fixes-1:
api: extract function to make pylint happy
tests/vm: simplify AppVM storage...

a42e500108dd0d11cc54096cc93274e962a6c71f authored over 7 years ago
Merge remote-tracking branch 'qubesos/pr/130'

* qubesos/pr/130:
qubes: have "service" features' keys separated by period

63bac15b259c39cd8d2e92f5cbc73d9f7be673c6 authored over 7 years ago
storage: add comment about source volume lookup

1e45d297b3086c9b1f686c6ee153336428f77704 authored over 7 years ago
storage: do not use deepcopy on volume configs

There may be Pool or Volume object references, which is intentional to
keep them as is - not cop...

f2f89c7b0c8d31d33bab54763fb55f6169825423 authored over 7 years ago
tests: fix some FD leaks

There are still much more of them...

7aa8d74ad48ae17fcbc3cd073a273ecbc91ed333 authored over 7 years ago
tests: fix block devices tests when running on real system

d7b968d867491c3f105758fa89c35354066a3aa2 authored over 7 years ago
api: cleanup already started servers when some later failed

e6d5337fa7cfd71bbd9982dfc8fd8ea5a1713ca5 authored over 7 years ago
api: extract function to make pylint happy

66b88cc943c7d591b96e498928ff25a1e297135b authored over 7 years ago
tests/vm: simplify AppVM storage test

Use minimal TestPool(), instead of Mock().
This allow effectively compare Volume instances (init...

2df81adab12922410fc9cd203299010e8828deb7 authored over 7 years ago
make pylint happy

58f4369a7eca84e96129ce4c9fc33b89696ecc4c authored over 7 years ago
clock sync: drop untrusted_ prefix after validation, fix error msg

dce0b28cf4821bc17820e97fd4474f840af825ba authored over 7 years ago
minor amends to clock synchronization

renamed date_out variable to untrusted_date_out

ab88cd964490f93c68ddb2e5a77a073e411d9bf5 authored over 7 years ago
vm/dispvm: convert DispVM related function to coroutines

Some functions used there (create_on_disk, remove_from_disk, kill) are
coroutines, so callers ne...

c32f0db5821f44b204181681faf555dd112a9ee1 authored over 7 years ago
vm/dispvm: fix DispVM storage definition

Specify empty 'source' field, so it gets filled with appropriate
template's images. Then also fi...

148d1cda783b3c63dfd3547f3b2f15cd25d64025 authored over 7 years ago
Remove qubes-netvm.service

Since qubesd properly handle chained startup of sys-net->sys-firewall
etc, we don't need a separ...

a9ece6f706900621ea817f8d1bd5f4851adfed68 authored over 7 years ago
clock synchronization rewrite

clock synchronization mechanism rewritten to use systemd-timesync instead of NtpDate; at the mom...

6da06d424ea990ab2f606356ce2acc3f225082fd authored over 7 years ago
qubes: have "service" features' keys separated by period

b04f612374c38d4bb6dd2cc203abc7f58f08509b authored over 7 years ago
version 4.0.1

d9db4f747c4ed62414f7801bf228edc7af41b8c5 authored over 7 years ago
Merge branch 'core3-storage3'

dddd94b339b6d2d7b07d13a6cb56f1ec1174f6d0 authored over 7 years ago
Merge remote-tracking branch 'origin/core3-quick-fixes-20170703'

6db39345fb592bffc6cc3499d80cc7d43a43bbdf authored over 7 years ago
Merge remote-tracking branch 'origin/policy-adminvm'

51022cada5f1b2eefa2d6b6ae742a45f519bd2b4 authored over 7 years ago
vm: drop old is_outdated/commit_changes

This code is unused now. Theoretically this is_outdated implementation
should be moved to FileVo...

cfbccc0a749ecb223fb1b76a98c008738a1f37a3 authored over 7 years ago
storage/lvm: major cleanup, update

- remove obsolete volume types, use snap_on_start/save_on_stop directly
- handle multiple revisi...

12adf8bede57dc66848d6b7b0453d17912739993 authored over 7 years ago
storage: drop 'internal' and 'removable' volume properties

Since dynamic volumes (qvm-block) are moved to devices API, those two
are not needed anymore.

Q...

0e554296e37f7bf0519975f6bd2ab9b4906ff748 authored over 7 years ago
storage/kernels: support only save_on_stop=False volumes

LinuxKernel pool support only read-only volumes, so save_on_stop=True
doesn't make sense. Make i...

c7ca4a445ecab20ed1e5d6999d1414ab71f28985 authored over 7 years ago
config: eliminate duplicated qubes_base_dir

Remove it from system_path dict, have it in one place.

075d9911141d4bd52f4c24df213fb147ad111bb7 authored over 7 years ago
storage/file: major FilePool/FileVolume cleanup and documentation

This driver isn't used in default Qubes 4.0 installation, but if we do
have it, let it follow de...

317d140f46d8580ca3f6259d5d9d4ed67a4aa08f authored over 7 years ago
storage: make default pool configurable

Do not always use pool named 'default'. Instead, have global
`default_pool` property to specify ...

1a1dd3dba258f6ceffd69dad123cb018ecde6a5b authored over 7 years ago
doc: typo fix

ca63c7103039c948b9fecac7eac50f743a215c9b authored over 7 years ago
tests: workaround asyncio.iscouroutinefunction(Mock)=True

It's already fixed in Python 3.5.3, but on Travis we have Python 3.5.2.
https://bugs.python.org/...

8318038a7380d27782db366d724fb9d9e2e685d7 authored over 7 years ago
vm/qubesvm: have VM lifecycle related events async

Those functions are coroutines anyway, so allow event handlers to be
too.
Some of this (`domain-...

b5ad2456146f00781dbc4a07d5d4cc8fda33f01b authored over 7 years ago
devices: make attach/detach related events async

This will allow starting processes and calling RPC services in those
events. This if required fo...

d00e4538bf5d5e9be4d611ea99879c1ef00f8671 authored over 7 years ago
typos in docstrings

e5a9c46e3d5716f40fbf587d55a9314194578462 authored over 7 years ago
events: add support for async event handlers

See documentation for details.

ea1a04cb19f1ce9537c484c254e096ec4b063feb authored over 7 years ago
events: merge fire_event and fire_event_pre functions

Those functions really do very similar things - lets merge them and add
simple parameter.

6238254f49c982b7d6776aa07d2029a122567a9e authored over 7 years ago
events: typos in docstring

aed6de49376c2d501d2707af4e9dad9fa9883bc2 authored over 7 years ago
vm/adminvm: (re-)add vm.qdb property

Dom0 also expose some information in QubesDB - like list of block
devices.

3c4b60fa45b7554117b63365ef90456352940908 authored over 7 years ago
qubespolicy: make commas exchangeable for spaces

Commas in policy action are optional, if used with spaces.

55c9370454e031700f9b2496fad3fac2157f2a3c authored over 7 years ago
tests: add missing import

9d17c52a8d9785f3ca982150521f913a5df851c2 authored over 7 years ago
qubespolicy: add a commend about 'deny' being default action

36d56010af800dc3509ab0f5152111b904a56891 authored over 7 years ago
doc: fix formating of policy-related documentation

Fix Sphinx warnings and errors in both doc/ and docstrings.

e7f717ec3dfe83293ed134f3d9afc8b6b03217d2 authored over 7 years ago
qubespolicy: fix handling allow rule to '$dispvm'

When rule does not specify forced target (`target=...`), generic
`$dispvm` wasn't resolved to sp...

e8e30c8bdfc52ef007cca74331ea5dd984eea4d1 authored over 7 years ago
Fix docstrings formatting

Fix warnings/errors reported by Sphinx

f393ce62dc6b959e76263de769ec40337969a407 authored over 7 years ago
qubespolicy: add a tool to analyze policy in form of graph

Output possible connections between VMs in form of dot file.

Fixes QubesOS/qubes-issues#2873

a96a85bdc92652b507007ca2d06dcea61ea131e0 authored over 7 years ago