Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.15] OCPBUGS-35894: Fix race to mark node Joined #859

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #823

/assign zaneb

zaneb added 2 commits June 21, 2024 02:11
If a host is in the Installed state already (which can occur when the
assisted-installer-controller sets the progress to Done), don't try to
set the progress to Joined as it will not only never succeed, but also
take 30+ minutes of unlogged retries inside the client before an error
is returned.

This narrows the window in which this can occur, but if the bootstrap
assisted-installer reads the Host before the
assisted-installer-controller updates the status, this could still
occur.

Ensure any failed requests are retried by not adding the Node to the
readyMasters list until the Progress has been set to either Joined or
Done (the latter triggers a change of Status to Installed).

Improve debugging by not logging different request_ids for messages
corresponding to a single request.
Since 4xx error codes indicate a problem on the client side, most of
them cannot be usefully retried at the HTTP transport level. e.g. if a
409 Conflict is returned in response to a PUT request, then we need to
fetch the resource again with a GET before creating a new PUT request.
Blocking for 30+ minutes in the original PUT call (without logging) is
not helpful; we want the transport to return immediately so we can try
again.

Retry on only those 4xx error codes where it is conceivable that trying
the same request again might work.
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-32105 has been cloned as Jira Issue OCPBUGS-35894. Will retitle bug to link to clone.
/retitle [release-4.15] OCPBUGS-35894: Fix race to mark node Joined

In response to this:

This is an automated cherry-pick of #823

/assign zaneb

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot changed the title [release-4.15] OCPBUGS-32105: Fix race to mark node Joined [release-4.15] OCPBUGS-35894: Fix race to mark node Joined Jun 21, 2024
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jun 21, 2024
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-35894, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.z) matches configured target version for branch (4.15.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-32105 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-32105 targets the "4.16.0" version, which is one of the valid target versions: 4.16.0
  • bug has dependents

Requesting review from QA contact:
/cc @mhanss

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This is an automated cherry-pick of #823

/assign zaneb

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from mhanss June 21, 2024 02:12
@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 21, 2024
@openshift-ci openshift-ci bot requested review from carbonin and paul-maidment June 21, 2024 02:12
@zaneb
Copy link
Member

zaneb commented Jun 21, 2024

/lgtm
/label backport-risk-assessed
/cherry-pick release-4.14

@openshift-cherrypick-robot
Copy link
Author

@zaneb: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you.

In response to this:

/lgtm
/label backport-risk-assessed
/cherry-pick release-4.14

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-sigs/prow repository.

@openshift-ci openshift-ci bot added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. lgtm Indicates that a PR is ready to be merged. labels Jun 21, 2024
@zaneb
Copy link
Member

zaneb commented Jun 21, 2024

/cc @tsorya

@openshift-ci openshift-ci bot requested a review from tsorya June 21, 2024 02:13
Copy link

openshift-ci bot commented Jun 21, 2024

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@tsorya
Copy link
Contributor

tsorya commented Jun 21, 2024

/approve

Copy link

openshift-ci bot commented Jun 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, tsorya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 21, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 1b61dd7 into openshift:release-4.15 Jun 21, 2024
3 checks passed
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-35894: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-35894 has been moved to the MODIFIED state.

In response to this:

This is an automated cherry-pick of #823

/assign zaneb

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-cherrypick-robot
Copy link
Author

@zaneb: new pull request created: #860

In response to this:

/lgtm
/label backport-risk-assessed
/cherry-pick release-4.14

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-sigs/prow repository.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-agent-installer-orchestrator-container-v4.15.0-202406211206.p0.g1b61dd7.assembly.stream.el8 for distgit ose-agent-installer-orchestrator.
All builds following this will include this PR.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-agent-installer-csr-approver-container-v4.15.0-202406211206.p0.g1b61dd7.assembly.stream.el8 for distgit ose-agent-installer-csr-approver.
All builds following this will include this PR.

@openshift-merge-robot
Copy link

Fix included in accepted release 4.15.0-0.nightly-2024-06-21-212553

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants