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

test deleting all tags, node labels, and node taints in AKS e2e #4295

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Nov 20, 2023

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

This PR adds tests that remove all defined tags, node labels, and node taints on AKS resources. Deleting all tags had been previously tested but was removed in #4069 due to an ASO limitation at the time that has since been lifted. Deleting all node labels and taints was first made possible in #4122 and has never been tested in e2e before.

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

Special notes for your reviewer:

  • cherry-pick candidate

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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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 Nov 20, 2023
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Nov 20, 2023

/cherry-pick release-1.12

@k8s-infra-cherrypick-robot

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

In response to this:

/cherry-pick release-1.12

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.

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (63df74f) 59.73% compared to head (a8a1f0f) 59.73%.
Report is 34 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4295   +/-   ##
=======================================
  Coverage   59.73%   59.73%           
=======================================
  Files         192      192           
  Lines       19303    19303           
=======================================
  Hits        11531    11531           
  Misses       7142     7142           
  Partials      630      630           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CecileRobertMichon
Copy link
Contributor

@nojnhuh fyi we found an issue with @jackfrancis last week where the test deletes the creationTimestamp tag on the AzureManagedControlPlane which is synced to the MC_ rg by AKS, so the tag gets deleted from the RG. This causes the test sub RG cleanup job to delete the node resource group mid-test when it happens to be running at the same time, causing flakes (rg cleanup uses tags to know if a rg is old enough to delete and deleted everything without a tag https://github.com/Azure/rg-cleanup).

So we might not be able to remove all tags as-is, we might need to preserve some of the "essential" tags, at least on the RGs.

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Nov 20, 2023

@CecileRobertMichon Ah, that makes sense and sounds like the real root cause of #3955. Maybe we can skip the "delete all tags" step for the AzureManagedControlPlane and keep it for the AzureManagedMachinePools. I think the mechanism in ASO is similar enough that that would still give us enough confidence that that still works for ASO ManagedClusters if we only test it for ManagedClustersAgentPools.

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon 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 @jackfrancis

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

LGTM label has been added.

Git tree hash: b300bcbf62180ee1d3294d26399e64332aa6ec7c

@nojnhuh nojnhuh linked an issue Nov 21, 2023 that may be closed by this pull request
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Nov 28, 2023

@jackfrancis Could you PTAL?

@jackfrancis
Copy link
Contributor

/lgtm

(added one clarifying question, I don't expect it will result in any changes)

@jackfrancis
Copy link
Contributor

/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 Nov 29, 2023
@k8s-ci-robot k8s-ci-robot merged commit 3ef2291 into kubernetes-sigs:main Nov 29, 2023
28 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.13 milestone Nov 29, 2023
@k8s-infra-cherrypick-robot

@nojnhuh: new pull request created: #4319

In response to this:

/cherry-pick release-1.12

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.

@nojnhuh nojnhuh deleted the aks-delete-fields branch December 8, 2023 22:23
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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
Archived in project
5 participants