ovn-octavia-provider health monitoring fails because doesn't set the correct source IP address for OVN health check

Bug #1965530 reported by Gabriel Barazer
6
This bug affects 1 person
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://opendev.org/openstack/ovn-octavia-provider/src/commit/1b212ec54fa336cc7a22a502ad3d0ce39658138e/ovn_octavia_provider/helper.py#L2171

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:svc_monitor_mac. The monitor does not get the check response and fails.

The very simple fix is to remove this "i" letter to set the correct source IP address for the monitor.

Revision history for this message
Miguel Lavalle (minsel) wrote :

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

Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Miguel Lavalle (minsel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ovn-octavia-provider (master)
Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ovn-octavia-provider (master)

Reviewed: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/834345
Committed: https://opendev.org/openstack/ovn-octavia-provider/commit/90bd5dc71ecd4891fcd9292d56726f034a59fbdf
Submitter: "Zuul (22348)"
Branch: master

commit 90bd5dc71ecd4891fcd9292d56726f034a59fbdf
Author: Miguel Lavalle <email address hidden>
Date: Fri Mar 18 13:03:22 2022 -0500

    Remove incorrect character in f-string

    Patch [1] switched to f-strings, unwillingly introducing a 'i' to an
    ip address. This change corrects that error

    [1] https://review.opendev.org/c/openstack/ovn-octavia-provider/+/816829

    Closes-Bug: #1965530
    Change-Id: I832780660a3658552dc8fb50c3e232306e1fa110

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ovn-octavia-provider (stable/yoga)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ovn-octavia-provider (stable/xena)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ovn-octavia-provider (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/834471
Committed: https://opendev.org/openstack/ovn-octavia-provider/commit/b17e4769015a749e211b9b394437523f8f840563
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit b17e4769015a749e211b9b394437523f8f840563
Author: Miguel Lavalle <email address hidden>
Date: Fri Mar 18 13:03:22 2022 -0500

    Remove incorrect character in f-string

    Patch [1] switched to f-strings, unwillingly introducing a 'i' to an
    ip address. This change corrects that error

    [1] https://review.opendev.org/c/openstack/ovn-octavia-provider/+/816829

    Closes-Bug: #1965530
    Change-Id: I832780660a3658552dc8fb50c3e232306e1fa110
    (cherry picked from commit 90bd5dc71ecd4891fcd9292d56726f034a59fbdf)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ovn-octavia-provider (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/834472
Committed: https://opendev.org/openstack/ovn-octavia-provider/commit/afa74b4a7efa6ff8b67ddf6ea30955e05739887e
Submitter: "Zuul (22348)"
Branch: stable/xena

commit afa74b4a7efa6ff8b67ddf6ea30955e05739887e
Author: Miguel Lavalle <email address hidden>
Date: Fri Mar 18 13:03:22 2022 -0500

    Remove incorrect character in f-string

    Patch [1] switched to f-strings, unwillingly introducing a 'i' to an
    ip address. This change corrects that error

    [1] https://review.opendev.org/c/openstack/ovn-octavia-provider/+/816829

    Closes-Bug: #1965530
    Change-Id: I832780660a3658552dc8fb50c3e232306e1fa110
    (cherry picked from commit 90bd5dc71ecd4891fcd9292d56726f034a59fbdf)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ovn-octavia-provider 3.0.0.0rc1

This issue was fixed in the openstack/ovn-octavia-provider 3.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ovn-octavia-provider 1.2.0

This issue was fixed in the openstack/ovn-octavia-provider 1.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ovn-octavia-provider 2.1.0

This issue was fixed in the openstack/ovn-octavia-provider 2.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.