Repository navigation
[release-4.1] Bug 1723327: sync deployment before controllerconfig, roll out MCDs before MCC and remove pivot's reboot-needed file - #892
Conversation
An osimageurl change from an upgrade can race with the old MCC. This patch makes sure we roll out the new MCC before applying the new osimageurl ConfigMap that is then templated by the new MCC.
We can still be running the old MCDs on nodes once the new MCC creates the new rendered so fix that by rolling out the MCDs first and then the new MCC.
If the node has never rebooted and ConditionFirstBoot is thus True, pivot reboots the node causing an upgrade failure The reboot-needed file controls that but we want the MCD to be the only in charge of reboots so always remove it when running pivot from the MCDs.
if we're inDesiredConfig but Degraded it means we failed somehow the very first actions (i.e. 404 on the rendered MC). But if we're in Desired config there's no reason NOT to set Done when everything reconciles back to current == desired.
|
@runcom: This pull request references a valid Bugzilla bug. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@runcom: This pull request references a valid Bugzilla bug. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, 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 |
/retest |
|
I don't see a 4.2 bug associated with the master PR nor do I see any unit/integration/e2e tests proving the master (or this) PR is safe. Hopefully either we can get a 4.2 BZ VERIFIED by review time next week or we can get some CI tests to do that job. |
we might have a way to test this (bootimage == oscontainer) - I'll test with that somehow so we have a reproducer and a way to verify this as well. |
|
I guess one way to reproduce is to bring up a cluster (even aws), then touch |
|
created a 4.2 BZ https://bugzilla.redhat.com/show_bug.cgi?id=1724155 - we can hopefully get that verified soonish and backport this as per Eric's comment |
|
ok, was able to verify that we rm -rf that file before starting a pivot with latest master (collecting steps for QE as well) - I also need a valid oscontainer to upgrade/downgrade to to fully verify this. |
|
ok, provided steps to verify in the 4.1 and 4.2 BZ - also provided steps to workaround this issue in 4.1 clusters |
|
@eparis the 4.2 BZ has been VERIFIED and I've provided steps to reproduce for 4.1 as well when we get this in. |
Backport of #887
There's a simple reproducer for this but requires "bootimage == target oscontainer" to avoid an early pivot + reboot. Basically, at least on UPI, install 4.1.0 and upgrade to whatever this PR lands to (4.1.4?).