Commit Graph

15 Commits

Author SHA1 Message Date
Guillaume Raffy 6974f51221 cocluto v1.0.21 - added the option --db-def to quman
- this option allows the quman to work with user configurable database system as a backend. the default uses the database for alambix cluster
- also improved the output of show-disable-requests

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-10 17:58:26 +02:00
Guillaume Raffy c80e3cd382 cocluto v1.0.20 - fixes warnings when installing cocluto
```
WARNING: Missing build requirements in pyproject.toml for file:///home/graffy/work/simpaweb/cocluto.git.
  WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
```

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-10 13:52:04 +02:00
Guillaume Raffy 9266ad8278 cocluto v1.0.19 - added the update-db action to quman
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-10 13:28:36 +02:00
Guillaume Raffy 381ec9f1af cocluto v1.0.18 - fixed a bug that caused submodules to be excluded from install
eg problem visible with the command:
> /usr/bin/python3 -m pip install --root=/ git+https://git.ipr.univ-rennes.fr/cellinfo/cocluto to

then:
```sh
root@alambix50:~# quman
Traceback (most recent call last):
  File "/usr/local/bin/quman", line 5, in <module>
    from cocluto.quman import main
  File "/usr/local/lib/python3.11/dist-packages/cocluto/quman.py", line 13, in <module>
    from cocluto.ClusterController.QstatParser import QstatParser
```

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-10 10:18:06 +02:00
Guillaume Raffy f64e31b420 cocluto v1.0.17 - added json option to quman so that the user can choose to get results in machine friendly (json) or human friendly format
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-03 18:08:58 +02:00
Guillaume Raffy 04adbbc684 cocluto v1.0.16 - overhauld quman arguments parsing
- quman's argument parsing now uses subparsers to allow for more actions than enable and disable
- added the show-disables action to quman
- added a test mode for the command line quman, that allows the user to test quman using quman's user interface
- renamed disable tag as disable id, as it's more meaningful (identfies a disable request)
- made user errors more user-friendly (ie not polluted with call stack)

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-03 17:01:56 +02:00
Guillaume Raffy 25afd32504 cocluto v1.0.15 - added user friedly error message when qmod is not available
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-03 14:20:37 +02:00
Guillaume Raffy 4cc541d9c3 cocluto v1.0.14 - added support to full queues to quman
Whith this feature, it's now possible to disable an entire queue (and not only one queue machine), with

```sh
quman d main.q --disable-tag admin.graffy.bug4242 --reason 'preparing cluster to shutdown for power shortage, see bug 4242'
```
-  also replaced the term queue name with queue machine for clarity, now that we have both QueueMachineId and QueueId

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-03 11:58:47 +02:00
Guillaume Raffy bfe1eeb084 cocluto v1.0.13 - improvements to quman
- the userid and the host fqdn of are now recorded
- found better names (more appropriate and easier to understand)
  - disable reason -> disable request
  - requester -> disable tag

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-02 19:31:31 +02:00
Guillaume Raffy 0f0d5f800e v 1.0.12
- fixed bug in request_queue_activation, which caused it to always enable the queue, even if there are other disables
- added a synchronization mechanism to quman which patches the database to ensure the database is coherent with the current activation of the queues

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-01 19:08:06 +02:00
Guillaume Raffy f5dce0bf10 v 1.0.11
- added IGridEngine abstraction that allows to switch between dry-run mode and normal mode
- added more commandes to the test

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-01 17:31:45 +02:00
Guillaume Raffy a7d92a3f99 v 1.0.10
- fixed iteration bug in qman
- added missing unit test

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-01 16:33:46 +02:00
Guillaume Raffy 3beba78ecc started to develop quman, a tool to handle multiple disable requests on the same queue
- to make this work, cocluto now uses a pyproject.toml configuration
- cocluto v1.0.9
- this is still work in progress, but the basic behaviour

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3093]
2026-04-01 16:12:17 +02:00
Guillaume Raffy 270304f58e fixed pylint errors and cleaned up
work related to Bug 3315 - make simpaweb django app a packageable application
2023-05-23 17:27:12 +02:00
Guillaume Raffy a0a7ebe2d8 changed directory layour to comply with https://python-packaging.readthedocs.io/en/latest/minimal.html 2022-01-28 18:14:09 +01:00