Repository navigation
Bug 1699134: pkg/daemon: add reason annotation key for degraded/unreconcilable and bubble up errors from render controller - #597
Conversation
cgwalters
left a comment
There was a problem hiding this comment.
At least in the case where there's only 1 unavailable node, we may want to also change the operator to roll this up into its status?
But doesn't need to be done in this PR. Just one issue I see.
I thought about this and maybe we just need a Failing status in the MCP itself telling the most recent failures if we MCD keeps failing (and that can be then bubbled up to the operator itself) |
|
WIP cause I'm reworking this one to take into account https://bugzilla.redhat.com/show_bug.cgi?id=1699134 (which is gonna be simpler to fix in this PR with the changes being implemented here) TODO for myself: 1) change title of this + 2) fix commit message describing everything I did here /hold |
7c8e5dc to
eb74ae6
Compare
|
@cgwalters @kikisdeliveryservice @LorbusChris ptal at this (last BZ for 4.1).
|
adc2dd7 to
1567469
Compare
| continue | ||
| } | ||
|
|
||
| if dconfig == currentConfig && |
|
did adding the new test cause the timeout? looking |
yeah, cause I'm not clearing the Degraded=True which is basically node_controller stomping on template_controller for who sets that - I'm trying to figure that out |
gotcha! tho looking at the numbers we are starting to get close to the max time anyway (your test only ran for 5 minutes), so we'll likely have to extend timeout in the near future (since we have that one test that takes 36 minutes) |
yup 👍 Anyway, so we do have this issue now: NodeController wants to set/clear Degraded There seems to be no good solution to each of them stomping on each other and flipping status is a no-go anyway. One solution I see is letting NodeController manage the MCP anyway but that requires the RenderController a CRD-like-ControllerConfig where it can report that it failed to render. If it failed to render, the NodeController would check that CRD to see if it needs to set/clear out Degraded on MCP. WDYT? (we also need to make sure landing something like this doesn't break upgrade after declaring api freeze as I don't believe we can break anything adding fields/crd anyway) |
|
@runcom if the state is unreconcilable it is also degraded? |
yeah, unreconcilable is a subset of degraded cause it's something in the config. Degraded is when things fail in a general way (transient errors as well) |
|
if unreconcilable is a subset of degraded but now degraded has a reason, is there a point to unreconcilable? i thought that the idea of having both was to have them be independent error/failure states esp since we had no way of knowing why something had been previously degraded and to avoid something small (like a small MC issue) causing a node to degrade since it was overkill? |
|
Lengthy talked with Abhinav who helped me figuring this out, I'm pushing out a change shortly but basically:
|
I think that this makes sense. |
clarity between "something in kube fails" vs "something in the MC you provided" fails
Oh yeah, I'm still on board with that, but we're not yet on "MC issue -> no degrade", that's a long term aim that we need to tackle |
|
/lgtm |
There was a problem hiding this comment.
This could just be } else { though if you end up respinning.
This is going to allow us to report a final Degraded condition (in NodeController today but it might go away in the future) for a given MCP so we can bubble all of this up to the Operator (and flip it to failing if the pool is the master pool).
|
/lgtm |
|
/LGTM |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, kikisdeliveryservice, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Bug 1699134: pkg/daemon: add reason annotation key for degraded/unreconcilable and bubble up errors from render controller
Signed-off-by: Antonio Murdaca [email protected]
- What I did
Close #234
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1699134
Added a new Reason annotation key set to the specific error we get when failing to reconcile + reintroduced degraded from runcom@e753f10#diff-3bd49282ca65e5525da44a27caaa55c7L80 + bubbling up errors from pool
- How to verify it
added a check in one of the e2e
- Description for the changelog