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

🐛 ROSA: Fix version gate Ack for rosa hcp y-stream version upgrade #5166

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

serngawy
Copy link
Contributor

@serngawy serngawy commented Oct 17, 2024

What type of PR is this?
Bug

What this PR does / why we need it:
This PR approve the gate version acknowledgment for ROSA-HCP y-stream upgrade

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emojis
  • adds unit tests
  • adds or updates e2e tests

Release note:

Add versionGate Acknowledgement for upgrading ROSA-HCP y-stream versions

@k8s-ci-robot k8s-ci-robot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 17, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @serngawy. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 17, 2024
@serngawy
Copy link
Contributor Author

serngawy commented Oct 17, 2024

/cc @muraee @damdo please approve for test

@damdo
Copy link
Member

damdo commented Oct 17, 2024

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 17, 2024
@damdo damdo added the area/provider/rosa Issues or PRs related to Red Hat ROSA provider label Oct 18, 2024
@serngawy
Copy link
Contributor Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 18, 2024
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 21, 2024
@serngawy
Copy link
Contributor Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 21, 2024
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/assign @richardcase @muraee

/hold

Until e2e jobs on CI are fixed.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 22, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 22, 2024
@damdo
Copy link
Member

damdo commented Oct 22, 2024

@serngawy could you please add a Release Note in the description of the PR for this one? Thanks!

@damdo damdo added this to the v2.7.0 milestone Oct 22, 2024
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Oct 22, 2024
@jnpacker
Copy link

Can you confirm that we are introducing the user flow that we will always require an Acknowledgement, (unless AlwaysAcknowledge) is set, for all Y-Stream upgrades (that's what the code flow looks like to me. This is being done even though OCP may NOT require it. OCP 4.16 to 4.17 does not require an acknowledge.

@serngawy can you confirm this is also ROSA-HCP's use case, or are they aware of when to require the acknowledgement?

Copy link

@jnpacker jnpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix message, and question on whether this flow is now forced for all Y stream upgrades.

pkg/rosa/versions.go Outdated Show resolved Hide resolved
@serngawy
Copy link
Contributor Author

Can you confirm that we are introducing the user flow that we will always require an Acknowledgement, (unless AlwaysAcknowledge) is set, for all Y-Stream upgrades (that's what the code flow looks like to me. This is being done even though OCP may NOT require it. OCP 4.16 to 4.17 does not require an acknowledge.

@serngawy can you confirm this is also ROSA-HCP's use case, or are they aware of when to require the acknowledgement?

The code check first if there is an versionGate Acknowledge is required, if upgrading y-stream doesn't require Acknowledge the upgrade will proceed similar to z-stream upgrade.

The workflow is;
1- User set the version to upgrade (assuming the user not aware that acknowledgement is required)
2- The ROSA-HCP will return back with error message that an acknowledgement is required to proceed with upgrade.
3- The user set the versionGate to acknowledge
4- The upgrade will proceed
5- once the upgrade done the version gate will set back to waitForAcknowledge.

Copy link

@jnpacker jnpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got an explanation and a look at the code as to why ACK doesn't apply when not required.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 22, 2024
pkg/rosa/versions.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 23, 2024
@andreadecorte
Copy link

lgtm

Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 23, 2024
@damdo
Copy link
Member

damdo commented Oct 23, 2024

@nrb @richardcase any of you able to do an approver type review? TY

@nrb
Copy link
Contributor

nrb commented Oct 24, 2024

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nrb

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2024
@nrb
Copy link
Contributor

nrb commented Oct 24, 2024

CI's fixed.

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 24, 2024
@nrb
Copy link
Contributor

nrb commented Oct 24, 2024

/test pull-cluster-api-provider-aws-test

Failed due to CI account limits, not this code.

@k8s-ci-robot k8s-ci-robot merged commit fd0ad38 into kubernetes-sigs:main Oct 24, 2024
22 checks passed
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. area/provider/rosa Issues or PRs related to Red Hat ROSA provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants