DavHau
a438a27c69
vms: init graceful shutdown for GUI
...
- add python modules for qemu protocols: QMP (hardware interactions) and QGA (guest service interaction)
- refactor state directory: remove name from path (already contains url)
- add impure vm test for basic qmp interaction
- simplify existing vm persistance test (factor out shared code)
- integrate graceful shutdown into GUI
the GUI integration still needs to be improved later:
- add fallback in case system doesn't react to powerdown button
- shutdown GUI switch fails if VM hasn't been started yet, and then remains in a wrong position
2024-02-09 19:55:18 +07:00
Jörg Thalheim
5afd5baeb2
add requireExplicitUpdate option for mobile devices
2024-02-06 17:55:34 +01:00
Jörg Thalheim
8f74f257e7
add support for build machines
2024-02-06 17:21:42 +01:00
Jörg Thalheim
5e5077c31c
rename machine.host to machine.target_host
2024-02-06 17:21:42 +01:00
Jörg Thalheim
7d62e147a9
rename target_host to target_host_address
2024-02-06 17:21:42 +01:00
Jörg Thalheim
0745bcb9a0
machines/update: get flake_attr from machine class
2024-02-06 17:21:42 +01:00
Jörg Thalheim
f1756c3a43
machines: don't ignore errors when parsing secretsData json
2024-02-06 15:15:21 +01:00
Jörg Thalheim
8db4d31a52
skip machines without target_host when running clan machines update
2024-02-06 15:04:19 +01:00
Jörg Thalheim
d36aea3f73
move checks if targetHost/buildHost is set to cli
2024-02-06 14:51:44 +01:00
lassulus
3f2f3012b9
clan-cli update: remove legacy argument
2024-02-03 07:53:15 +01:00
lassulus
06c2734c9b
clan-cli update: upload only local paths from localhost
2024-02-03 07:53:15 +01:00
lassulus
62f46751c7
clan-cli machines: remove debug prints
2024-02-02 17:40:19 +01:00
Jörg Thalheim
584299e199
rename deployment address to target address
...
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
Qubasa
a894b358b4
vm-manager: Added log console printing on vm start. Added python logging module
2024-02-02 12:04:30 +07:00
Qubasa
e7668f6e41
Machine __str__ impl
2024-01-30 15:32:35 +07:00
lassulus
8862920b32
clan-cli machines: get flake path via flake metadata
2024-01-29 09:54:30 +01:00
Qubasa
b10650b77b
UI: Display error logs on VM crash. Fixed inspect_vm problem.
2024-01-29 15:11:57 +07:00
lassulus
b6e67aac60
clan-cli install: use new Machine interface, fix mypy error
2024-01-24 15:49:24 +01:00
lassulus
8ac9ad3133
clan-cli update: use new Machine class interface
2024-01-24 15:49:12 +01:00
lassulus
875d79c57a
clan-cli Machine: make deployment info lazy
2024-01-24 15:49:12 +01:00
lassulus
bdd1f9be6d
machines.Machine: refactor flake_dir -> flake; use Machine class in vm
2024-01-24 15:49:12 +01:00
lassulus
1d4e533438
move secret stores into clan_cli codebase
2024-01-24 15:49:12 +01:00
lassulus
ed6eb50f7d
WIP: clan-cli secrets: add secret_store as python class
2024-01-23 15:04:40 +01:00
Qubasa
038aa769aa
cmd.py: Fixing bug: missing output because of forgotten flush() call
2024-01-11 21:11:49 +01:00
Qubasa
3ed58de082
Fixed missing log.BOTH and error_msg at prev refactors
2024-01-11 21:11:49 +01:00
Qubasa
13ba1440bd
cmd.py refactor part 4
2024-01-11 21:11:49 +01:00
Qubasa
7049573d28
Refactor subprocess to cmd.py part 2
2024-01-10 12:11:29 +01:00
Qubasa
e17508702a
UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug.
2023-12-26 18:02:43 +01:00
Jörg Thalheim
a057f58229
cli/install: add option to specify alternative kexec url
2023-12-26 14:36:51 +01:00
lassulus
21fd3a74bb
machines build_machine_data: raise ClanError on error
2023-12-16 21:46:19 +01:00
Qubasa
30cd375d98
Fixed failing tests in machines and history cli, removed test_machines_api.py
2023-12-14 18:25:42 +01:00
Qubasa
54f0a7d342
Reworked machines list, and history commands
2023-12-14 18:21:10 +01:00
lassulus
c2742463c3
clan-cli Machines: implement eval/build-cache
2023-12-08 19:09:29 +01:00
Jörg Thalheim
0e91f8721f
prefix nixpkgs# explicitly in nix_shell
...
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
Jörg Thalheim
6f0722c692
modernisation for python 3.11
2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6
enable more linting
2023-11-29 13:29:45 +00:00
Jörg Thalheim
39617bbf03
run_upload_secrets: don't swallow stdout output
2023-11-29 11:38:01 +01:00
Jörg Thalheim
61c5cb58e3
install: fix secrets upload
2023-11-29 11:38:01 +01:00
lassulus
d8633dd29d
machines.update: remove redundant flake argument
2023-11-15 21:57:08 +01:00
lassulus
082d628497
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
DavHau
2fafc9a38b
api/machines: init put_machine replacing create_machine and set_machine_config
...
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
lassulus
efafe6f0e3
clan-cli secrets: flake_name -> flake_dir
2023-11-05 16:58:48 +01:00
lassulus
0600278122
cli machines update: find flake dir automatic if not provided, support flake as path
2023-10-29 20:52:38 +01:00
Qubasa
e389c7cfe7
Updated to main branch. Removed cluttering asyncio and httpx log messages
2023-10-27 23:36:45 +02:00
Qubasa
768b567f21
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
8ff80b025c
Fixing a multitude of tests
2023-10-27 19:21:50 +02:00
Qubasa
9c8829c32f
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
0ab2b853f2
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Qubasa
ecdd4949b7
Added new type FlakeName
2023-10-27 19:18:45 +02:00