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

include IPAMConfig CRD w/ ClusterResourceSets #3345

Merged

Conversation

jackfrancis
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

This PR adds the crd.projectcalico.org definition for IPAMConfig to the ClusterResourceSet definitions we include for test templates that require them (test templates with Windows node pools).

We already include via a ClusterResourceSet resource a kind: IPAMConfig resource in order to fulfill the required calico configuration strictAffinity: true. Not including the reference CRD resource has the effect of forcing the CAPI controller-manager runtime to continually retry the application of the ClusterResourceSet payload of kind: IPAMConfig, and may have the side-effect of disrupting the strictAffinity: true configuration during helm installation of calico.

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 #3227

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Mar 22, 2023
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 22, 2023
@jackfrancis
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-e2e
/test pull-cluster-api-provider-azure-e2e-optional

@jackfrancis
Copy link
Contributor Author

/retest
/test pull-cluster-api-provider-azure-e2e
/test pull-cluster-api-provider-azure-e2e-optional

@jackfrancis
Copy link
Contributor Author

/retest
/test pull-cluster-api-provider-azure-e2e

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Mar 22, 2023

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

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e-optional 39c5473 link false /test pull-cluster-api-provider-azure-e2e-optional

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@jackfrancis
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-e2e

@jackfrancis
Copy link
Contributor Author

/assign @CecileRobertMichon @marosset

This has now passed the VMSS test 4 times in a row (5th attempt in progress).

It has also never repro'd locally for me after a similar number of E2E runs. Let's get a few more runs documented in the PR to account for the fact that we don't fully understand why not shipping the CRD definition w/ the CRD resource causes unexpected data values later on, but from our statistical observations over the past week we seem to have crossed the boundary of any other possible explanation for VMSS E2E test success other than "this change is one of the possible changes that fixes #3227".

Copy link
Contributor

@marosset marosset left a comment

Choose a reason for hiding this comment

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

/lgtm

thanks @jackfrancis!

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

LGTM label has been added.

Git tree hash: e1885b85ec8b600e2827541e37b74b8b88d3be13

@jackfrancis
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-e2e

@jackfrancis
Copy link
Contributor Author

I'm going to merge and then cherry-pick this into release-1.7 and release-1.8.

Here is an example of this failure in release-1.7:

Here is an example of this failure in release-1.8:

@jackfrancis
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis

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 Mar 22, 2023
@jackfrancis
Copy link
Contributor Author

/cherry-pick release-1.7

@k8s-infra-cherrypick-robot

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

In response to this:

/cherry-pick release-1.7

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.

@jackfrancis
Copy link
Contributor Author

/cherry-pick release-1.8

@k8s-infra-cherrypick-robot

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

In response to this:

/cherry-pick release-1.8

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.

@CecileRobertMichon
Copy link
Contributor

great work investigating and root causing this one!

/lgtm

@CecileRobertMichon
Copy link
Contributor

/retest

optional job failed with #3313

@k8s-ci-robot k8s-ci-robot merged commit 79c4771 into kubernetes-sigs:main Mar 23, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Mar 23, 2023
@jackfrancis jackfrancis deleted the calico-ipamconfig-crd branch March 23, 2023 00:21
@k8s-infra-cherrypick-robot

@jackfrancis: #3345 failed to apply on top of branch "release-1.7":

Applying: include IPAMConfig CRD w/ ClusterResourceSets
Using index info to reconstruct a base tree...
M	templates/addons/windows/calico/calico.yaml
M	templates/test/ci/cluster-template-prow-ci-version-windows-containerd-2022.yaml
M	templates/test/ci/cluster-template-prow-ci-version.yaml
A	templates/test/ci/cluster-template-prow-intree-cloud-provider-machine-pool.yaml
A	templates/test/ci/cluster-template-prow-intree-cloud-provider.yaml
M	templates/test/ci/cluster-template-prow-machine-pool-ci-version.yaml
A	templates/test/ci/cluster-template-prow-machine-pool-flex.yaml
M	templates/test/ci/cluster-template-prow-machine-pool.yaml
M	templates/test/ci/cluster-template-prow-topology.yaml
M	templates/test/ci/cluster-template-prow.yaml
M	templates/test/dev/cluster-template-custom-builds-machine-pool.yaml
M	templates/test/dev/cluster-template-custom-builds.yaml
Falling back to patching base and 3-way merge...
Auto-merging templates/test/dev/cluster-template-custom-builds.yaml
Auto-merging templates/test/dev/cluster-template-custom-builds-machine-pool.yaml
Auto-merging templates/test/ci/cluster-template-prow.yaml
Auto-merging templates/test/ci/cluster-template-prow-topology.yaml
Auto-merging templates/test/ci/cluster-template-prow-machine-pool.yaml
CONFLICT (modify/delete): templates/test/ci/cluster-template-prow-machine-pool-flex.yaml deleted in HEAD and modified in include IPAMConfig CRD w/ ClusterResourceSets. Version include IPAMConfig CRD w/ ClusterResourceSets of templates/test/ci/cluster-template-prow-machine-pool-flex.yaml left in tree.
Auto-merging templates/test/ci/cluster-template-prow-machine-pool-ci-version.yaml
CONFLICT (modify/delete): templates/test/ci/cluster-template-prow-intree-cloud-provider-machine-pool.yaml deleted in HEAD and modified in include IPAMConfig CRD w/ ClusterResourceSets. Version include IPAMConfig CRD w/ ClusterResourceSets of templates/test/ci/cluster-template-prow-intree-cloud-provider-machine-pool.yaml left in tree.
Auto-merging templates/test/ci/cluster-template-prow-external-cloud-provider-ci-version.yaml
Auto-merging templates/test/ci/cluster-template-prow-ci-version.yaml
Auto-merging templates/test/ci/cluster-template-prow-ci-version-windows-containerd-2022.yaml
Auto-merging templates/addons/windows/calico/calico.yaml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 include IPAMConfig CRD w/ ClusterResourceSets
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.7

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-infra-cherrypick-robot

@jackfrancis: new pull request created: #3348

In response to this:

/cherry-pick release-1.8

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. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

Windows pod error: failed to setup network for sandbox
5 participants