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

Bug 2087042: Rebase cloud-provider-azure 22.06.2022 #32

Merged
merged 119 commits into from Jun 23, 2022

Conversation

lobziik
Copy link

@lobziik lobziik commented Jun 22, 2022

This commit rebases the cloud-provider-azure openshift patches on top of the kubernetes-sigs/cloud-provider-azure master branch after 1.24.2 release.
There are several commits that we carry on top of the upstream azure-cloud-provider and the rebase process allows us to preserve those. Here is a description of the process I used to create this PR.

(replicated @elmiko's process within openshift/kubernetes-autoscaler)

Process

First we need to identify the carry commits that we currently have, this is done against our previous rebase (or fork in this case) to catch new changes. Once identified we will drop commits which have merged upstream and only carry unique commits. (see below for the carried and dropped commits).

Identify carry commits:

git log --oneline --no-merges 303f6ddce98eb78d9858ae17abee46f67a08135f..openshift/master

where 303f6d is the last upstream commit in our fork. This is the
list of commits we will need to apply onto the new upstream version of the
cloud-provider-azure. ideally, some of these commits can be dropped.

After identifying the carry commits, the next step is to create the new commit-tree that will be used for the rebase and then cherry pick the carry commits into the new branch. The following commands cover these steps:

$ git remote update # make sure we update our refs
$ git checkout 2888dc7a4be361cc6e45d92ab5ce8478b7fa3b2a # master HEAD after 1.24.2 release
$ git checkout -b merge-tmp # create a temporary branch for our merge commit
$ git checkout openshift/master # we want to be at the tip of the openshift master branch when we run the next command
$ echo 'merge kubernetes-sigs/azure-cloud-provider 22-07-2021' | git commit-tree merge-tmp^{tree} -p HEAD -p merge-tmp -F - # create a new merge commit for our history
9cbc9d4aaf6069b641ed9a10dbfc135affedec9d # id of new merge commit
$ git branch merge-22-06-2022 9cbc9d4aaf6069b641ed9a10dbfc135affedec9d # create a new branch for the cherry-pick work
$ git checkout merge-22-06-2022
$ git cherry-pick <carry commits> # cherry pick the needed commits into the new branch

With the merge-22-06-2022 branch in place, I cherry picked the carry commits which we should carry.

Carried Commits

These commits are integral to our CI platform, or are specific to the releases we create for OpenShift.

e56be7 UPSTREAM: <carry>: set GOARCH appropriately
53c43db UPSTREAM: <carry>: update to golang 1.17, sync cloud-node-manager and cloud-controller-manager with latest OCP release
e72384 UPSTREAM: <carry>: add dockerfiles for openshift builds, openshift specific makefile extension, openshift specific hack scripts
70dc69 UPSTREAM: <carry>: delete .github directory
e99493 UPSTREAM: <carry>: Update OWNERS file

Note: github dir removal commit was reordered with

Changed Commits

  1. All commits related to OWNERS file was squashed into e99493 UPSTREAM: <carry>: Update OWNERS file

  2. 8a35d2 UPSTREAM: <carry>: Fix "verify" job cloud-team-rebase-bot was squashed into e72384 UPSTREAM: <carry>: add dockerfiles for openshift builds, openshift specific makefile extension, openshift specific hack scripts

  3. 70dc69 UPSTREAM: <carry>: delete .github directory was extended with deletion of newly appeared files

  4. ART commits and golang update was squashed into one commit 53c43db

Dropped Commits

f804be UPSTREAM: <carry>: update to golang 1.17
a0285d UPSTREAM: <carry>: Updating ose-azure-cloud-node-manager images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/3dea8426481b269476342fc0a631273f32ce691e/images/ose-azure-cloud-node-manager.yml
5b3462 UPSTREAM: <carry>: Updating ose-azure-cloud-controller-manager images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/3dea8426481b269476342fc0a631273f32ce691e/images/ose-azure-cloud-controller-manager.yml
8a35d2 UPSTREAM: <carry>: Fix "verify" job
bf9a4c UPSTREAM: <carry>: Update owners file 
3fa1ff UPSTREAM: <carry>: Add component info to the OWNERS 
dd6437 UPSTREAM: <carry>: Remove upsteam approvers and reviewers 
6e279c UPSTREAM: <carry>: Add approvers 
4c6c3d UPSTREAM: <carry>: Add component info to the OWNERS file 
129f0a Remove upsteam approvers and reviewers 
dd13fa Add approvers 

jwtty and others added 30 commits March 25, 2022 04:19
Bug: Even "api-version" in decorator is passed to the request, the
c.apiVersion (set in New()) will be preferred.

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
Bumps [k8s.io/kubelet](https://github.com/kubernetes/kubelet) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/kubernetes/kubelet/releases)
- [Commits](kubernetes/kubelet@v0.24.0...v0.24.1)

---
updated-dependencies:
- dependency-name: k8s.io/kubelet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
add empty value check

fix

fix year
…ot/go_modules/k8s.io/kubelet-0.24.1

chore(deps): bump k8s.io/kubelet from 0.24.0 to 0.24.1
feat: add blobclient for blob container operations
Bumps [k8s.io/controller-manager](https://github.com/kubernetes/controller-manager) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/kubernetes/controller-manager/releases)
- [Commits](kubernetes/controller-manager@v0.24.0...v0.24.1)

---
updated-dependencies:
- dependency-name: k8s.io/controller-manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
* Support VMSS for test: should add all nodes in different agent pools to
  backends
* Support scaling MachinePool for VMSS scaling tests

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
Then CCM Pods should be distributed to control plane Nodes evenly.

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
…-topology

CCM deployment uses topologySpreadConstraints
…mplate

Provide single and multiple vmss templates
…ot/go_modules/k8s.io/controller-manager-0.24.1

chore(deps): bump k8s.io/controller-manager from 0.24.0 to 0.24.1
Bumps [k8s.io/component-helpers](https://github.com/kubernetes/component-helpers) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/kubernetes/component-helpers/releases)
- [Commits](kubernetes/component-helpers@v0.24.0...v0.24.1)

---
updated-dependencies:
- dependency-name: k8s.io/component-helpers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ot/go_modules/k8s.io/component-helpers-0.24.1

chore(deps): bump k8s.io/component-helpers from 0.24.0 to 0.24.1
Bumps [k8s.io/cloud-provider](https://github.com/kubernetes/cloud-provider) from 0.24.0 to 0.24.1.
- [Release notes](https://github.com/kubernetes/cloud-provider/releases)
- [Commits](kubernetes/cloud-provider@v0.24.0...v0.24.1)

---
updated-dependencies:
- dependency-name: k8s.io/cloud-provider
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ot/go_modules/k8s.io/cloud-provider-0.24.1

chore(deps): bump k8s.io/cloud-provider from 0.24.0 to 0.24.1
Bumps golang from 1.18.2-buster to 1.18.3-buster.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.7.1...v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…-templates

Support ci-version templates for CAPZ jobs
…ot/go_modules/github.com/stretchr/testify-1.7.2

chore(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2
…-panic

fix: panic when create private endpoint using azurefile NFS
…ot/docker/golang-1.18.3-buster

chore(deps): bump golang from 1.18.2-buster to 1.18.3-buster
@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jun 22, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@lobziik: This pull request references Bugzilla bug 2087042, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

In response to this:

Bug 2087042: Rebase cloud-provider-azure 22.06.2022

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.

lobziik and others added 2 commits June 22, 2022 13:39
Delete .github directory entirely since we do not want to use
GH workflows, templates, dependabot etc in ocp fork.
…ecific makefile extension, openshift specific hack scripts
@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@lobziik: This pull request references Bugzilla bug 2087042, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

In response to this:

Bug 2087042: Rebase cloud-provider-azure 22.06.2022

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.

AOS Automation Release Team and others added 2 commits June 22, 2022 17:24
… cloud-controller-manager with latest OCP release
The Makefile sets GOARCH?=amd64, which needs to be overridden for this
image to build properly on other architectures.

(cherry picked from commit 86e0d4c)
@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@lobziik: This pull request references Bugzilla bug 2087042, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

In response to this:

Bug 2087042: Rebase cloud-provider-azure 22.06.2022

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.

@damdo
Copy link
Member

damdo commented Jun 22, 2022

/retest

Copy link

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

rebase generally looks good to me
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 22, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 22, 2022

@lobziik: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-azure-ccm cd9ccb2 link false /test e2e-azure-ccm
ci/prow/openshift-e2e-azure-ccm-install cd9ccb2 link false /test openshift-e2e-azure-ccm-install
ci/prow/verify-git-history cd9ccb2 link false /test verify-git-history

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.

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

@JoelSpeed
Copy link

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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 23, 2022
@openshift-ci openshift-ci bot merged commit 8a6e6ee into openshift:master Jun 23, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

@lobziik: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with /bugzilla refresh.

Bugzilla bug 2087042 has not been moved to the MODIFIED state.

In response to this:

Bug 2087042: Rebase cloud-provider-azure 22.06.2022

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. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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