Skip to content

Commit

Permalink
Improving classification for user errors (#894)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RadaBDimitrova authored Nov 11, 2024
1 parent 77d6441 commit cfaf642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/openstack/helper/error_codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cfaf642

Please sign in to comment.