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
{{ message }}
Repository navigation
MachineConfigs can be garbage collected while a node is still booting #301
You can see that this caused very fast churn in the machineconfigs, and the previous ones were GCd. But - there were secondary masters that were still booting and expecting to be able to find that MC.
This is a tricky problem - we need to have a way to avoid pruning "in flight" MCs passed from the MCC to Ignition.
This problem is actually fairly new (as of basically since Friday) because of the near-simultaneous addition of -ssh and -kubelet MCs which causes MC regeneration churn immediately on cluster bringup, and I'm currently going to add another.
As a data point, the -ssh mc was added last Monday, so any idea why you saw the issues begin on Friday? I also haven't see any MC race symptoms running on AWS.
So, just to do a brain dump on this. I'm still trying to reproduce this locally. It doesn't trigger at least when I manually create MCs in rapid succession (this is with #303 reverted). One thing that caught my eye though is that there is no code today that actually deletes MachineConfigs, right?
The render controller does try to remove the pool ownerReference from previously generated MachineConfigs (that actually doesn't work right now; working on a patch to fix that), but even so, deleting the ownerRef doesn't automatically delete the object, it just orphans them (which is actually an issue; we need to figure out garbage collection).
The render controller does try to remove the pool ownerReference from previously generated MachineConfigs (that actually doesn't work right now; working on a patch to fix that),
Something in that CI run was pruning MCs though.
it just orphans them (which is actually an issue; we need to figure out garbage collection).
MCD's from being scheduled on the workers until MC's are generated and available via the MCS.
It's the inverse a bit of that right? We want to wait for ds/machine-config-daemon to be fully rolled out (and hence the MCD on each node has fetched its config) and then unpause the pools, no?
EDIT: To clarify though I like this idea of keying off the MCD status.
And based on the discussion so far we shouldn't merge #318 right? Because it would make this worse (assuming the patch works and I would believe it does).
It definitely works. :)
Though I'd agree we shouldn't merge it until we have a better understanding of what's going on.
Some work on "operator pause" here #329 - WIP, not really tested (since I'd have to make a custom release payload to do that sanely); going to hope CI runs it and see.
OK I think I'm finally understanding this. No MCs are being GC'd. The problem is until the osimage work, we were relying on the fact that the MC generated by the bootstrap was exactly the same as the MC initially generated in the cluster. So we either need to render the osimageurl during bootstrap (probably best) or also render the base template MC without the osimageurl too (would seem fine).
If I'm correct about this and one of those fixes works, this issue would then turn to the other problem of when we GC MCs.
OK I think I'm finally understanding this. No MCs are being GC'd. The problem is until the osimage work, we were relying on the fact that the MC generated by the bootstrap was exactly the same as the MC initially generated in the cluster. So we either need to render the osimageurl during bootstrap (probably best) or also render the base template MC without the osimageurl too (would seem fine).
👍 yes! The original architecture passed to us was that the MC from bootstrap would end up being the same. This can't ALWAYS be counted on since it's possible someone may use an old MC when installing a new cluster, but, in those cases, the extra reboot and pivot to the updated MC would be expected and fine.
Activity
cgwalters commentedon Jan 14, 2019
This problem is actually fairly new (as of basically since Friday) because of the near-simultaneous addition of
-sshand-kubeletMCs which causes MC regeneration churn immediately on cluster bringup, and I'm currently going to add another.ashcrow commentedon Jan 14, 2019
/kind bug
kikisdeliveryservice commentedon Jan 14, 2019
As a data point, the
-sshmc was added last Monday, so any idea why you saw the issues begin on Friday? I also haven't see any MC race symptoms running on AWS.cgwalters commentedon Jan 15, 2019
Sorry, I was wrong. It's likely the
-kubeletone on top of the-ssh- but both are pretty recent.controller: Add a 5s delay before rendering MCs
jlebon commentedon Jan 15, 2019
Hmm, wonder if it'd work to add another owner reference from the MCD on the MC before handling it. Let me look into that.
jlebon commentedon Jan 16, 2019
So, just to do a brain dump on this. I'm still trying to reproduce this locally. It doesn't trigger at least when I manually create MCs in rapid succession (this is with #303 reverted). One thing that caught my eye though is that there is no code today that actually deletes MachineConfigs, right?
The render controller does try to remove the pool ownerReference from previously generated MachineConfigs (that actually doesn't work right now; working on a patch to fix that), but even so, deleting the ownerRef doesn't automatically delete the object, it just orphans them (which is actually an issue; we need to figure out garbage collection).
cgwalters commentedon Jan 16, 2019
Something in that CI run was pruning MCs though.
Doesn't Kube itself do the GC https://blog.openshift.com/garbage-collection-custom-resources-available-kubernetes-1-8/ ?
We should indeed figure this issue out better but it's not in the blocking path right now I'd say.
ashcrow commentedon Jan 16, 2019
Agreed
23 remaining items
kikisdeliveryservice commentedon Jan 18, 2019
I thought that we had said that the 1 hour part didn't really work?
cgwalters commentedon Jan 18, 2019
It's the inverse a bit of that right? We want to wait for
ds/machine-config-daemonto be fully rolled out (and hence the MCD on each node has fetched its config) and then unpause the pools, no?EDIT: To clarify though I like this idea of keying off the MCD status.
jlebon commentedon Jan 18, 2019
It definitely works. :)
Though I'd agree we shouldn't merge it until we have a better understanding of what's going on.
cgwalters commentedon Jan 18, 2019
Some work on "operator pause" here #329 - WIP, not really tested (since I'd have to make a custom release payload to do that sanely); going to hope CI runs it and see.
cgwalters commentedon Jan 19, 2019
OK I think I'm finally understanding this. No MCs are being GC'd. The problem is until the osimage work, we were relying on the fact that the MC generated by the bootstrap was exactly the same as the MC initially generated in the cluster. So we either need to render the osimageurl during bootstrap (probably best) or also render the base template MC without the osimageurl too (would seem fine).
If I'm correct about this and one of those fixes works, this issue would then turn to the other problem of when we GC MCs.
ashcrow commentedon Jan 21, 2019
👍 yes! The original architecture passed to us was that the MC from bootstrap would end up being the same. This can't ALWAYS be counted on since it's possible someone may use an old MC when installing a new cluster, but, in those cases, the extra reboot and pivot to the updated MC would be expected and fine.
I'm good with either or both of the above.
test/e2e: Validate that no nodes went degraded
cgwalters commentedon Feb 1, 2019
Closing in favor of #354
since there wasn't actually any GC #301 (comment)
test/e2e: Validate that no nodes went degraded
Merge pull request openshift#301 from gabemontero/dockerfile-ocp-version
controller: Add a 5s delay before rendering MCs
daemon: skip querying currentConfig if possible