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
We need to start doing testing of oc adm upgrade including a new MCO codebase.
Rolling out a new MCC may involve e.g. new configs being generated, which could start machine updates. If the MCD on a node is involved in trying to do that sync, it's going to be disruptive to have it be replaced by the MCO updating the MCD daemonset.
Offhand...I think if we're operating on an existing cluster, the operator should pause until the pools are idle, then roll out the MCD first?
what I'm seeing on oc adm upgrade is that the new operator is (ofc) the one being rolled out, do you mean we should pause the new operator until all old pools are idle?
At the moment it's dangerous to kill the MCD unless it's idle. We can and should harden things against that - there are small things we could do which would make it more reliable, but getting to "100% interruptable"...not easy.
Simplest thing I think is to enforce the property "if a pool is updating" then "ds/machine-config-daemon is complete".
do you mean we should pause the new operator until all old pools are idle?
So in this case yeah I think the new operator would come on and see the pools are active, and avoid rolling out the new MCD.
Maybe what we want is something like a Paused element in the controller config; the operator sets that when it detects it's upgrading, and the render controller would then stop generating new rendered MCs. That way we ensure progress
Another thing we should do that would be complementary is for the daemon to catch the SIGTERM for pod termination and if it's actively working, ignore it. And we can bump terminationGracePeriodSeconds.
Activity
[-]operator should hande MCD sync gracefully[/-][+]operator should handle MCD sync gracefully[/+]runcom commentedon Feb 22, 2019
what I'm seeing on
oc adm upgradeis that the new operator is (ofc) the one being rolled out, do you mean we should pause the new operator until all old pools are idle?cgwalters commentedon Feb 22, 2019
At the moment it's dangerous to kill the MCD unless it's idle. We can and should harden things against that - there are small things we could do which would make it more reliable, but getting to "100% interruptable"...not easy.
Simplest thing I think is to enforce the property "if a pool is updating" then "ds/machine-config-daemon is complete".
So in this case yeah I think the new operator would come on and see the pools are active, and avoid rolling out the new MCD.
Maybe what we want is something like a
Pausedelement in the controller config; the operator sets that when it detects it's upgrading, and the render controller would then stop generating new rendered MCs. That way we ensure progressAnother thing we should do that would be complementary is for the daemon to catch the
SIGTERMfor pod termination and if it's actively working, ignore it. And we can bumpterminationGracePeriodSeconds.runcom commentedon Mar 13, 2019
can this be closed due to #477
runcom commentedon Mar 15, 2019
as discussed during sync, we feel #477 cover pretty much this, closing, feel free to reopen if you feel otherwise
daemon: Catch SIGTERM and ignore it if we're doing an update