Bug #2015
closed
On the homepage "There are 1 configuration rules applied" displayed but on the Configuration Rules Menu, there is no CR
Added by Nicolas PERRON almost 13 years ago.
Updated over 12 years ago.
Category:
Web - Config management
Description
There is one LDAP entry about the CR.
Files
In /var/log/rudder/webapps/2011_11_09.stderrout.log appears:
[qtp2015322662-66] WARN c.n.r.w.c.ConfigurationRuleGrid - Error when fetching details for configuration rule ZMD on SLES10 ConfigurationRuleId(1d1b7db7-9636-453d-8059-0fe5b1863bbe), remove it from the list of configuration rules <- Can not find Policy Instance with ID PolicyInstanceId(3fa24049-e673-475d-90ec-e5f9b6b81e38) referenced in configuration rule with ID ConfigurationRuleId(1d1b7db7-9636-453d-8059-0fe5b1863bbe) <- Can not find Policy Instance with id PolicyInstanceId(3fa24049-e673-475d-90ec-e5f9b6b81e38)
- Status changed from New to Discussion
- Assignee deleted (
François ARMAND)
Hiding CR configured with an incorrect PI seems to be a bad idea (it was done so when we tried to make more robust CR deployment facing unexpected behaviour.
So, what is the good thing to do ? Have a log message + disactivate the CR (it seems to be the bare minimum). Remove the inexisting PI ? We can't know anything about the PI, we just know it's ID and has the PI is missing, we are not able to find what PT it was derived from, etc).
Any more ideas ?
- Category set to Web - Config management
- Status changed from Discussion to 2
- Assignee set to François ARMAND
I think we should display the CR if it's there, hiding broken things is a bad idea, IMO.
Ideally, we should display it in the table of CRs but put in the "PI" column something like "Policy Instance not found!", and make the effective status "disabled".
- Priority changed from 1 to 3
- Status changed from 2 to In progress
- Status changed from In progress to Pending technical review
- % Done changed from 0 to 100
Now, configuration rules with errors are displayed in the configuration rule grid as follow:
![How configuration rule with errors are displayed How configuration rule with errors are displayed](/attachments/download/382/cr_with_errors.png)
You can see the detail of a cr in error and change the part in error to repair the cr.
A configuration rule in error is disabled and will have to be re-enabled after being repaired.
- Status changed from Pending technical review to Released
Also available in: Atom
PDF