You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a failed attempt to create some Object via the Icinga 2 API due to a validation exception, the chosen Object name is blocked and Icinga 2 aborts further attempts as they are re-creations. Please take a look at the To Reproduce section below, which should make it more obvious.
I stumbled about this issue while debugging changes for #10102, where I wanted to verify my Validate methods via the Icinga 2 API.
To Reproduce
To make sure that this has nothing to do with my code, my example uses TimePeriod and its validation method.
Operating System and version: NixOS "it's complicated"
Enabled features (icinga2 feature list): api checker icingadb ido-mysql ido-pgsql notification
Icinga Web 2 version and modules (System - About): N/A
Config validation (icinga2 daemon -C): ☑️
If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
After a failed attempt to create some Object via the Icinga 2 API due to a validation exception, the chosen Object name is blocked and Icinga 2 aborts further attempts as they are re-creations. Please take a look at the To Reproduce section below, which should make it more obvious.
I stumbled about this issue while debugging changes for #10102, where I wanted to verify my Validate methods via the Icinga 2 API.
To Reproduce
To make sure that this has nothing to do with my code, my example uses
TimePeriod
and its validation method.icinga2/lib/icinga/timeperiod.cpp
Line 373 in e678f09
TimePeriod
Object named "oops" with invalidranges
values, resulting inTimePeriod::ValidateRanges
to throw an exception.TimePeriod
Object named "oops":TimePeriod
:TimePeriod
:On further inspection, the referenced file in the re-definition error does not exist. There is even no mention of such an object.
Btw, I am also unable to delete it via the API:
A specter is haunting Icinga 2 - the specter of
TimePeriod
.Expected behavior
If Icinga 2 states that an "Object could not be created", one should be able to retry with the same name.
Screenshots
N/A
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): Icinga DB: Config no_user_modify, Extract ValidateCertPath, and Support Redis username authentication #10102 which is a bit ahead ofmaster
icinga2 feature list
): api checker icingadb ido-mysql ido-pgsql notificationicinga2 daemon -C
): ☑️zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.Additional context
N/A
The text was updated successfully, but these errors were encountered: