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

Update Azure cluster-autoscaler e2e cluster template #6975

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Jun 25, 2024

What type of PR is this?

/kind bug
/kind failing-test

What this PR does / why we need it:

This change adds a Secret stub to the CAPZ cluster template for cluster-autoscaler e2e tests on Azure to play nice with the changes made in kubernetes-sigs/cluster-api-provider-azure#4946

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 25, 2024
@k8s-ci-robot k8s-ci-robot added area/cluster-autoscaler area/provider/azure Issues or PRs related to azure provider size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 25, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 25, 2024

/retest

1 similar comment
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 25, 2024

/retest

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 25, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 25, 2024

/retest

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

testing one more time pointing to kubernetes-sigs/cluster-api-provider-azure#4946

/test pull-cluster-autoscaler-e2e-azure

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

This is passing now and ready for review.

/assign @jackfrancis @willie-yao
/retitle Update Azure cluster-autoscaler e2e cluster template

@k8s-ci-robot k8s-ci-robot changed the title [WIP] testing Azure cluster-autoscaler e2e tests Update Azure cluster-autoscaler e2e cluster template Jun 26, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 26, 2024
Copy link
Contributor

@willie-yao willie-yao 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 Jun 26, 2024
@jackfrancis
Copy link
Contributor

@nojnhuh I did notice this in the latest E2E run:

default cluster-autoscaler-azure-cluster-autoscaler-7c58b754fc-wt2m9 0/1 Error 0 18s 10.224.0.51 aks-pool1-36728867-vmss000001

Maybe you're already aware of that

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

@nojnhuh I did notice this in the latest E2E run:

default cluster-autoscaler-azure-cluster-autoscaler-7c58b754fc-wt2m9 0/1 Error 0 18s 10.224.0.51 aks-pool1-36728867-vmss000001

Maybe you're already aware of that

Added a call to grab the logs in my CAPZ branch to see what's going on.

/test pull-cluster-autoscaler-e2e-azure

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

/test pull-cluster-autoscaler-e2e-azure

1 similar comment
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

/test pull-cluster-autoscaler-e2e-azure

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

/test pull-cluster-autoscaler-e2e-azure

(sorry for spam, keep seeing little things wrong in my CAPZ debugging changes, should be good enough now.)

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

/test pull-cluster-autoscaler-e2e-azure

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

I'd need to run this again with more debugging to confirm, but I imagine this issue I hit in the portal is the same as what's happening in the test, where our CI credentials don't have permission to create role assignments, even scoped to an individual resource group:
image

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

I'd need to run this again with more debugging to confirm, but I imagine this issue I hit in the portal is the same as what's happening in the test, where our CI credentials don't have permission to create role assignments, even scoped to an individual resource group

@jackfrancis Are there any major concerns with giving the user-assigned identity an Owner role vs. Contributor? I think that would be one solution to this problem.

https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/52df930d5c636071091f7ba904b606bc095346c6/scripts/kind-with-registry.sh#L150

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 26, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 26, 2024

Actually for real all green now, so this should be ready for review.

Copy link
Contributor

@willie-yao willie-yao 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 Jun 27, 2024
@jackfrancis
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, nojnhuh, willie-yao

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 Jun 27, 2024
@k8s-ci-robot k8s-ci-robot merged commit bab68c4 into kubernetes:master Jun 27, 2024
7 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/cluster-autoscaler area/provider/azure Issues or PRs related to azure 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. 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.

4 participants