Bug 1808797
Summary: | Wrong attempt to recreate LB API when upgrading Octavia | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Maysa Macedo <mdemaced> | |
Component: | Networking | Assignee: | Maysa Macedo <mdemaced> | |
Networking sub component: | kuryr | QA Contact: | GenadiC <gcheresh> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | high | |||
Priority: | medium | CC: | gcheresh, juriarte, ltomasbo | |
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: | 1808498 | |||
: | 1808997 (view as bug list) | Environment: | ||
Last Closed: | 2020-05-04 11:43:49 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: | 1808498 | |||
Bug Blocks: | 1808997 |
Description
Maysa Macedo
2020-03-01 10:06:51 UTC
Verified in 4.4.0-0.nightly-2020-03-19-135403 on top of OSP 16 RHOS_TRUNK-16.0-RHEL-8-20200226.n.1 compose. After successful 4.4.0-0.nightly-2020-03-19-135403 installation, the next steps have been followed in order to reproduce the scenario described in this BZ: Add a description to the API LB and remove the tag (as it's done in an OSP 13 deployment): $ openstack loadbalancer list +--------------------------------------+-------------------------------------+----------------------------------+----------------+---------------------+----------+ | id | name | project_id | vip_address | provisioning_status | provider | +--------------------------------------+-------------------------------------+----------------------------------+----------------+---------------------+----------+ ... | cdaa5388-aa19-4bbf-8b73-61c8d9f27459 | ostest-cdsnz-kuryr-api-loadbalancer | 5374ee1858ca42c68843a764cc521c8c | 172.30.0.1 | ACTIVE | amphora | +--------------------------------------+-------------------------------------+----------------------------------+----------------+---------------------+----------+ $ openstack loadbalancer set --description 'openshiftClusterID=ostest-cdsnz' ostest-cdsnz-kuryr-api-loadbalancer $ openstack loadbalancer show cdaa5388-aa19-4bbf-8b73-61c8d9f27459 +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | admin_state_up | True | | created_at | 2020-03-20T11:52:28 | | description | openshiftClusterID=ostest-cdsnz | | flavor_id | None | | id | cdaa5388-aa19-4bbf-8b73-61c8d9f27459 | | listeners | 607a81d2-60e2-4ad8-b738-a9530f716824 | | name | ostest-cdsnz-kuryr-api-loadbalancer | | operating_status | DEGRADED | | pools | ab280918-e436-40c8-b800-b1ea37f2f1af | | project_id | 5374ee1858ca42c68843a764cc521c8c | | provider | amphora | | provisioning_status | ACTIVE | | updated_at | 2020-03-20T15:10:49 | | vip_address | 172.30.0.1 | | vip_network_id | 71f4b67b-2eaa-431b-84fe-b2a07769f46c | | vip_port_id | 8d4a21cf-2fcc-4162-8e62-3beb86055200 | | vip_qos_policy_id | None | | vip_subnet_id | 11619c0c-8eef-438f-b922-5b555130e4ae | +---------------------+--------------------------------------+ The tag needs to be removed from the DB: [root@controller-0 heat-admin]# podman exec -uroot -it galera-bundle-podman-0 mysql MariaDB [(none)]> use octavia MariaDB [octavia]> select * from tags where resource_id='cdaa5388-aa19-4bbf-8b73-61c8d9f27459'; +--------------------------------------+---------------------------------+ | resource_id | tag | +--------------------------------------+---------------------------------+ | cdaa5388-aa19-4bbf-8b73-61c8d9f27459 | openshiftClusterID=ostest-cdsnz | +--------------------------------------+---------------------------------+ MariaDB [octavia]> delete from tags where resource_id='cdaa5388-aa19-4bbf-8b73-61c8d9f27459'; Query OK, 1 row affected (0.003 sec) Now restart CNO - it will start and detect the API LB as it would have been created in OSP 13: $ oc -n openshift-network-operator delete pod network-operator-7446f9df47-blwbc $ oc get pods -n openshift-network-operator NAME READY STATUS RESTARTS AGE network-operator-7446f9df47-f2dwm 1/1 Running 0 19m Check CNO logs - it detects an existing API LB with it's description, keeps it and tags it: 2020/03/20 16:13:14 Detected Octavia API v2.13.0 2020/03/20 16:13:14 Tagging existing loadbalancer API cdaa5388-aa19-4bbf-8b73-61c8d9f27459 2020/03/20 16:13:14 OpenShift API loadbalancer cdaa5388-aa19-4bbf-8b73-61c8d9f27459 present Check the tag has been added in DB (as for OSP 16): MariaDB [octavia]> select * from tags where resource_id='cdaa5388-aa19-4bbf-8b73-61c8d9f27459'; +--------------------------------------+---------------------------------+ | resource_id | tag | +--------------------------------------+---------------------------------+ | cdaa5388-aa19-4bbf-8b73-61c8d9f27459 | openshiftClusterID=ostest-cdsnz | +--------------------------------------+---------------------------------+ 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 |