Commit Graph

31 Commits

Author SHA1 Message Date
Guillaume Raffy 34568ed949 made cssh also work with ssh config host ids (complete fix)
eg
```sh
cssh monitoring.tunnel
```

fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4405]
2026-06-25 16:29:19 +02:00
Guillaume Raffy 4d6a14f4e2 made cssh also work with ssh config host ids
eg
```sh
cssh monitoring.tunnel
```
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4405]
2026-06-25 12:35:24 +02:00
Guillaume Raffy 0944f9feca final changes to repair cssh:
- restored macosx functionality in the form of python code (not tested though)
- fixed bugs in the linux version

fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4405]
2026-06-17 16:04:32 +02:00
Guillaume Raffy 87a2d3ca22 fixed make_color.py to work on machines that don't have python2
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4405]
2026-06-17 16:01:10 +02:00
Guillaume Raffy 6bc44363de refactored cssh (added ITerminalLauncher)
this actract class better organises the code, and will allow a clear separation between macosx functions and gnome related functions

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4405]
2026-06-17 10:32:07 +02:00
Guillaume Raffy 0e7309d3b6 adapted cssh to ubuntu 26.04
because gnome changed:
```md
1. What Changed Between Ubuntu 20.04 and 26.04?
Ubuntu 20.04 (GNOME 3.36)

In older versions of gnome-terminal (e.g., 3.36.x), profiles were automatically registered in the org.gnome.Terminal.ProfilesList schema when they were created via dconf or the GUI.
The list key in org.gnome.Terminal.ProfilesList was dynamically updated to include any profile that existed in /org/gnome/terminal/legacy/profiles:/.
Result: You could create a profile (e.g., via dconf write), and gnome-terminal would automatically recognize it, even if you didn’t explicitly add it to the list key.
Ubuntu 26.04 (GNOME 46+)

In newer versions of gnome-terminal (e.g., 3.58.x or later), the list key in org.gnome.Terminal.ProfilesList is now strictly enforced.
Profiles must be explicitly added to the list key to be recognized by gnome-terminal.
Result: If you create a profile via dconf but don’t add it to the list key, gnome-terminal will ignore it and fall back to the default profile.
```

- took this opportunity to rewrite cssh in python for clarity
2026-06-17 00:25:04 +02:00
Guillaume Raffy 9f4f301ba8 made cssh more user friendly by using argparse to parse its arguments
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4366]
2026-04-20 15:14:18 +02:00
Guillaume Raffy 7f050ffba4 migrated cssh to python3
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4366]
2026-04-20 14:58:38 +02:00
Guillaume Raffy f112cc3a2e deboco improvement: added extra check to detect debops env failure
- note: work done on 30/01/2026

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4312]
2026-02-17 12:38:11 +01:00
Guillaume Raffy 366b0a327a added more debug traces to deboco
- deboco now forces the use of debops' --diff flag (provides useful information)
- now the executed debops command is visible in debg traces

work done while working on [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4249]
2025-12-18 14:33:11 +01:00
Guillaume Raffy 69b6e27afb found a more self-explanatory name for the ticket details repository: `/mnt/store.ipr/InstallProgs/ipr/tickets-details` instead of `/mnt/store.ipr/InstallProgs/ipr/tickets`
nb: change made on 02/07/2024
2025-06-06 14:46:19 +02:00
Guillaume Raffy eba408acf0 fixed bug in ticman
nb: change made on 02/07/2024
2025-06-06 14:44:28 +02:00
Guillaume Raffy a4a4b98e95 changed the role of deboco's update_machine_partially's last argument
- instead of identifying a group of machines, it allows the user to use a specific playbook. This argument is now transmitted verbatim to debops and is therefore less restrictive than previously

work done when working on [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4069]
2025-05-23 18:32:01 +02:00
Guillaume Raffy 332a3946d4 made deboco's output preserve ansi colors
- as a result, it's much easier to spot changes and errors in the output

work done when working on [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4069]
2025-05-23 18:27:45 +02:00
Guillaume Raffy 2db63e9bd7 gave a better self explaining name to the directory hosting the tickets details repository (to avoid a possible confusion with the tickets themselves)
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3882]
2024-06-27 10:39:17 +02:00
Guillaume Raffy ca9d7e4a47 added ticman, a tool to manage ipr ticket details repository
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3882]
2024-06-26 18:26:56 +02:00
Guillaume Raffy 5bef2d7570 added the ability to make a partial update of a machine
This is very useful to do quick tests while debugging as the the partial updates can be much faster than a full update.

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3814]
2024-04-12 14:38:39 +02:00
Guillaume Raffy a8549fbd60 improved deboco to log some debops controller information on the configured machines' /var/log/ipr/deboco.log file
This will help to know which controller is expected to control a given machine

work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3713 and https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3726
2024-01-10 14:47:04 +01:00
Guillaume Raffy 769c4076e5 added comments 2024-01-10 10:56:41 +01:00
Guillaume Raffy 749cc8c0f7 fixed typos 2024-01-10 10:56:16 +01:00
Guillaume Raffy 6d53ab97e4 made deboco cope properly with relative file paths 2023-12-13 11:27:35 +01:00
Guillaume Raffy 8dbcb480fc added more error detections mechanisms to improve user information 2023-12-13 11:26:49 +01:00
Guillaume Raffy b3e9fec9a2 added a mechanism to verify that debops controller doesn't use other controller's files
this should prevent problems such as https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3719

work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3719
2023-12-13 11:24:57 +01:00
Guillaume Raffy 20bac19c84 changed the location of debops environment file so that debops always uses it
fixes https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3719
2023-12-13 11:19:33 +01:00
Guillaume Raffy 8b7d82399d improved messages displayed by deboco 2023-12-11 14:44:10 +01:00
Guillaume Raffy e3c4dba850 added a mechanism di disable debug messages
work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=2713
2023-12-06 10:25:01 +01:00
Guillaume Raffy 9def80af12 made deboco more generic by adding the python-path option
this allowed me to successfully install debops controller on mazinger.ipr too in addition to graffy-ws2

work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=2713
2023-12-06 10:24:17 +01:00
Guillaume Raffy bcf8310c59 restored the init_machine command, as it can be useful
deboco also now prints the debops error code
2023-12-05 13:38:09 +01:00
Guillaume Raffy 161fe8ea80 deboco now enforces debops update to explicitely python 3.10
This dirty hack allowed the controller to succesfully configure alambix108

fixes https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3715
2023-12-05 13:35:25 +01:00
Guillaume Raffy c629be803f added the script deboco which is able to create multiple standalone debops controllers
- it automates the creation of standalone debops controllers. A standalone debops controller is a directory that embeds:
  - its own ansible.debops tree (which contains ipr debops configuration, but also its secret directory)
  - its own virtualenv
  - its own reports on debops runs when perfoming operations with this controller
- it simplifies some operations like applying a configuration to a new machine

work related to https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3713
2023-12-01 18:53:31 +01:00
Guillaume Raffy e83998ef51 changed file hierarchy to allow for a readme file, an also because this repos is no longer expected to be in cloned in the home directory (too dangerous and it messes up some tools that see git repos into git repos)
- added a readme
- added  scripts and bash config files that I want to be under source control
2023-11-30 18:33:55 +01:00