opsi-cli selects product groups for client actions

Antworten
malte.gerth
Beiträge: 6
Registriert: 29 Mai 2025, 22:15

opsi-cli selects product groups for client actions

Beitrag 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
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 409
Registriert: 23 Okt 2020, 16:11

Re: opsi-cli selects product groups for client actions

Beitrag 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.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten