Bug 1885007

Summary: A failover command for an loadbalancer based on OVN Provider Driver is NOT rejected with an error message
Product: Red Hat OpenStack Reporter: Arieh Maron <amaron>
Component: python-ovn-octavia-providerAssignee: Fernando Royo <froyo>
Status: CLOSED ERRATA QA Contact: Nikolai Ilushko <nilushko>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: apevec, cgoncalves, ihrachys, lhh, lpeer, ltomasbo, majopela, nilushko, scohen, tfreger
Target Milestone: gaKeywords: Triaged, UserExperience
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovn-octavia-provider-1.0.1-0.20210406194315.a1bc262.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:12:14 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:    
Bug Blocks: 1871943    
Attachments:
Description Flags
the output of the command : "openstack --debug loadbalancer failover lb-ipv6-ovn" none

Description Arieh Maron 2020-10-04 12:36:12 UTC
Created attachment 1718752 [details]
the output of the command : "openstack --debug loadbalancer failover lb-ipv6-ovn"

Description of problem:

An Octavia loadbalancer that is using the OVN Provider Driver should not accept a failover command and should return an error message



Version-Release number of selected component (if applicable):

Train (16.1) and possibly others - only tested in 16.1


How reproducible:

100%


Steps to Reproduce:
1. Setup a fully functioning TripleO stack with an OVN Provider Driver loadbalancer
2. issue command : "openstack loadbalancer failover <loadbalancer ID>

Actual results:

Silent response, loadbalancer DOES NOT failover but, no error message is issued.


Expected results:

Error message warning that failover is NOT supported for OVN Provider Driver loadbalancers.


Additional info:

The attached file is the output of an openstack failover call with debug enabled

Comment 3 Brian Haley 2021-03-01 16:09:36 UTC
Changing to correct component and VANS squad in internal whiteboard as this presents itself as a failure in the Octavia API.

Comment 4 Brian Haley 2021-03-03 18:52:06 UTC
Fix merged upstream, do you feel this needs to be backported?

Comment 5 Brian Haley 2021-04-07 21:25:43 UTC
This fix will be in OSP 17.  I have decided not to backport into older releases as the API change (error) could be an issue.

Comment 12 Nikolai Ilushko 2022-07-18 10:51:44 UTC
(overcloud) [stack@undercloud-0 ~]$ cat /var/lib/rhos-release/latest-installed
17.0 -p RHOS-17.0-RHEL-9-20220714.n.1

Verification steps: 

1. Deployed OSP17.0 with TripleO ( 3 compute, 3 controllers ) + OVN + Octavia installed.
2. Create a OVN Provider Driver load balancer:
(overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer create --name lb1 --provider ovn --vip-subnet-id private-subnet
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| admin_state_up      | True                                 |
| availability_zone   | None                                 |
| created_at          | 2022-07-18T07:33:36                  |
| description         |                                      |
| flavor_id           | None                                 |
| id                  | 8f79801b-f358-4f16-8dbc-cae5f6ecc127 |
| listeners           |                                      |
| name                | lb1                                  |
| operating_status    | OFFLINE                              |
| pools               |                                      |
| project_id          | 8167a90d157b491eb91f48b19fad26c6     |
| provider            | ovn                                  |
| provisioning_status | PENDING_CREATE                       |
| updated_at          | None                                 |
| vip_address         | 10.0.64.10                           |
| vip_network_id      | 1ae029a3-addf-429b-abfb-8c7de9847a96 |
| vip_port_id         | 8e31400f-b590-4676-9700-473170896ca8 |
| vip_qos_policy_id   | None                                 |
| vip_subnet_id       | 956ae86a-a02c-40be-9a30-5908ebdfcbfa |
| tags                |                                      |
+---------------------+--------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ os loadbalancer list
+--------------------------------------+------+----------------------------------+-------------+---------------------+------------------+----------+
| id                                   | name | project_id                       | vip_address | provisioning_status | operating_status | provider |
+--------------------------------------+------+----------------------------------+-------------+---------------------+------------------+----------+
| 8f79801b-f358-4f16-8dbc-cae5f6ecc127 | lb1  | 8167a90d157b491eb91f48b19fad26c6 | 10.0.64.10  | ACTIVE              | ONLINE           | ovn      |
+--------------------------------------+------+----------------------------------+-------------+---------------------+------------------+----------+

3. Issue command : "openstack loadbalancer failover <loadbalancer ID>

(overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer failover 8f79801b-f358-4f16-8dbc-cae5f6ecc127
Provider 'ovn' does not support a requested option: OVN provider does not support loadbalancer failover (HTTP 501) (Request-ID: req-b9a5fce2-18b5-4914-afa7-bab16ddc72d4)

An error message warning that failover is NOT supported for OVN Provider Driver load balancers was issued as expected.

Moving the bug to verified.

Comment 17 errata-xmlrpc 2022-09-21 12:12:14 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543