Commit Graph

499 Commits

Author SHA1 Message Date
Qubasa
a72477e574 cmd.py refactor part 6 2024-01-12 17:21:48 +01:00
Qubasa
38e2c29f08 cmd.py refactor part 6 2024-01-12 17:02:56 +01:00
Qubasa
6b39ea5592 cmd.py refactor part 5 2024-01-12 16:52:34 +01:00
Qubasa
5730dd8921 Fixed duplicate logging issue with correct logging in ssh and in root logger 2024-01-12 16:46:44 +01:00
Jörg Thalheim
6ef8fd95fa revert logger changes in 6647c38417
This adds another logger to the logger in clan_cli.ssh which we do not want
2024-01-12 14:48:36 +01:00
Jörg Thalheim
a83d7e0afc cmd: add a timeout in select 2024-01-12 00:20:22 +01:00
Qubasa
12896d72ea cmd.py: Fix busy loop. 2024-01-12 00:13:21 +01:00
Qubasa
b4a3be7628 Re-added rlist.remove to counter busy loop 2024-01-12 00:08:15 +01:00
Qubasa
c56e1d1684 cmd.py: Fix deadlock because of incorrect select usage 2024-01-11 23:03:14 +01:00
Qubasa
f087f527cc Removed duplicate logging messages 2024-01-11 22:46:29 +01:00
Qubasa
2c6c4bacce Identified deadlocking funciton 2024-01-11 22:28:35 +01:00
Qubasa
a98463e3b9 Enabled logging DEBUG in pytest 2024-01-11 22:14:55 +01:00
Qubasa
6647c38417 Working test_secrets_generate 2024-01-11 21:48:39 +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
Jörg Thalheim
163abdb311 schema: set also clanName
this is usually set by buildClan
2024-01-11 17:41:41 +01:00
clan-bot
7ce276c25c Merge pull request 'cmd.py part 3 refactor' (#706) from Qubasa-main into main 2024-01-10 17:57:51 +00:00
Qubasa
25e6f90b01 Improved error message. Fixed incorrect ret code check in git.py 2024-01-10 18:54:34 +01:00
Qubasa
50781d6cf0 Fixed bug, where exception is raised where there shouldn't be raised one 2024-01-10 18:46:54 +01:00
Qubasa
513f48bab1 cmd.py part 3 refactor 2024-01-10 18:39:19 +01:00
clan-bot
726ba6147f Merge pull request 'Added ClanCmdError. cmd.run now returns this error' (#704) from Qubasa-main into main 2024-01-10 17:02:08 +00:00
Qubasa
cbc4c966f1 Added ClanCmdError. cmd.run now returns this error 2024-01-10 17:58:39 +01:00
clan-bot
e75b4ac6e6 Merge pull request 'Refactor subprocess to cmd.py part 2' (#685) from Qubasa-main into main 2024-01-10 16:34:38 +00:00
Qubasa
2f9195b779 Fix cmd to default print on all outputs. Default print on stderr 2024-01-10 17:31:11 +01:00
Qubasa
715ed10e59 nix fmt 2024-01-10 17:19:33 +01:00
Qubasa
cc6f9e67fa nix fmt 2024-01-10 17:19:12 +01:00
Qubasa
6f27cd8b6a Updated cmd.py with Mic92 changes to fit previous changes 2024-01-10 17:18:21 +01:00
Jörg Thalheim
d72bb17878 re-anble pulseaudio in qemu 2024-01-10 15:32:37 +01:00
Qubasa
7049573d28 Refactor subprocess to cmd.py part 2 2024-01-10 12:11:29 +01:00
clan-bot
9f4e38fcf0 Merge pull request 'cmd: rework redirecting stdout/stderr' (#700) from Mic92-wayland-update into main 2024-01-09 16:39:19 +00:00
Jörg Thalheim
b476f6386d cmd: rework redirecting stdout/stderr 2024-01-09 17:34:43 +01:00
DavHau
368931c5af VMs: ensure state dirs don't collide between clans 2024-01-09 17:22:48 +07:00
DavHau
4bdf769075 VMs: persist state folders on host
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
Jörg Thalheim
f240dc9338 strip whitespace from clan uris 2024-01-04 16:30:26 +01:00
Qubasa
f424395bd3 Fixed cmd.py writing to stderr 2024-01-02 17:21:06 +01:00
Qubasa
9c7f62a4a5 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 2024-01-02 17:21:06 +01:00
Qubasa
1986271bef delete unecessary f.truncate 2024-01-02 17:21:06 +01:00
Qubasa
79b651a6f2 Fixed unsafe dirs.py urlquoting, improved cmd.py run func 2024-01-02 17:21:06 +01:00
Qubasa
d7c5850f2f clan_uri: Support all other formats by just differentiating between remote and local 2024-01-02 17:21:05 +01:00
DavHau
e5c238346a dirs.py: remove outdated comment 2024-01-02 14:25:37 +07:00
Qubasa
af6722daa0 vm-manager: Added right click context menu 2024-01-02 07:24:30 +01:00
Qubasa
5d69830f1a vm-manager: More error handling 2024-01-02 06:23:55 +01:00
Qubasa
9f75237d27 Removed unecessary debug.py and test code 2024-01-01 18:58:12 +01:00
Qubasa
4265f53d37 Added settings attribute to history file 2024-01-01 18:24:40 +01:00
Qubasa
3c5dd31501 Added write and read history file functions 2023-12-31 15:17:12 +01:00
Qubasa
17f5d90926 history: added vm config to FlakeConfig 2023-12-31 14:56:03 +01:00
Qubasa
cddce324ef vm-manager: Fixed quit application not working bug 2023-12-31 14:13:11 +01:00
Qubasa
d604255217 cli: fixed run vm not working with url 2023-12-31 13:56:55 +01:00
Qubasa
6abfe4d595 cli: Switched b64 encoding of gcroot names to urlparse 2023-12-31 13:51:13 +01:00