Qubasa
26bfb793b1
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
Qubasa
d02acbe04b
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
9f464dd14e
Added ipdb as breakpoint console. Improved logging.
2023-10-27 19:19:45 +02:00
Qubasa
8cc1c2c4bd
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Qubasa
2ca54afe7f
Added new type FlakeName
2023-10-27 19:18:45 +02:00
Qubasa
32e60f5adc
Added flake_name:str argument everywhere, nix fmt doesn't complain anymore
2023-10-27 19:15:40 +02:00
Qubasa
fdcd7ad1d9
Updated to main
2023-10-27 19:15:11 +02:00
Qubasa
711c70d1f0
Added state directory.
2023-10-27 19:11:27 +02:00
Qubasa
fa5f39f226
API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem
2023-10-27 19:11:27 +02:00
DavHau
0e5c7d2d13
api/machines: split off config validation into separate endpoint
...
- This speeds up PUT /machines{name}/config as it doesn't do the expensive check anymore
- instead use PUT /machines/{name}/verify which allows a dry-run evaluation of a config which is passed without writing it to disk
2023-10-25 17:48:37 +01:00
DavHau
25708d1a1a
/api/clan_modules: init
...
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
DavHau
bf176ad277
api/machines: allow importing extra modules
...
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config
Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
DavHau
588bde069f
PUT api/machines/{name}/config: ensure only valid config is ever written
...
- add CLAN_MACHINE_SETTINGS_FILE variable to temporarily override the machine settings file
- do a dry-run evaluation first with the new config before persisting it.
2023-10-24 18:40:48 +01:00
DavHau
a539fb6dc6
machines: add endpoint machines/{name}/ verify
2023-10-24 16:31:37 +01:00
Qubasa
b49433958b
API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create
2023-10-09 14:01:34 +02:00
Qubasa
9c74c4d661
CLI: Fixed bug in firefox opening addon page because of new profile
2023-10-08 14:39:31 +02:00
DavHau
bdd4cfc7d8
clan join: init
2023-10-04 18:53:59 +02:00
Jörg Thalheim
d156218775
drop dead daemonize code
2023-10-04 18:17:30 +02:00
lassulus
fe1a3f0541
task_manager: fix race conditions
2023-10-04 17:52:06 +02:00
DavHau
544322ee6e
webui: open browser in new window
...
This gets closer to an app like feeling
2023-10-04 17:26:55 +02:00
Jörg Thalheim
04ba80f614
improve task manager to report exceptions better
2023-10-04 16:49:58 +02:00
Jörg Thalheim
b23d2b65e1
task_manager: return task directly instead of uuid
2023-10-03 17:48:56 +02:00
Jörg Thalheim
ff11340507
move out vm logic out of controller
2023-10-03 17:24:08 +02:00
Qubasa
cb2815c4d0
nix fmt
2023-10-03 14:39:29 +02:00
Qubasa
d8b69ec883
Added newlines against buffering for log streaming. Fixed cli
2023-10-03 14:38:51 +02:00
Qubasa
d25c3a0940
Added newlines against buffering
2023-10-03 14:36:15 +02:00
Qubasa
2bbed10117
Added better logging
2023-10-03 14:16:07 +02:00
Qubasa
c1c68ee1d8
Fixed failing tests
2023-10-03 13:15:01 +02:00
Qubasa
7e180d2f12
CLI: Restructured TaskManager and log collection
2023-10-03 13:15:01 +02:00
Qubasa
af17c1bd7a
Updated to main
2023-10-03 13:12:44 +02:00
Johannes Kirschbauer
c40a7bf3fb
smoke check error handling for create vm
2023-10-03 11:43:06 +02:00
Johannes Kirschbauer
3c11eece4d
add error handling to endpoint
2023-10-03 11:12:06 +02:00
Qubasa
ce7ae81a35
API: Added endpoint & test for /api/flake/attrs
2023-10-01 12:50:54 +02:00
Johannes Kirschbauer
82db33d047
refine join workflow
2023-09-30 16:00:21 +02:00
Qubasa
f224deace9
API: Improved vm_status and added some tests. Skip vm tests in VM
2023-09-30 11:08:42 +02:00
Jörg Thalheim
7184fe277d
webui: fix warning
2023-09-28 16:31:59 +02:00
Jörg Thalheim
cc70537a91
webui: pretty urls by also appending .html
2023-09-28 11:09:31 +02:00
Jörg Thalheim
974f07628b
vms: simplify args passed to create_subprocess_exec
2023-09-27 12:30:06 +02:00
Jörg Thalheim
4317e681cf
cli: fix remaining typing errors
2023-09-27 09:47:50 +00:00
Jörg Thalheim
80aa7f06fb
task_manager: assert stdout/stderr exist to make mypy happy
2023-09-27 09:47:50 +00:00
Jörg Thalheim
dea49073cb
cli/vms: serialize uuid already in the api
2023-09-27 09:47:50 +00:00
Qubasa
08eab785c6
Completely working log streaming
2023-09-27 09:47:50 +00:00
Qubasa
8d390af122
Working log streaming
2023-09-27 09:47:50 +00:00
Qubasa
82c3d91e85
Working version
2023-09-27 09:47:50 +00:00
Qubasa
a8bab7bb96
Working log streaming
2023-09-27 09:47:50 +00:00
Qubasa
98028d121f
Working log streaming
2023-09-27 09:47:50 +00:00
Qubasa
c2fb42e953
Extracted threadpool to task_manager.py
2023-09-27 09:47:50 +00:00
Qubasa
f6c8b963c1
Improving endpoint
2023-09-27 09:47:50 +00:00
Qubasa
d16bb5db26
Added threaded create_vm endpoint
2023-09-27 09:47:50 +00:00
Qubasa
7479fca82b
Started working on vm_create
2023-09-27 09:47:50 +00:00