How to categorize this issue?
/area ops-productivity
/kind bug
/platform aws
What happened:
Shoot credentials got invalid. Then the ControlPlane got unhealthy with:
status:
conditions:
- codes:
- ERR_RETRYABLE_INFRA_DEPENDENCIES
lastTransitionTime: "2024-11-20T10:37:28Z"
lastUpdateTime: "2024-11-20T10:49:01Z"
message: "[aws-custom-route-controller] RoutesUpdateFailed: (combined from similar
events): AuthFailure: AWS was not able to validate the provided access credentials\n\tstatus
code: 401, request id: <id>."
reason: HealthCheckUnsuccessful
status: "False"
type: ControlPlaneHealthy
IMO, the ERR_RETRYABLE_INFRA_DEPENDENCIES is wrong. It should be ERR_INFRA_UNAUTHENTICATED.
In
|
unauthenticatedRegexp = regexp.MustCompile(`(?i)(AuthFailure|InvalidAccessKeyId|InvalidSecretAccessKey)`) |
, the error string
AuthFailure is already marked as
ERR_INFRA_UNAUTHENTICATED.
The custom handling for the events:
|
var codes []gardencorev1beta1.ErrorCode |
|
if strings.Contains(newestEvent.Message, "RouteLimitExceeded") { |
|
codes = append(codes, gardencorev1beta1.ErrorInfraQuotaExceeded) |
|
} else { |
|
codes = append(codes, gardencorev1beta1.ErrorRetryableInfraDependencies) |
|
} |
What you expected to happen:
AuthFailure error to be flagged with ERR_INFRA_UNAUTHENTICATED, not with ERR_RETRYABLE_INFRA_DEPENDENCIES.
How to reproduce it (as minimally and precisely as possible):
See above.
Anything else we need to know?:
N/A
Environment:
- Gardener version (if relevant):
- Extension version: v1.58.3
- Kubernetes version (use
kubectl version):
- Cloud provider or hardware configuration:
- Others:
How to categorize this issue?
/area ops-productivity
/kind bug
/platform aws
What happened:
Shoot credentials got invalid. Then the ControlPlane got unhealthy with:
IMO, the
ERR_RETRYABLE_INFRA_DEPENDENCIESis wrong. It should beERR_INFRA_UNAUTHENTICATED.In
gardener-extension-provider-aws/pkg/apis/aws/helper/error_codes.go
Line 14 in 95bfe29
AuthFailureis already marked asERR_INFRA_UNAUTHENTICATED.The custom handling for the events:
gardener-extension-provider-aws/pkg/controller/healthcheck/customroutecontrollerhealth.go
Lines 62 to 67 in 95bfe29
What you expected to happen:
AuthFailureerror to be flagged withERR_INFRA_UNAUTHENTICATED, not withERR_RETRYABLE_INFRA_DEPENDENCIES.How to reproduce it (as minimally and precisely as possible):
See above.
Anything else we need to know?:
N/A
Environment:
kubectl version):