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

Set a unique valid default name for nodepool when spec.name in AzureManagedMachinePool is not specified #3968

Closed
tapojit047 opened this issue Sep 7, 2023 · 0 comments · Fixed by #3974
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@tapojit047
Copy link
Contributor

/kind bug

What steps did you take and what happened:

  • Create an AKS Cluster using CAPZ
  • Create a new MachinePool without specifying optional field spec.name in AzureManagedMachinePool
  • Got the error below:
 message: 'agentpools failed to create or update. err: failed to create resource
      tapo-test/multiple-zone-dedicated (service: agentpools): failed to begin operation:
      Code="InvalidParameter" Message="The value of parameter agentPoolProfile.name
      is invalid. Please see https://aka.ms/aks-naming-rules for more details." Target="agentPoolProfile.name"'
    reason: Failed

What did you expect to happen:
If I do not mention the spec.name field in AzureManagedMachinePool, it should be able to generate a default unique spec.name such that the MachinePool is created.

Anything else you would like to add:

  • The error is raised here
  • It is raised because of this naming restriction of nodepool in AKS: Limitations

Environment:

  • cluster-api-provider-azure version: v1.10.3
  • Kubernetes version: (use kubectl version): v1.27.3
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 7, 2023
@dtzar dtzar added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants