ovn-octavia-provider health monitoring fails because doesn't set the correct source IP address for OVN health check
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Miguel Lavalle |
Bug Description
Hello all,
IT seems the health checking feature of ovn octavia provider is broken and all service monitors show offline status because of a typo in https:/
Note the "i" prepended in the IP address in member_src += f'i{hm_source_ip}'
This causes the IP string to be casted including the "i" which give a random IP address for health check source, which in turn cause the response packet of the checked backend to be sent to the gateway MAC instead of the health check monitor source MAC defined in NB_Global options:
The very simple fix is to remove this "i" letter to set the correct source IP address for the monitor.
Looking at the patch that introduced this line, it seems to be indeed a mistake: https:/ /review. opendev. org/c/openstack /ovn-octavia- provider/ +/816829/ 4/ovn_octavia_ provider/ helper. py#2036