Skip to content

[release-4.1] Bug 1723327: sync deployment before controllerconfig, roll out MCDs before MCC and remove pivot's reboot-needed file - #892

Merged
openshift-merge-robot merged 4 commits into
openshift:release-4.1from
runcom:syncs-backports
Jul 1, 2019
Merged

openshift-merge-robot merged 4 commits into
openshift:release-4.1from
runcom:syncs-backports

Conversation

@runcom

@runcom runcom commented Jun 25, 2019 •

Copy link
Copy Markdown
Member

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?).

runcom added 4 commits June 25, 2019 16:43
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.
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jun 25, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@runcom: This pull request references a valid Bugzilla bug.

Details

In response to this:

[release-4.1] Bug 1723327: sync deployment before controllerconfig, roll out MCDs before MCC and remove pivot's reboot-needed file

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.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 25, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@runcom: This pull request references a valid Bugzilla bug.

Details

In response to this:

[release-4.1] Bug 1723327: sync deployment before controllerconfig, roll out MCDs before MCC and remove pivot's reboot-needed file

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.

@cgwalters

Copy link
Copy Markdown
Member

/approve

@cgwalters

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@runcom

runcom commented Jun 25, 2019

Copy link
Copy Markdown
Member Author
{"component":"entrypoint","file":"prow/entrypoint/run.go:163","func":"k8s.io/test-infra/prow/entrypoint.Options.ExecuteProcess","level":"error","msg":"Entrypoint received interrupt: terminated","time":"2019-06-25T15:46:08Z"}

/retest

@eparis

eparis commented Jun 25, 2019

Copy link
Copy Markdown
Member

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.

@runcom

runcom commented Jun 26, 2019

Copy link
Copy Markdown
Member Author

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.

@runcom

runcom commented Jun 26, 2019 •

Copy link
Copy Markdown
Member Author

I guess one way to reproduce is to bring up a cluster (even aws), then touch /run/pivot/reboot-needed on every nodes, then start an upgrade to a payload that upgrades the os as well and watch it failing (this is the failure case). To verify this, same process but the payload to upgrade to also needs to contain this PR. I'm gonna try this out but I'm unsure on how to grab a payload which contains an os update as well we can basically set an override to any oscontainer (upgrade or downgrade)

@runcom

runcom commented Jun 26, 2019

Copy link
Copy Markdown
Member Author

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

@runcom

runcom commented Jun 26, 2019

Copy link
Copy Markdown
Member Author

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.
Still looking for a failing case to triple check this one.

@runcom

runcom commented Jun 26, 2019

Copy link
Copy Markdown
Member Author

ok, provided steps to verify in the 4.1 and 4.2 BZ - also provided steps to workaround this issue in 4.1 clusters

@runcom

runcom commented Jun 27, 2019

Copy link
Copy Markdown
Member Author

@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.

@jwforres jwforres added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jul 1, 2019
@openshift-merge-robot
openshift-merge-robot merged commit 84b28f4 into openshift:release-4.1 Jul 1, 2019
@runcom
runcom deleted the syncs-backports branch July 1, 2019 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants