An HSF grouping rule failed validation. Check that the rule has a non-empty group name, a non-empty service name list with valid regular expressions, and a non-empty IP address rule list.
Error message
[Grouping Rule] xxx error message.The error message starts with the [Grouping Rule] prefix, followed by details about which part of the grouping rule configuration is invalid. Match the details against the validation conditions in the following section to identify the root cause.
Cause
HSF validates the following conditions when a grouping rule is applied. If any condition is not met, HSF-0022 is returned.
| Condition | Description |
|---|---|
| Group name is specified | The grouping rule must include a non-empty group name. |
| Service name list is specified | The grouping rule must include at least one service name entry. |
| IP address rule list is specified | The grouping rule must include at least one IP address rule entry. |
| Regular expressions are valid | All regular expressions in the service name list must use valid syntax. |
Solution
Check the grouping rule configuration and fix any condition that is not met:
Verify the group name. Confirm that the group name is set and not empty.
Verify the service name list. Confirm that at least one service name is specified. If the list uses regular expressions, validate each expression for correct syntax.
Verify the IP address rule list. Confirm that at least one IP address rule is defined.
Validate regular expressions. If the service name list contains regular expressions, test each expression independently to make sure it compiles without errors. Common issues include:
Issue Example Unescaped special characters .,*,+used as literals without a\prefixUnmatched grouping symbols Missing closing )or]Invalid quantifiers {3,1}where the minimum exceeds the maximum