Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1811104

Summary: Wrong client used to retrieve Octavia API version
Product: OpenShift Container Platform Reporter: Maysa Macedo <mdemaced>
Component: NetworkingAssignee: Maysa Macedo <mdemaced>
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: gcheresh, juriarte
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1811022
: 1812037 (view as bug list) Environment:
Last Closed: 2020-05-04 11:45:08 UTC Type: ---
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: 1811022    
Bug Blocks: 1812037    

Description Maysa Macedo 2020-03-06 15:50:50 UTC
+++ This bug was initially created as a clone of Bug #1811022 +++

Description of problem:

We are using a Network client to retrieve the Octavia API version when a Load Balancer client should be used. This results in a wrong API version detection when checking if OVN Octavia driver is supported and if double listeners is supported.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Jon Uriarte 2020-03-13 17:29:31 UTC
Verified in 4.4.0-0.nightly-2020-03-13-073111 on top of OSP 16 RHOS_TRUNK-16.0-RHEL-8-20200226.n.1

ovn octavia is enabled:
$ openstack loadbalancer provider list                                                                                                                                          
+---------+-------------------------------------------------+
| name    | description                                     |
+---------+-------------------------------------------------+
| amphora | The Octavia Amphora driver.                     |
| octavia | Deprecated alias of the Octavia Amphora driver. |
| ovn     | Octavia OVN driver.                             |
+---------+-------------------------------------------------+

OVN Octavia driver detection worked during installation:

$ oc get cm kuryr-config -n openshift-kuryr -o yaml
...
metadata:
  annotations:
    networkoperator.openshift.io/kuryr-octavia-provider: ovn    << -----------
  creationTimestamp: "2020-03-13T15:48:29Z"
  name: kuryr-config
  namespace: openshift-kuryr
  ownerReferences:
  - apiVersion: operator.openshift.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: Network
    name: cluster
    uid: 491fb233-c263-4cc8-a3fe-2c3dc2f15cac
  resourceVersion: "2860"
  selfLink: /api/v1/namespaces/openshift-kuryr/configmaps/kuryr-config
  uid: 01483243-98ce-42db-ad23-ea5fd775ae32

If the config-map is edited (with a different value):
    networkoperator.openshift.io/kuryr-octavia-provider: ""

it will be updated correctly with reconciliation:
$ oc get cm kuryr-config -n openshift-kuryr -o yaml
...
metadata:
  annotations:
    networkoperator.openshift.io/kuryr-octavia-provider: ovn
  creationTimestamp: "2020-03-13T15:48:29Z"
  name: kuryr-config
  namespace: openshift-kuryr
  ownerReferences:
  - apiVersion: operator.openshift.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: Network
    name: cluster
    uid: 491fb233-c263-4cc8-a3fe-2c3dc2f15cac
  resourceVersion: "2860"
  selfLink: /api/v1/namespaces/openshift-kuryr/configmaps/kuryr-config
  uid: 01483243-98ce-42db-ad23-ea5fd775ae32

Comment 5 errata-xmlrpc 2020-05-04 11:45:08 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, 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-2020:0581