Bug 1871943

Summary: Octavia OVN Provider load balancer Failover command not returning ERROR message
Product: Red Hat OpenStack Reporter: Bruna Bonguardo <bbonguar>
Component: python-networking-ovnAssignee: Fernando Royo <froyo>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: apevec, froyo, jlibosva, lhh, ltomasbo, majopela, scohen
Target Milestone: z9Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.3.1-1.20220303083747.4e24f4c.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 20:24:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1885007    
Bug Blocks:    

Description Bruna Bonguardo 2020-08-24 16:22:37 UTC
Description of problem: 

OVN provider driver Octavia load balancers should not be able to failover.
When triggering a load balancer Failover command, a API ERROR message should be returned.


Version-Release number of selected component (if applicable):
$ cat /var/lib/rhos-release/latest-installed
16.1  -p RHOS-16.1-RHEL-8-20200804.n.0


How reproducible:
100%

Steps to Reproduce:
1. Deploy openstack
2. Create OVN provider driver Octavia load balancer
3. Trigger a failover:
(overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer failover ovn-lb

Actual results:
No API error message, and in Controllers logs /var/log/containers/octavia/octavia.log the following message is seen:
INFO octavia.api.v2.controllers.load_balancer [req-4222af30-a1c9-4155-9101-c24f066ff159 - 78eb110d08fb4b3c956d2311d10e5a2c - default default] Sending failover request for load balancer 77980e6a-a939-4bf1-9887-cdf59f380ebe to the provider ovn


Expected results:
When triggering a load balancer Failover command, a API ERROR message should be returned.

Additional info:
ovn provider driver failover code - does not do a failover:
https://opendev.org/openstack/ovn-octavia-provider/src/branch/master/ovn_octavia_provider/helper.py#L970-L975

Comment 12 errata-xmlrpc 2022-12-07 20:24:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8795