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

Merge branch '20171107-storage'

* 20171107-storage:
api/admin: add API for changing revisions_to_keep dynamically
storage/fi...

a92dd99fbb1cc8f84446f0a4f76a9381b8463c16 authored about 7 years ago
Merge branch '20171107-tests-backup-api-misc'

* 20171107-tests-backup-api-misc:
test: make race condition on xterm close less likely
tests...

2c6c7669688987c15c8abe8c03b52f920202ebdd authored about 7 years ago
vm/qubesvm: vm.storage.stop() is a coroutine

9519f158ab68d3317cc69d73e68df7d336339d53 authored about 7 years ago
Merge remote-tracking branch 'qubesos/pr/159'

* qubesos/pr/159:
qubes/vm: Improve stopped event handling

cf92a576ada464f8a16ef3e6f68dedf0dfc21e37 authored about 7 years ago
Merge remote-tracking branch 'qubesos/pr/156'

* qubesos/pr/156:
tests: Add unit tests for pvh virt_mode
Don't allow attached PCI devices a...

3217c3ac4ee0f2eabcc22f4b125fa0f0cb8f4092 authored about 7 years ago
create "lvm" pool using rootfs thin pool instead of hardcoding qubes_dom0-pool00

edae7a16b96702adb2e3c531ea563a23deda2ea8 authored over 7 years ago
change default pool code to be fast

currently it takes 100ms+ to determine the default pool every time,
including subprocess spawnin...

92c452a6557727df162a4d796e8239b91a1e92ac authored over 7 years ago
cache PropertyHolder.property_list and use O(1) property name lookups

d183ab1c183581e42223399f3644d27186900dd6 authored over 7 years ago
remove unused netid code

it's unused and has a netid property with name different than key
that would cause issues in the...

f2b8ad7d38ab17447f588cb9f46e11205e9aa87a authored over 7 years ago
cache isinstance(default, collections.Callable)

b297ecbcf156254fde8f21d2df3edd409c055da4 authored over 7 years ago
don't access netvm if it's None in visible_gateway/netmask

Causes an unnecessary exception

9cc86b3be2a424e1bead99c59bbd2fd8ba19d2ec authored over 7 years ago
test: make race condition on xterm close less likely

xterm is very fast on closing when application inside terminates. It is
so fast with closing on ...

45af0913f28c93de7b9f720963e13d3c55feec4a authored over 7 years ago
tests/backupcompatibility: fix handling 'internal' property

07d4f4b3403f4dc6ff15db76a0eacc854c565136 authored over 7 years ago
backup: fix handling target write error (like no disk space)

