Open log1-c opened 1 year ago
@log1-c thanks for the issue. Expected behavior sounds reasonable to me.
Doesn't icingacli director health --check deployment
do exactly what you need?
Huh, it does :D don't know why I missed that until now...
Though I personally would favor a "real" timestamp instead of "x minutes ago" in the output as well as displaying the configs checksum like in the deployment log.
Expected Behavior
Running
icingacli director config deploymentstatus
returns that there currently is a failed deplyoment and exits with EXIT_CODE!=0Current Behavior
If you have a failed deployment (that possibly prevents reloading icinga or activating new config from a kickstart) the currently is no possibilty to check for said failed deployment (at least to my knowledge).
Possible Solution
Make the check return above expected behavior or e.g. add a parameter --failed to check for failed deployments since the last active deployment. Another possible solution could be monitoring automatic jobs for config deployment (if you have any). But this is not a viable way at the moment because you can't monitor/check only one jobs (see https://github.com/Icinga/icingaweb2-module-director/pull/2698 and https://github.com/Icinga/icingaweb2-module-director/issues/2740)
Your Environment
icinga2 --version
):2.14