gardener / gardener-extension-provider-vsphere

Gardener extension controller for the vSphere cloud provider (https://www.vmware.com).
https://gardener.cloud
Other
8 stars 46 forks source link

Add error code support #465

Open ialidzhikov opened 10 months ago

ialidzhikov commented 10 months ago

How to categorize this issue?

/kind enhancement /platform vsphere

What would you like to be added: It seems that the provider-vsphere extension does have any error code handling in place. This is reducing ops-productivity as ops people have to look into issues which are end user related problems (invalid credentials, insufficient quota, etc). See for example https://github.com/gardener/gardener-extension-provider-aws/blob/master/pkg/apis/aws/helper/error_codes.go.

Errors such as:

task "Waiting until shoot infrastructure has been reconciled" failed: Error while waiting for Infrastructure shoot--foo--bar/bar to become ready: error during reconciliation: Error reconciling infrastructure: creating NSX-T connector failed. Please check credentials in provider-specific secret: Connection to NSX-T API failed (cannot list tier-0 gateways). Please check your connection settings.: com.vmware.vapi.std.errors.unauthorized

have to be categorized with ERR_INFRA_UNAUTHORIZED.

Why is this needed: For ops productivity.