When writing process returns an error, prefer reporting that one,
instead of other process (whic...

5e6ba4ff5c38664400451f3aa0c29b24f3f268db authored over 7 years ago
tests/backupcompatibility: drop R1 format tests

It is no longer supported.

11fd2cf1150a1565657b92ffe681abc2773881a2 authored over 7 years ago
backup: use offline_mode for backup collection

This object is used solely for manipulating qubes.xml for the backup. Do
not open any connection...

abfed95bf2788dbe89129d1c493bfbefa8dd895e authored over 7 years ago
qubespolicy: fix handling '$adminvm' target with ask action

All policy keywords needs to be expanded before sending it to
confirmation dialog. $dispvm was a...

d3cc2d50e317618126278f0798bd075ccda1f25c authored over 7 years ago
app: drop reference to libvirt object after undefining it

Do not try to access that particular object (wrapper) when it got
undefined. If anyone want to a...

227378f2b36194619d3b99ad30a830a3a4e2650a authored over 7 years ago
vm: always log startup fail

b5e07238a0b94695aec97b982d70748430ee77ed authored over 7 years ago
api: do not log handled errors sent to a client

Those "errors" are already properly handled, and if necessary logged
independently by appropriat...

73c33525a0aa1da6fce535674718d724f13f18e9 authored over 7 years ago
tests/backups: convert to new restore handling - using qubesadmin module

Besides converting itself, change how the test verify restore
correctness: first collect VM meta...

31a55dcd18468ce35907c065190e8578d0c963cd authored over 7 years ago
app: clarify error message on failed domain remove (used somewhere)

Point to system logs for more details. Do not include them directly in
the message for privacy r...

59cebd54395b8fa75332c55d4e1c7203a1bbf09a authored over 7 years ago
Fix qubes-core.service ordering

The service needs to be started after qubesd and qubes-qmemman to be
able to start domains. The ...

08584ce3705865f21bbe0f00c2cf574681c4fb5a authored over 7 years ago
api/admin: add API for changing revisions_to_keep dynamically

This one pool/volume property makes sense to change dynamically. There
may be more such properti...

c3afdde3ef94e0a0b527d2e88da17d9d3aa3a7be authored over 7 years ago
storage/file: move revisions_to_keep restrictions to property setter

Do not check for accepted value only in constructor, do that in property
setter. This will allow...

81f455e15ddba07d667a5b76e0269b2a019d9393 authored over 7 years ago
api/admin: hide dd statistics in admin.vm.volume.Import call

But still show errors, if occurs.

0327b6cd9814e80662ba5a44804b097bb0f0ff05 authored over 7 years ago
storage/lvm: fix importing different-sized volume from another pool

Fixes QubesOS/qubes-issues#3257

439d9b87ff02f9a2f3aa77ad7e96d65cb24b1406 authored over 7 years ago
storage/file: fix preserving spareness on volume clone

Force creating sparse file, even if source volume is not such file (for
example block device).

...

f3455b5d99cc79c6baa9c6032c8b729b76b1a9a4 authored over 7 years ago
api/admin: add pool size and usage to admin.pool.Info response

QubesOS/qubes-issues#3240

f18f4c9bff57b74ec444086ae599d8555d2860cb authored over 7 years ago
storage: add size and usage properties to pool object

Add Pool.size and Pool.usage to the API. Implement them for LVM and File
pools. Add appropriate ...

e76372b9349e3f835dc1c11430f85d3baa010d61 authored over 7 years ago
linux-stubdom: Set cmdline in HVM config

c695f3268c7ac34c65e8023655afec6f1c979f4c authored over 7 years ago
qubes/vm: Improve stopped event handling

The previous version did not ensure that the stopped/shutdown event was
handled before a new VM ...

b907303a39a69880d7db4e606b73fcb5a41f7bc1 authored over 7 years ago
version 4.0.11

682d9503ee5f2cacca55eb09bb742d10472cdc34 authored over 7 years ago
Merge branch 'tests-20171020'

* tests-20171020:
tests: fix asyncio usage some more places
tests: fix reporting in network ...

e2eaa57f65c3cdada4b2b93913b75caad6af10de authored over 7 years ago
tests: fix asyncio usage some more places

gui_memory_pinning tests finally works. Also, fix DispVM and private
volume resize tests.

42f8619559b0622f35b255065d884f33203c0167 authored over 7 years ago
tests: fix reporting in network tests

Do not trash stdout with VM's command output. Log it as part of
(potential) failure message.

511502ae7edad0892e6ae2f1afe8b36ca062e5ae authored over 7 years ago
tests: domain-shutdown event race condition

Second tests, for actual events, not storage handling done by its
handler.

cc @HW42

QubesOS/qu...

c3430fe5f67d5c9928a57dd35e622e4173072ef9 authored over 7 years ago
tests: fix logic error in wait_for_window()

Revert change introduced in cbc5dbb9b154ceadf8bd1ed86c3c1f15c668a687

71fc5217f7e9a12842c7ac54a0d4276103962242 authored over 7 years ago
tests: improve events tests

Check property-related events, including their arguments.

96f2e503dbb98d31bec70e3378584a89260d9664 authored over 7 years ago
tests: cleanup QubesDB connection on domain remove

If domain got removed during the tests (for example DispVM), vm.close()
wouldn't be called in cl...

43c09467b17fd1d9ee5fe903928ca3fe9e35123d authored over 7 years ago
app: fix setting default_*netvm

1. Fire both property-pre-del:netvm and property-del:netvm - those
events should be fired in pai...

0b1a0b028bbaa044f6020cd40ec2976afba160f9 authored over 7 years ago
vm/adminvm: add is_halted() method

It is used in some places, for example attaching devices.

Fixes QubesOS/qubes-issues#3054

4500c4dcab67bbd55909ba5c9ed0148496e82063 authored over 7 years ago
devices: clarify error on attaching non-persistent device to stopped VM

Fixes QubesOS/qubes-issues#3195

433430884d124cb428a8b28506e39b3e2ce5779c authored over 7 years ago
vm/net: fix handling netvm reset to default

If there was some netvm set, unset it first (same as with ordinary set).
Otherwise it will try t...

9a9452ae3a7a8128364095695dccaa2f41378b1a authored over 7 years ago
base: fix property-(pre-)del events arguments

oldvalue should contain the old value, even if it was default one. Same
as in property-(pre-)set...

98818b0ad933de46ee4b6fabb21866c211898827 authored over 7 years ago
comments fixes

85c3368a0dc7dba9fb010504de0b13591d3b42a8 authored over 7 years ago
tests: fix typo

8f1bfa65f86611dccac26895884e61b243e96eea authored over 7 years ago
admin-api: add admin.*.property.GetDefault

Fixes QubesOS/qubes-issues#3197

4809c16e08cf155c45a62a29304aea19b3ffda30 authored over 7 years ago
base: add method for getting default property value

Allow to get default value even it isn't set currently. This will allow
(G)UI to present better ...

038ca6d5d72d6b42919686459f9d0d0986ad63e2 authored over 7 years ago
tests: root fs resize tests - for all templates

Check resize on each template separately, because it involves VM's
scripts (either qubes.ResizeD...

c2c322562255289ae7301f7f562dc89d8a639250 authored over 7 years ago
tests: improve root volume resize tests

- clone all features, not just qrexec (especially include 'gui')
- do not leak VM reference on f...

77ce956c2dac0f23035d75a9a97feae3e5585a47 authored over 7 years ago
storage: improve error reporting

- make it clear that failed qubes.ResizeDisk service call means the need
to resize filesystem ma...

49e35e66aa2d57f29d4c7b742c723c08375ed221 authored over 7 years ago
firewall: skip expired rules

Expired rules are skipped while loading the firewall. Do that also when
such rules expired after...

27b96cce4c2f58d0539b1bca9e22b765b8149391 authored over 7 years ago
version 4.0.10

ae473a8c26e274a94f4a886c77b199b10275c7b6 authored over 7 years ago
Merge branch 'bug3164'

* bug3164:
tests: add regression test for #3164
storage/lvm: make sure volume cache is refre...

836d9f902aaedc8e4fb95de372dd1ad430e1fc20 authored over 7 years ago
Update readme

Master branch is no longer subject to rebases.
Also, update links.

96c077e5207cfa35c49860638f9520e235fd4d8b authored over 7 years ago
tests: add regression test for #3164

This is a race condition, so to make it more likely to fail (if it's
broken), make some things m...

c8519a700fcc171ee2d902781ccc855f70cd2dcd authored over 7 years ago
storage/lvm: make sure volume cache is refreshed after changes

Even if start/stop fails, still refresh the cache. The failed operation
might still modified som...

08583af1ff7c0fa0b12009921aed059e78996c99 authored over 7 years ago
storage/lvm: fix Volume.verify()

This function is supposed to raise an exception if something is wrong,
not just return False. Do...

145ccfb34e46627623818989ea16fc05ccbe8f6f authored over 7 years ago
storage/lvm: remove old volume only after successfully cloning new one

In some cases, it may happen that new volume (`self._vid_snap`) does not
exists. This is normall...

021047f950b0f8c2f147d75bd4dcc056f6757441 authored over 7 years ago
Change license to LGPL v2.1+

See this thread for reasoning and acceptance from contributors:
https://groups.google.com/d/topi...

2164a8d7b8b3d788d42c65c3b092498d57304c41 authored over 7 years ago
rpm: remove commented out rpm macro

Just commenting out macro isn't enough - % sequences are still
processed. Remove it completely, ...

53903a36854f084a0f435b0f7254e90d8b21b78d authored over 7 years ago
tests: Add unit tests for pvh virt_mode

4a84d5b2225f7e92bc179629a3ca7f9f7e2447e3 authored over 7 years ago
Don't allow attached PCI devices and virt_mode = 'pvh'

67c06eb428a5c0b2fde61722611e4c91aa52607c authored over 7 years ago
version 4.0.9

ec4c7d726313dd00f3405291f96387a4e6ac2497 authored over 7 years ago
Merge remote-tracking branch 'qubesos/pr/154'

* qubesos/pr/154:
Add basic PVHv2 support

08640f47791498336b04f40c8c59bf77af4bd8a6 authored over 7 years ago
storage/lvm: don't crash when resizing to the same size

This applies to qvm-template-postprocess, which at the beginning try to
resize root volume to ap...

b8d45c214d96516f807fa3d4f9f4bb133b1ef4d6 authored over 7 years ago
version 4.0.8

ede266ca3d801d027a24d4136ea7f5edf1212fea authored over 7 years ago
Fix calling qubes.SuspendPre/qubes.SuspendPost services

Those should be called as root, not default user.

Thanks @jpouellet for debugging this.
Fixes Q...

bce7b64d4acc97814dc697f8798e5f425b9519b7 authored over 7 years ago
ext/block: accept any boolean value for 'read-only' option

Be consistent with other parts of the Admin API. Especially ...Attach
accept "standard" boolean ...

451cc339c72a0c7a3d028bea289b6a560357e4f8 authored over 7 years ago
tests: dispvm tests fixes

af60fbb25df187b8fe12609391d911a3dd324905 authored over 7 years ago
Allow setting global default_dispvm to None

There is no technical need for having this set to anything. If set to
None, DispVM startup reque...

df32acfad9c087254dc919f81aa293818728d3ec authored over 7 years ago
tests: extend qrexec_policy context manager - custom action

Allow to use custom action - for example with 'target=' argument.

e0be7861f9b6fa50920ac7e7c043fb367e67bac4 authored over 7 years ago
tests: more tests fixes, drop expectedFailure where not needed anymore

69905508846e2fe84b9855241c6926a1cad16b46 authored over 7 years ago
tests: various fixes

- Use proper features/services names (updates proxy test).
- Fix logic error in wait_for_window....

cbc5dbb9b154ceadf8bd1ed86c3c1f15c668a687 authored over 7 years ago
tests: cleanup DispVMs created during tests

Since those do not have specific prefix (test-) compare list of them
with original qubes.xml

64c5b2c00f1ef4487c82dfc2bd6311596407a6cd authored over 7 years ago
storage/lvm: fix size units on resize

lvextend uses MiB, not MB.

6091bbbe88d9c6c72741e697ecc8a48cf58f0d9f authored over 7 years ago
Merge branch 'fixes-20170929'

* fixes-20170929:
vm: do not start QubesDB watch instance multiple times
vm: report storage....

3a5e8482c048db89fbd9b497c06fad0a9bb8d705 authored over 7 years ago
Add basic PVHv2 support

c583cf5190c74b9859b3be52bc8b0460012b57ce authored over 7 years ago
vm: do not start QubesDB watch instance multiple times

vm.create_qdb_entries can be called multiple times - for example when
changing VM IP. Move start...

12b7e22d2754fcc3c5c1c8f1ce11e4c55ca60cca authored over 7 years ago
tests: fix various object leaks cont

Do not use self.fail when handling exception - this will keep exception
object referenced, which...

9172a7708dfc102192d188b265c9b13805f64570 authored over 7 years ago
tests: various fixes for networking tests

- Update feature name for enabling network-manager.
- Fix error reporting

f9da1f2dd7300cd5e11fc8935cbed8b45e243fae authored over 7 years ago
tests/network: match vm names with variable names

Having testvm1 variable for "vm2" is really confusing.

fdf780aad034302d26a9f5fb12d10d79fe558124 authored over 7 years ago
tests: hide unneeded messages

8b34b9a5e465a7e8a1b82518889a02f09d2b40f5 authored over 7 years ago
tests: fix various object and FD leaks

- Prefer instance attributes over local variables - the former ones do
not leak into traceback o...

3c54244fdc89a6537ec2c391071996762ce09757 authored over 7 years ago
tests: various fixes

- Fix str/bytes
- Call skipTest as early as possible - before doing any setup
- Fix networking t...

d96d4a94e1429798e97773a53912047eebaba76d authored over 7 years ago
tests: fix asyncio usage cont...

- Add missing loop.run_until_complete() calls.
- Convert subprocess.Popen to asyncio.create_subp...

ed3001da995ebaa9f64a66c5f465c7d58ac79cf8 authored over 7 years ago
tests: improve "revert template changes" test

There is no more significant difference between PV and HVM. VMs are HVM
by default anyway. More ...

f0da5b21df34a28f1a39ef374781d30ac22a59e1 authored over 7 years ago
tests/storage: don't fail the test when directory already exists

/var/tmp/test-pool should normally be removed by previous test cleanup,
but do not fail next tes...

4b51c9da07df1450a3cbd9aa3704b919e9173554 authored over 7 years ago
tests: fix various object leaks at tests framework level

The most important change is doing vm.close() when removing domain -
this means it wouldn't be c...

344bb16ae279eab465545f88e652557fdca7fa26 authored over 7 years ago
tests/storage: do not depend on system default storage pool

Use just created storage pool for tests, instead of system default
(which depends on system conf...

a929916ce83361eef676d998f20c8bf8bb948918 authored over 7 years ago
tests: fix cleanup function

Don't crash when directory to cleanup do not exists.

d8ff85eee66a9a1792c83ac46c7c86fe553bb8e4 authored over 7 years ago
tests: add more complex test for netvm cyclic connection

Something more complex than VM connecting to itself.

3075767bb87b342e7e981e3f57f89e1f43710d36 authored over 7 years ago
vm: report storage.stop() errors to log

Catch exception there and log it. Otherwise asyncio complains about not
retrieved exception. The...

b12fa13f06e425905c9e3b4534357877f868ea2a authored over 7 years ago
vm: move comment

Place comment describing self.app near self.app definition.

97e3dced92b3a3776ab99e47714601a14e1b9f79 authored over 7 years ago
storage: fix method name in LinuxModules volume

It's `import_volume`, not `clone`.

34125d915bdeedcdcfdfa45073b82b7188820091 authored over 7 years ago
Prevent removing domain that is referenced from anywhere

Check VM properties and global properties (all of them).

Fixes QubesOS/qubes-issues#3128

9e8c40867b3517eecd4493aa5a3ee51dd114b13f authored over 7 years ago
vm: add vm.klass property

Allow to get domain class as a property, not using admin.vm.List call.
This makes it unnecessary...

a90dea34de4053355cfd640336bb54a2052dec6b authored over 7 years ago
vm/dispvm: cleanup DispVM also on failed startup

If dispvm.auto_cleanup is set, cleanup it also after failed startup
(like not enough memory).

F...

e38e2275039d65876d35e717746fc89b2b17aa6a authored over 7 years ago
Move QubesVM.{name,qid,uuid,label} to BaseVM

Reduce strange code in BaseVM (accessing non-existing self.name) and
code duplication.

9f88fa7f0cab4f7ff7e5acb4856dbcbbfe0856e9 authored over 7 years ago