DavHau
cf67de2f69
secrets: ensure all added/deleted files get committed
2024-04-24 17:26:32 +07:00
a-kenji
498d29cca1
clan-cli: fix clan ssh --json and --png
...
This fixes `clan ssh` with the `--json` and `--png` flags.
It will now correctly use the actual fields that are present in the
generated json.
- probes if the ports are accessible
- if accessible will attempt a single ssh connection with the provided
password, in order to not spam ssh attempts
Fixes #1177
2024-04-17 10:12:37 +00:00
Jörg Thalheim
f385e0e037
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
Qubasa
e6ad0cfbc1
clan-cli: Fix tmpdir leak and fix tests/temporary_dir inconsistencies
2024-03-27 15:51:52 +01:00
Jörg Thalheim
0fa36252c2
re-encrypt secrets after rotating users/machines keys
2024-03-25 12:34:29 +01:00
clan-bot
5fd4a63e17
Merge pull request 'clan-vm-manager: Basic pytest framework established' ( #1026 ) from Qubasa-main into main
2024-03-24 22:41:07 +00:00
Qubasa
8ab9d20342
clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself
2024-03-24 23:36:00 +01:00
lassulus
f16667e25a
refactor secrets & facts -> secret_facts & public_facts
2024-03-23 05:46:54 +01:00
Jörg Thalheim
e296a3019d
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Qubasa
372e212c0c
clan_cli: Renamed ClanUrl to FlakeId
2024-03-08 23:47:27 +07:00
Qubasa
442e5b45ba
clan_cli: Simplify ClanURI
2024-03-07 19:04:48 +07:00
Qubasa
93c868a3b7
clan_cli: Rewrite ClanURI
2024-03-07 16:41:37 +07:00
Jörg Thalheim
0481746198
drop meshnamed from repository
...
It's not super useful and we can always add it back later if we need it.
2024-03-06 10:02:21 +01:00
Jörg Thalheim
a1e2a4f64a
secret cli: accept a pattern in secrets list
2024-02-22 14:21:53 +01:00
clan-bot
36b20f18d4
Merge pull request 'add option to set defaultGroups for secrets' ( #858 ) from Mic92-target_host into main
2024-02-16 16:29:28 +00:00
Jörg Thalheim
57e9b27ff8
add option to set defaultGroups for secrets
2024-02-16 17:26:20 +01:00
Qubasa
280bee0861
clan-vm-manager: Fixing vm starting.
2024-02-16 16:10:49 +07:00
Qubasa
4f7f34f9b4
clan-vm-manager: Added clan icon to trayicon
2024-02-16 12:25:06 +07:00
clan-bot
1cc6e74297
Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' ( #840 ) from Qubasa-add_spinner into main
2024-02-14 08:43:14 +00:00
Qubasa
30850eef22
clan_cli: Added longer timeout for test
2024-02-14 15:40:03 +07:00
Jörg Thalheim
b15c21f800
drop check for /var/lib/nixos
2024-02-13 12:44:22 +01:00
Qubasa
03b9183e04
clan_cli: Added lazy qmp
2024-02-13 16:44:09 +07:00
Qubasa
92ec3fb9f9
test_vms_cli: Trying new way of testing
2024-02-13 16:44:09 +07:00
Qubasa
87dbc99cab
clan_cli: Made qmp implementation lazy
2024-02-13 16:44:09 +07:00
Qubasa
0ce8bcd018
clan_vm_manager: Added VM shutdown timeout
2024-02-12 14:16:44 +07:00
DavHau
02dd132e08
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
a2f0d077c8
remove unused ssh.run method
2024-02-06 15:47:32 +01:00
Jörg Thalheim
3538cf2e46
rename deployment address to target address
...
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
DavHau
56b6907740
qemu: init python modules for qmp and qga
2024-02-01 12:32:21 +07:00
DavHau
59fa63eba9
Reapply "vm-state: fix and improve testing"
...
This reverts commit 99092f6e76 .
vm-state: revert sysusers, improve testing
zerotier: enable persistence
vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
DavHau
99092f6e76
Revert "vm-state: fix and improve testing"
...
This reverts commit 6adc68a354 .
2024-01-29 15:16:10 +07:00
DavHau
6adc68a354
vm-state: fix and improve testing
...
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
lassulus
9cf670ee29
test_vm_persistance: substitute clan-core repo
2024-01-24 15:49:12 +01:00
lassulus
de885c3010
test_vm_persistance: add age keys
2024-01-24 15:49:12 +01:00
Qubasa
f1acc44488
URI: Added support for #flake_attr
2024-01-16 17:11:26 +01:00
Qubasa
3351f87a7f
Removed duplicate logging messages
2024-01-11 22:46:29 +01:00
Qubasa
4d4c09da80
Enabled logging DEBUG in pytest
2024-01-11 22:14:55 +01:00
Qubasa
f7c6ab5888
Working test_secrets_generate
2024-01-11 21:48:39 +01:00
Qubasa
626e5558f3
Fix cmd to default print on all outputs. Default print on stderr
2024-01-10 17:31:11 +01:00
DavHau
520ff0b334
VMs: ensure state dirs don't collide between clans
2024-01-09 17:22:48 +07:00
DavHau
17390fc392
VMs: port vm_persistence test to python
2024-01-09 14:47:33 +07:00
Qubasa
3f55c688d9
Refactor subprocess to cmd.py part 1. Fixed clan_uri test.
2024-01-02 17:21:06 +01:00
Qubasa
7c5ed85231
clan_uri: Support all other formats by just differentiating between remote and local
2024-01-02 17:21:05 +01:00
Qubasa
330ef00a7c
Removed python deal.
2023-12-30 23:10:43 +01:00
Qubasa
7dc2c21517
Deleted everything webui
2023-12-14 18:47:14 +01:00
Qubasa
1a36ef242f
Fixed failing tests in machines and history cli, removed test_machines_api.py
2023-12-14 18:25:42 +01:00
Qubasa
e139628fbd
Improved ClanURI
2023-12-14 18:21:10 +01:00
Qubasa
c90053834a
Reworked machines list, and history commands
2023-12-14 18:21:10 +01:00
Qubasa
9d952ba534
Fixed pytest
2023-12-14 18:21:10 +01:00
Qubasa
a1ebe663ce
Fixing pytest
2023-12-14 18:21:10 +01:00