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

vm: raise CalledProcessError instead of QubesVMError on failed service call

follow core-admin change.

5ac7632dd09d986b42ef2d50eb1ccc25cfbc3c88 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start-gui: multiple fixes

Don't start GUI daemon for given VM twice when qvm-start-gui was started
during VM startup (whil...

64377207a86f05f0eb9644e0307f0401ffe413a5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: improve handling qubesd restart

qubesd may be restarted during different stages of connection - either
while attempting to conne...

ba2057a2c6da7f65960a44d6f6d88a3f1457c6a1 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Implement VM clone as create + copy data+metadata

This way we don't need separate admin.vm.Clone call, which is tricky to
handler properly with po...

bcd026d141efa8cdc1a4dc4fb1c0395273faa3f0 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: make Volumes sortable

But do not fetch any additional info just for this purpose.

a5a459840a91689c5b388105efb66be94c106f95 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: add volume clone method

Clone volume without retrieving all the data.

QubesOS/qubes-issues#2622

998a42703f379da5df9fb6588330a4c2e61e6ca3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: fix skel-manpage tool

90141a1befc80e02bc8df301ac2145976dffa1fb authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: minor fixes to man pages

12fd4eb035c6d8730d3cf4a5ba70fff765381eea authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
base: add PropertyHolder.clone_properties

Be compatible with core-admin

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

QubesOS/qubes-issues#2388

8e5f90c27316178c93f03a389cce22d3d369d6b5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tags support

QubesOS/qubes-issues#2622

31988a9bd8386c277871d134f6c693d0b8786868 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: basic tests for vm.features

d1b67daa63ef3ab4c19d765144c528d4065acc76 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm_template_postprocess: set vm.features['qrexec']

Enable 'qrexec' VM feature to wait for qrexec initialization - it is
required to call qubes.Post...

9dd659d60f3c86a8791a4304f2d4bf81447ff0c7 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
features: implement get() method

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

* qubesos/pr/7:
qvm-ls: hide flags (aka status), get more descriptive
qvm-ls: fix -O with up...

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

* devel-1:
toos: fix handling default command (qvm-device, qvm-volume, ...)
events: fix pars...

a42dffcb89b8b2e2b6b08c1a9d43e755e42ccb0b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
qvm-ls: hide flags (aka status), get more descriptive

Enterprise™ continues.

59eda6392324d5aaa1010cc82b4a801c93bad45c authored over 7 years ago by Wojtek Porczyk <[email protected]>
vm: fix get_power_state() for dom0

934f8fcdd9578cad4e23db9f290fbf3e48f344d0 authored over 7 years ago by Wojtek Porczyk <[email protected]>
qvm-ls: fix -O with uppercase names

23fe5e431c9e045f673b6c1ada2f22943bfea8d9 authored over 7 years ago by Wojtek Porczyk <[email protected]>
qubesadmin/spinner: fix licence

033125932ca8b7b60f364e4c0cf59928a3410e7a authored over 7 years ago by Wojtek Porczyk <[email protected]>
qvm-ls: run a spinner while waiting

Since Admin API, qvm-ls takes a long time to complete. Therefore,
Corporate Headquarters command...

57cabc395bc604131427ab415f39f5b7756ba35f authored over 7 years ago by Wojtek Porczyk <[email protected]>
toos: fix handling default command (qvm-device, qvm-volume, ...)

When command isn't specified, command variable is set to None. Lets
handle this situation gracef...

a184e35a036c72769cb906750ff678e3bf2dd4c3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: fix parsing events with empty parameters

Empty parameter value is encoded as b'parameter\0\0', so we can't simply
read the data until b'\...

065eb036dfb43b48bf3711daf5ec3fd6985cb1c9 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: ignore qvm-template-postprocess calls in chroot

It require qubesd running. Firstboot will take care of it.

96b27fdf14b959f925cfcbba4785b0c8c1303b29 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: close payload_stream in qubesd_call

This is to prevent leaking file descriptors.

QubesOS/qubes-issues#2622

0a556fad8c10a1b77aa516540e17c05fba31e20f authored over 7 years ago by Wojtek Porczyk <[email protected]>
tools: add qvm-template-postprocess

Tool to be called from template's rpm post-installation script.

2675d63579a87acc29f05006b168038bc321d003 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: fix file descriptor leak

9cdf9a0e60fa343d75f09f9b81b670b8bc86c9ac authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix qubesadmin/tests/tools/qvm_firewall.py license header

fe51e8862a68b218ae98bb82c28f77e1d9ef99cc authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: fix handling TestProcess.communicate(None)

c435de06a10f3d2a66c779eda80315d7bc0ba14b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Make VMCollection return sorted VM list on iteration

This makes it much easier to write tests...

93d7249ef033aeede504ed5ab6f163566da53621 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
storage: implement admin.vm.volume.Import as volume.import_data

Use newly introduced payload_stream= argument to qubesd_call to pass
data directly from some fil...

50237d4953a0bad4ce1842bac52412bd9a3daa13 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix setting VM property to None

None value should be encoded as empty string.

c988ef41a3512e5771ce36c0c503e9b8ccf476b5 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Clear VM cache after adding new VM

If cache was already populated, trying to reference newly created VM
would fail as it isn't the ...

6f99e871cf849d79fa7a481a03a463c9e290742d authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
events: add helper for waiting for just VM shutdown

Wrap setting events handling machinery for just this purpose in a single
function, to not duplic...

b35588368f470c5cdf6a7ef5284da0aaf83a424f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add efficient method to handle large payloads for Admin API methods

Add qubesd_call(..., payload_stream=...) argument to allow streaming
payload directly from some ...

0b2f7ac958590cf5cb0167e68206c6edc1620b12 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: add more test cases for qvm-start-gui

1aab64d5b0b35e56ed92ad03a17918b694bf13e0 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: make qvm-ls --fields accept property names

Since migration to Admin API, qvm-ls no longer have list of all VM
properties in advance, so can...

f3f85214fcda59682922b42e34d273150c6b3bc6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add QubesNoSuchPropertyError exception, expect it on invalid property

It inherits from AttributeError, so standard handling should just work.

de2f23b9fe95a24a200695e1dac9a73edef3647a authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
debian,fedora: add missing python-docutils dependency

fa667636284ab0a910932f503da123de0cecca8d authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
qvm-run: fix race condition in SIGCHLD handling

Don't terminate qvm-run on any SIGCHLD, check if the process we're
waiting for have finished.

C...

54d5ec79b5774484ab60d860de13b5072ac44141 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
features: add vm.features.items() function

Make it behave more like a dict.

17ca883c7cc4bbf62137a83cf7728a4e32c92029 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
devices: adjust API for 'devices: add assignment.device property' change

Make it easy to retrieve DeviceInfo object out of DeviceAssignment
object. The only missing piec...

c8263785799ae214ab8cd07b786cd79eb61f2430 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add DeviceAlreadyAttached exception

3edbc8528217808106f49d687f8cf99806477608 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
rpm: fix dependencies for python2-qubesadmin package

In Fedora it's python-daemon, not python2-daemon.

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

Make it convenient wrapper around qrexec-client{-vm}, which would start
a VM, wait for user sess...

38abd81ea89e42f2646f0dfa3916bdb5e31ba3aa authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
debian: initial packaging

d7671e48561b82146a0c037c881f61fc9a024489 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add vm.is_networked()

f5e102177cfe0a868da79fda3fba8bd17f778657 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add 'wait' argument to vm.run_service()

It is supported only from dom0, but it's still useful to have, to save
on simultaneous vchan con...

938fc9348f9c91e6b8ebabb8e0089ed08d0feb77 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Fix qvm-start-gui autostart script

bbd0beb830d414a87102262668becac71eec4e1e authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: exit the shell after executing requested command

Since we use qubes.VMShell service now and send requested command on its
stdin, we need to termi...

8686ef423a6a9839a3f2a434ae13c59b5f5e3051 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: add TemplateVM.appvms property - list of VMs based on it

d0bcd3ead23cdcf431a78573f09a78d946bdccce authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: fix waiting for session

Register SIGCHLD signal handler later - do not stop data processing when
qubes.WaitForSession se...

024ac6a81066078d46e31a85633297dd6a02661c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix handling single optional VM name

7f5fc6ac3d904a5c6365089cfa91188807832742 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
features: fix serialization

qubesd_call expect "bytes" type. Additionally serialize false value as
empty string (which is tr...

ee81902979d44c3ccda17a85b917b3876e6e1de8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
travis: enable deploy script, switch to 4.0 repos

Enable master-staging -> master update
Use new "Build Stages" Travis-CI feature, to deploy only ...

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

116c45071fbaf0e8c5a3ef6faf5cd69c9eb3efaa authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: use print instead of logging

Do not color qvm-run diagnostic messages, but also avoid ANSI control
sequences in logs. While a...

45cbbf5e1d3d1d6f85238f76a318e49f8e9273f6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: wait for user session unless qvm-run --no-gui is used

Avoid race condition with X server startup, especially important for
qvm-run --autostart.

2d7ca9f95ec16e9f47f10152cdcf5a760acde5c8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-run: use subproces.DEVNULL instead of manually opened /dev/null

210876bd8f2be6c3e1fb68a440c2349bbd53aca8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
vm: fix run_service error reporting

qubesadmin.exc.QubesVMError (in contrast to qubesa.exc.QubesVMError)
does not take VM instance a...

f386d45695c622f2a45ddba0c26bcc2d5000e344 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Invalidate domains cache when received an event affecting it

When events handling is enabled, use it for cache invalidation too.

88b559d98556a391e7831ea8f4c9ea78a113de14 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools/qvm-start-gui: fix cat-induced typo

<^-^>

57b87da9d1a5ccb32f7fea3fc8813b726389a71f authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Rename Mgmt API to Admin API: methods names

QubesOS/qubes-issues#853

cfc9ff2ce50d3400bb1ecd2604648ce22c262f7e authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Install actual scripts stubs

Since core-admin no longer install them, this package finally can
provide them without conflicts.

cf0cf57e7c37613df0d36ba901cb3ca78a7b9286 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Update documentation link in readme

6c477658849504b729a24c3d26cf3259b76a8a32 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Include tools also on python 3.4

This result only in small limitation in qvm-start-gui tool, but allow
to use the tools from Debi...

f4d6ac288033c9943948b412943175aa2be7ab34 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Rename qubesmgmt to qubesadmin module

QubesOS/qubes-issues#853

4ceff0f8c07d9046435dc026b4a56d2690c47e83 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: import man pages

Most of them are moved from core-admin repository, even if tool is not
implemented yet. Some are...

54d992f727e6bdf2b6eaf74ea2ad869ddc0b0b0a authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
rpm: plug man pages building into rpm

1b7a58b84b993c078f8812e7490ba8fe0ecd1851 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: minor fixes for documentation building

39a888df4d49fe60de1bdf591a86ddc699501670 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add missing docstrings

78c28a70e92c7b9cb0b567111f2af875b55c8549 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix get_parser_for_command

d3439694c88d66bb4d5bfb23fc2bbc7131f9e502 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
doc: Sphinx config skeleton

Some parts (especially in qubesmgmt/dochelpers.py) copied from
core-admin repo.

70e04eddf8e4830eea5df1f1a715a564ceb1e141 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-firewall

The tool and tests.

Use '-' for empty fields in the table, to work also with old 'column'
progr...

812e28c97f407c7472149830c2158964bb99f505 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
firewall: add firewall API

To keep API compatibility with core-admin, most data structures are
copied from there.

0d49ba27103a0612a898e6fb9a04202cebf58905 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: make tests not fail with substituted sys.stdout

At best lets skip tests in such a case.

206f1a7c5b2b2bd421edb8e5977dfcae1ea2aaa8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: import assertNotRaises() from core-admin

09acf4729b8f15f30b88d2a3033633887c603fe4 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-device

The tool and tests.

d5bf5a1d751098ecc4ee168f1737e81eed160679 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
README: add note about python version compatibility

6f46faba6c0990567c1533198d8170f537762007 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
devices: add devices API wrappers

54dcec2cf55c2500302e84882a03c201898a4448 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: make Std{err,out}Buffer context managers stackable

Allow use StdoutBuffer context manager inside another similar context
manager. This allows runni...

cdb9205eef1c8ef0ffd19d32a484c01172fecafe authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
base: handle default method destination

Will ease vm.qubesd_call usage.

14ba770c1a5043cbe589a921bb31826d63003b6b authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix license header for qvm-ls

9aa242751375140f88d7fdfcaedd626f7eb8d3e3 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: add QubesLocal/QubesRemote tests

Lets also test basic communication primitives. `mock` python module
makes it _much_ easier, so l...

1db4e3abeaf67d928fe02cf10c4ced1bf1d8ecda authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tests: add clone_vm tests

Also put non-VMCollection related tests into separate class.

786bb7d94fa8edc4b3b663e0eda5b2318f121ffc authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-clone

The tool and tests.

8ce10168ef7ddfd4454adc75a74b205cf9e76cb9 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: fix FD leak

b8a8394d2da6df8e3fd708afed3156abb90e6243 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: minor fix for qvm-check

6e844220620387f3f7d7166a9bf9c40a0e791bed authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: fix QubesRemote.run_service

When no localcmd is given, it should only affect last argument(s) of
qrexec-client-vm call, not ...

2efe8405b7e30773ae21fba67797dd4741b97dc2 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: add clone_vm function

This differ from main core-admin API, because Admin API do not expose
separate `create_on_disk()...

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

The tool and tests.

b61844ae5d20b842e3088e9a726bb2ea6485a712 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: add get_label, get_vm_class and add_new_vm methods

04593b273d75fa88ade4b9f3a8d625f6ad822bc2 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add qvm-start-gui autostart script

Start it using XDG Autostart feature, but exclude starting in
qubes-session - so even if package...

377a82105dfe11b7726bf7200d88fd2be59f35b8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix PropertyAction

self.default={} is mutable, so instead of modifying value derived from
that default, retrieve va...

984ea09cefc4e35048b37295e765bdd88adcbef6 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: fix default for SinglePropertyAction

For positional arguments default is sent to __call__ even when not
provided on command line. Exc...

4113651f01d759cac24f5fb292b4b150bfc5ab36 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
Add 'daemon' python module dependency

It is required by qvm-start-gui tool.

47cea5d146a4f37501f68d820104d0a398fdc2ca authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-remove

The tool and test.

bf053769bfcf77002188e0f1c971afceb50121d8 authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: add qvm-start-gui --notify-monitor-layout option

This is mostly what 'qubes-monitor-layout-notify' tool did in Qubes 3.2.

8eed5088641c5a5361542af6b588327553f0762c authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
tools: qvm-features

The tool and tests.

77a96b8b2156f3d902153281d926164fa2d9a1bd authored over 7 years ago by Marek Marczykowski-Górecki <[email protected]>
app: add VM removal support

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