Bug 1885007 - A failover command for an loadbalancer based on OVN Provider Driver is NOT rejected with an error message
Summary: A failover command for an loadbalancer based on OVN Provider Driver is NOT re...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-ovn-octavia-provider
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ga
: 17.0
Assignee: Fernando Royo
QA Contact: Nikolai Ilushko
URL:
Whiteboard:
Depends On:
Blocks: 1871943
TreeView+ depends on / blocked
 
Reported: 2020-10-04 12:36 UTC by Arieh Maron
Modified: 2022-09-21 12:13 UTC (History)
10 users (show)

Fixed In Version: python-ovn-octavia-provider-1.0.1-0.20210406194315.a1bc262.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:12:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
the output of the command : "openstack --debug loadbalancer failover lb-ipv6-ovn" (27.62 KB, text/plain)
2020-10-04 12:36 UTC, Arieh Maron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1901936 0 None None None 2020-10-28 19:02:00 UTC
OpenStack gerrit 760209 0 None MERGED Return UnsupportedOptionError() on loadbalancer failover 2022-06-09 13:49:55 UTC
Red Hat Issue Tracker OSP-1989 0 None None None 2022-02-03 13:28:11 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:13:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.