kubernetes-sigs / cluster-api-provider-azure

Cluster API implementation for Microsoft Azure
https://capz.sigs.k8s.io/
Apache License 2.0
297 stars 428 forks source link

Better UX to indicate the reason of WaitingForInfrastructure when using MachinePool/AzureMachinePool #4964

Open MadJlzz opened 4 months ago

MadJlzz commented 4 months ago

/kind bug

What steps did you take and what happened: Add a AzureMachinePool to a cluster with a vmSize not available in the MachinePool specified failureDomains.

While monitor the advancement of the pool provisionning with clusterctl, I've noticed that the state was not changing and staying blocked on WaitingForInfrastructure

Describing both MachinePool and AzureMachinePool object gave me no indication that the chosen vmSize was not available in the region/zones I've specified.

Finding the problem required me to check the logs of capz controller.

What did you expect to happen: Have a better explanation on the status of the object to know why we're WaitingForInfrastructure.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

willie-yao commented 3 months ago

/priority backlog

k8s-triage-robot commented 1 week ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

MadJlzz commented 1 week ago

/remove-lifecycle stale