-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Monitor generated receive string is not intended regex #219
Comments
This value is used as the |
Yes, this is documented in:https://my.f5.com/manage/s/article/K5917 With some exceptions, health monitors on BIG-IP systems support the use of POSIX Extended Regular Expressions (ERE). ERE syntax treats most characters as literals, meaning that they match only themselves, and defines metacharacters, which can be used to represent special characters, multiple characters, or a sequences of characters. I also agree that the forward slash does not seem to require escape in the Big-IP monitor configuration, judging by the fact we normally use expression like |
it's not about the forward slash.... |
Of course not. The regex |
Another use-case where this bug surfaced: https://convergedcloud.slack.com/archives/CSP5GMKD1/p1687332168839529 |
If in octavia an
expected_codes
is defined as a range (e.g. 200-399), the generated regex is not correct. Currently, it looks like this:HTTP/1.(0|1) [200-399]
But it should look like this:
HTTP\/1.(0|1) [2-3][0-9][0-9]
see
octavia-f5-provider-driver/octavia_f5/restclient/as3objects/monitor.py
Line 156 in d3ccf2b
The text was updated successfully, but these errors were encountered: