Seite 1 von 1

opsi-cli selects product groups for client actions

Verfasst: 25 Jun 2025, 13:36
von malte.gerth
If I'm running a client action using the "--client-groups" filter/selection, not only the clients of the groups get selected, but also all products/packages.

This results in an error message which is quite confusing.

From my point of view, only client groups should be used for this filter.

Code: Alles auswählen

opsi-cli --log-level-stderr info client-action --client-groups 'it' trigger-event --event "timer"

Code: Alles auswählen

[5] [2025-06-25 13:31:08.789] [               ] Successfully triggered event on 6 clients   (host_control_worker.py:144)
Successfully triggered event on 6 clients

[3] [2025-06-25 13:31:08.792] [               ] Could not reach 2 clients:
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Could not reach 2 clients:                                                                                                                              │
│ opsi-wan-config-on                                                                                                                                      │
│ google_chrome

Re: opsi-cli selects product groups for client actions

Verfasst: 25 Jun 2025, 16:09
von n.doerrer
Thank you for reporting this!
I assume in this special instance you have a host group and a product group that bear the same name 'it'. I improved the opsi-cli client-action command group to be robust against this. The fixed version is 4.3.24.2-1. I will publish it to experimental as soon as internal tests ran through.