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

🌱 Add PreCleanupManagementCluster hook to clusterctl upgrade test #7373

Conversation

mboukhalfa
Copy link
Member

What this PR does / why we need it:
Add hook before cleaning the target management cluster from bootstrap in clusterctl_upgrade.go
This might be needed to run extra steps from certain providers such as moving conflicting services (e.g. DHCP) from target management to bootstrap in the case clusters share the same management LAN.
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 #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 7, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @mboukhalfa. 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/test-infra 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 7, 2022
@oscr
Copy link
Contributor

oscr commented Oct 7, 2022

/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 7, 2022
@mboukhalfa
Copy link
Member Author

/cherry-pick release-1.2

@k8s-infra-cherrypick-robot

@mboukhalfa: only kubernetes-sigs org members may request cherry-picks. You can still do the cherry-pick manually.

In response to this:

/cherry-pick release-1.2

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.

@sbueringer
Copy link
Member

/cherry-pick release-1.2

@k8s-infra-cherrypick-robot

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

In response to this:

/cherry-pick release-1.2

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.

@mboukhalfa mboukhalfa force-pushed the Add-Pre-cluster-cleaning-hook/mohammed branch from 45b1b87 to 296072f Compare October 10, 2022 10:05
@mboukhalfa mboukhalfa changed the title 🌱 Add PreCleanManagement hook to clusterctl_upgrade 🌱 Add PreCleanupManagementCluster hook to clusterctl_upgrade Oct 10, 2022
@mboukhalfa mboukhalfa force-pushed the Add-Pre-cluster-cleaning-hook/mohammed branch from 296072f to de6dee0 Compare October 10, 2022 10:26
@sbueringer
Copy link
Member

/lgtm

/assign @fabriziopandini

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

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

I don't have any issue in getting this merged, but it seems to me that for some providers it will be easier to write their own clusterctl upgrade test without using nested management clusters as we do in main Cluster API / with CAPD.

Have you considered this (it will probably also speed up test duration, at the cost of requiring a dedicated job for the test)

@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 10, 2022
@mboukhalfa
Copy link
Member Author

/lgtm /approve

I don't have any issue in getting this merged, but it seems to me that for some providers it will be easier to write their own clusterctl upgrade test without using nested management clusters as we do in main Cluster API / with CAPD.

Have you considered this (it will probably also speed up test duration, at the cost of requiring a dedicated job for the test)

Currently metla3 is spinning up bootstrap cluster with an old version and then creates a target cluster with the same version after that it upgrades both to the latest which introduced some complexity I think reusing capi test would be simpler and more reliable to test the target management with checking workload scale up instead of upgrading only the bootstrap or duplicating the same code with some customization.

@mboukhalfa
Copy link
Member Author

/check-cla

@sbueringer sbueringer changed the title 🌱 Add PreCleanupManagementCluster hook to clusterctl_upgrade 🌱 Add PreCleanupManagementCluster hook to clusterctl upgrade test Oct 11, 2022
@sbueringer
Copy link
Member

Hm not sure what's going on with EasyCLA and how to re-trigger it. Maybe a git commit --amend + push --force without changes to force it?

@mboukhalfa mboukhalfa force-pushed the Add-Pre-cluster-cleaning-hook/mohammed branch from de6dee0 to 976c6ce Compare October 11, 2022 11:13
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2022
@sbueringer
Copy link
Member

Thx!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini, sbueringer

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:
  • OWNERS [fabriziopandini,sbueringer]

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

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #7388

In response to this:

/cherry-pick release-1.2

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.

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. 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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