From cfaf642e536e996a8470b63ce3014cb60fc896e1 Mon Sep 17 00:00:00 2001 From: Rada Dimitrova <117522044+RadaBDimitrova@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:43:15 +0200 Subject: [PATCH] Improving classification for user errors (#894) * configuring 'overlaps with cidr' as user error * configuring 'Policy doesn't allow .* to be performed' as user error * configuring 'missing expected router %s' as user error --- pkg/apis/openstack/helper/error_codes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/openstack/helper/error_codes.go b/pkg/apis/openstack/helper/error_codes.go index 563693da3..95eafc500 100644 --- a/pkg/apis/openstack/helper/error_codes.go +++ b/pkg/apis/openstack/helper/error_codes.go @@ -18,7 +18,7 @@ var ( dependenciesRegexp = regexp.MustCompile(`(?i)(PendingVerification|Access Not Configured|accessNotConfigured|DependencyViolation|OptInRequired|Conflict|inactive billing state|timeout while waiting for state to become|InvalidCidrBlock|already busy for|internal server error|A resource with the ID|There are not enough hosts available|No Router found)`) retryableDependenciesRegexp = regexp.MustCompile(`(?i)(RetryableError)`) resourcesDepletedRegexp = regexp.MustCompile(`(?i)(not available in the current hardware cluster|out of stock)`) - configurationProblemRegexp = regexp.MustCompile(`(?i)(not supported in your requested Availability Zone|notFound|Invalid value|violates constraint|no attached internet gateway found|Your query returned no results|invalid VPC attributes|unrecognized feature gate|runtime-config invalid key|strict decoder error|not allowed to configure an unsupported|error during apply of object .* is invalid:|duplicate zones|overlapping zones)`) + configurationProblemRegexp = regexp.MustCompile(`(?i)(missing expected router|Policy doesn't allow .* to be performed|overlaps with cidr|not supported in your requested Availability Zone|notFound|Invalid value|violates constraint|no attached internet gateway found|Your query returned no results|invalid VPC attributes|unrecognized feature gate|runtime-config invalid key|strict decoder error|not allowed to configure an unsupported|error during apply of object .* is invalid:|duplicate zones|overlapping zones)`) retryableConfigurationProblemRegexp = regexp.MustCompile(`(?i)(is misconfigured and requires zero voluntary evictions|SDK.CanNotResolveEndpoint|The requested configuration is currently not supported)`) // KnownCodes maps Gardener error codes to respective regex.