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

OCPBUGS-32980: [release-4.14]:fix extra-reboot on upgrade with paused mcp worker #1053

Merged

Conversation

vitus133
Copy link
Contributor

@vitus133 vitus133 commented May 7, 2024

This PR fixes an extra-reboot when upgrading OpenShift with paused MCP "worker", for example during EUS-to-EUS upgrade. The extra-reboot occurred because PerformanceProfile controller was reconciling against rendered MC appearing in the MCP status. While this MC reflects current MCP conditions, it does not reflect the latest planned state when the MCP is paused.
Unpausing the MCP lead to one reboot when applying the target MC, and one additional reboot after the performance profile was reconciled against it.
This change eliminates this additional reboot because PerformanceProfile is now reconciling against the latest planned MC before the MCP is unpaused.
This is a manual cherry-pick from #1049
/cc @MarSik @yanirq

This PR fixes an extra-reboot when upgrading OpenShift with paused
MCP "worker", for example during EUS-to-EUS upgrade. The extra-reboot
occurred because PerformanceProfile controller was reconciling against
rendered MC appearing in the MCP status. While this MC reflects current
MCP conditions, it does not reflect the latest planned state when the
MCP is paused.
Unpausing the MCP lead to one reboot when applying the target MC, and
one additional reboot after the performance profile was reconciled
against it.
This change eliminates this additional reboot because PerformanceProfile
is now reconciling against the latest planned MC before the MCP is
unpaused

Signed-off-by: Vitaly Grinberg <v.g@redhat.com>
@openshift-ci openshift-ci bot requested review from MarSik and yanirq May 7, 2024 05:49
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 7, 2024
@openshift-ci-robot
Copy link
Contributor

@vitus133: This pull request references Jira Issue OCPBUGS-32980, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required"
  • expected dependent Jira Issue OCPBUGS-32978 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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

In response to this:

This PR fixes an extra-reboot when upgrading OpenShift with paused MCP "worker", for example during EUS-to-EUS upgrade. The extra-reboot occurred because PerformanceProfile controller was reconciling against rendered MC appearing in the MCP status. While this MC reflects current MCP conditions, it does not reflect the latest planned state when the MCP is paused.
Unpausing the MCP lead to one reboot when applying the target MC, and one additional reboot after the performance profile was reconciled against it.
This change eliminates this additional reboot because PerformanceProfile is now reconciling against the latest planned MC before the MCP is unpaused.
This is a manual cherry-pick from #1049
/cc @MarSik @yanirq

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-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label May 7, 2024
@vitus133 vitus133 changed the title OCPBUGS-32980: fix extra-reboot on upgrade with paused mcp worker OCPBUGS-32980: [release-4.14]:fix extra-reboot on upgrade with paused mcp worker May 7, 2024
@vitus133
Copy link
Contributor Author

vitus133 commented May 7, 2024

/cc @mrniranjan

@openshift-ci openshift-ci bot requested a review from mrniranjan May 7, 2024 05:51
@vitus133
Copy link
Contributor Author

vitus133 commented May 7, 2024

/test e2e-upgrade

@mrniranjan
Copy link
Contributor

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@mrniranjan: This pull request references Jira Issue OCPBUGS-32980, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required"

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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

In response to this:

/jira refresh

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.

@yanirq
Copy link
Contributor

yanirq commented May 8, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels May 8, 2024
@openshift-ci-robot
Copy link
Contributor

@yanirq: This pull request references Jira Issue OCPBUGS-32980, 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.14.z) matches configured target version for branch (4.14.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-32978 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-32978 targets the "4.15.z" version, which is one of the valid target versions: 4.15.0, 4.15.z
  • bug has dependents

Requesting review from QA contact:
/cc @mrniranjan

In response to this:

/jira refresh

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.

@yanirq
Copy link
Contributor

yanirq commented May 8, 2024

/approve
/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label May 8, 2024
Copy link
Contributor

openshift-ci bot commented May 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vitus133, yanirq

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 May 8, 2024
@yanirq
Copy link
Contributor

yanirq commented May 8, 2024

/cc @mrniranjan

@mrniranjan
Copy link
Contributor

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label May 8, 2024
@vitus133
Copy link
Contributor Author

vitus133 commented May 8, 2024

/test e2e-upgrade

1 similar comment
@mrniranjan
Copy link
Contributor

/test e2e-upgrade

Copy link
Contributor

openshift-ci bot commented May 8, 2024

@vitus133: 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/test-infra repository. I understand the commands that are listed here.

@yanirq
Copy link
Contributor

yanirq commented May 8, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 8, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit d969426 into openshift:release-4.14 May 8, 2024
13 checks passed
@openshift-ci-robot
Copy link
Contributor

@vitus133: Jira Issue OCPBUGS-32980: All pull requests linked via external trackers have merged:

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

In response to this:

This PR fixes an extra-reboot when upgrading OpenShift with paused MCP "worker", for example during EUS-to-EUS upgrade. The extra-reboot occurred because PerformanceProfile controller was reconciling against rendered MC appearing in the MCP status. While this MC reflects current MCP conditions, it does not reflect the latest planned state when the MCP is paused.
Unpausing the MCP lead to one reboot when applying the target MC, and one additional reboot after the performance profile was reconciled against it.
This change eliminates this additional reboot because PerformanceProfile is now reconciling against the latest planned MC before the MCP is unpaused.
This is a manual cherry-pick from #1049
/cc @MarSik @yanirq

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-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build cluster-node-tuning-operator-container-v4.14.0-202405081737.p0.gd969426.assembly.stream.el9 for distgit cluster-node-tuning-operator.
All builds following this will include this PR.

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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants