Bug 2055661
| Summary: | migrate loadbalancers from amphora to ovn not working | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | OpenShift BugZilla Robot <openshift-bugzilla-robot> |
| Component: | Networking | Assignee: | MichaĆ Dulko <mdulko> |
| Networking sub component: | kuryr | QA Contact: | Itay Matza <imatza> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | medium | CC: | imatza, rlobillo |
| Version: | 4.10 | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-04-21 13:15:55 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: | 2051423 | ||
| Bug Blocks: | |||
|
Description
OpenShift BugZilla Robot
2022-02-17 13:31:20 UTC
Removing the Triaged keyword because: * the QE automation assessment (flag qe_test_coverage) is missing Verified with OCP 4.10.0-0.nightly-2022-04-14-121105 on top of RHOS-16.1-RHEL-8-20220329.n.1.
Migrate the loadbalancer from amphora provider to ovn provider is working.
Verification steps:
1. Perform OCP installation with only amphora provider enabled. As a result, 58 load balancers are created:
```
2022-04-17 15:39:05.997 | TASK [install : Get number of amphoras] ****************************************
2022-04-17 15:39:05.999 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:8
2022-04-17 15:39:06.002 | Sunday 17 April 2022 15:39:05 +0000 (0:00:04.403) 0:51:40.257 **********
2022-04-17 15:39:09.309 | changed: [undercloud-0] => {
2022-04-17 15:39:09.311 | "changed": true,
2022-04-17 15:39:09.314 | "cmd": "source ~/overcloudrc\nopenstack loadbalancer list -c provider -f value | grep amphora | wc -l\n",
2022-04-17 15:39:09.317 | "delta": "0:00:03.004725",
2022-04-17 15:39:09.319 | "end": "2022-04-17 15:39:09.274338",
2022-04-17 15:39:09.322 | "rc": 0,
2022-04-17 15:39:09.325 | "start": "2022-04-17 15:39:06.269613"
2022-04-17 15:39:09.327 | }
2022-04-17 15:39:09.330 |
2022-04-17 15:39:09.332 | STDOUT:
2022-04-17 15:39:09.335 |
2022-04-17 15:39:09.338 | 58
```
2. Enabling OVN again in octavia.conf in all the controllers:
```
- name: Enable ovn-octavia
block:
- name: Add ovn-octavia on enabled_provider_drivers option
ini_file:
path: /var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf
section: api_settings
option: enabled_provider_drivers
value: "amphora: The Octavia Amphora driver.,octavia: Deprecated alias of the Octavia Amphora driver.,ovn: Octavia OVN driver."
loop: "{{ groups['controller'] }}"
delegate_to: "{{ item }}"
- name: Restart Octavia containers
shell: "podman restart octavia_api"
loop: "{{ groups['controller'] }}"
delegate_to: "{{ item }}"
become: true
```
3. Annotate kuryr-config:
```
2022-04-17 15:43:59.319 | TASK [install : Octavia provider update - trigger update removing kuryr-octavia-provider annotation] ***
2022-04-17 15:43:59.322 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:46
2022-04-17 15:43:59.325 | Sunday 17 April 2022 15:43:59 +0000 (0:00:06.149) 0:56:33.566 **********
2022-04-17 15:43:59.836 | changed: [undercloud-0] => {
2022-04-17 15:43:59.839 | "changed": true,
2022-04-17 15:43:59.843 | "cmd": "kubectl -n openshift-kuryr annotate cm kuryr-config networkoperator.openshift.io/kuryr-octavia-provider-\n",
2022-04-17 15:43:59.846 | "delta": "0:00:00.188458",
2022-04-17 15:43:59.849 | "end": "2022-04-17 15:43:59.796880",
2022-04-17 15:43:59.852 | "rc": 0,
2022-04-17 15:43:59.855 | "start": "2022-04-17 15:43:59.608422"
2022-04-17 15:43:59.858 | }
2022-04-17 15:43:59.860 |
2022-04-17 15:43:59.863 | STDOUT:
2022-04-17 15:43:59.866 |
2022-04-17 15:43:59.868 | configmap/kuryr-config annotated
```
4. Wait until the process starts:
```
2022-04-17 15:43:59.873 | TASK [install : Active wait for the update to start (max 240 seconds)] *********
2022-04-17 15:43:59.876 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:50
2022-04-17 15:43:59.879 | Sunday 17 April 2022 15:43:59 +0000 (0:00:00.564) 0:56:34.131 **********
2022-04-17 15:44:00.386 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (24 retries left).
2022-04-17 15:44:10.998 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (23 retries left).
2022-04-17 15:44:21.462 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (22 retries left).
2022-04-17 15:44:31.878 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (21 retries left).
2022-04-17 15:44:42.343 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (20 retries left).
2022-04-17 15:44:52.780 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (19 retries left).
2022-04-17 15:45:03.177 | FAILED - RETRYING: Active wait for the update to start (max 240 seconds) (18 retries left).
2022-04-17 15:45:13.657 | changed: [undercloud-0] => {
2022-04-17 15:45:13.660 | "attempts": 8,
2022-04-17 15:45:13.663 | "changed": true,
2022-04-17 15:45:13.666 | "cmd": "kubectl get -n openshift-kuryr cm/kuryr-config -o jsonpath='{.metadata.annotations.networkoperator\\.openshift\\.io/kuryr-octavia-provider}'\n",
2022-04-17 15:45:13.669 | "delta": "0:00:00.151587",
2022-04-17 15:45:13.672 | "end": "2022-04-17 15:45:13.616926",
2022-04-17 15:45:13.674 | "rc": 0,
2022-04-17 15:45:13.677 | "start": "2022-04-17 15:45:13.465339"
2022-04-17 15:45:13.680 | }
2022-04-17 15:45:13.683 |
2022-04-17 15:45:13.686 | STDOUT:
2022-04-17 15:45:13.690 |
2022-04-17 15:45:13.693 | ovn
```
5. Check the existing loadbalancers:
```
2022-04-17 15:50:14.443 | TASK [install : Get number of ovn lbs] *****************************************
2022-04-17 15:50:14.446 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:69
2022-04-17 15:50:14.449 | Sunday 17 April 2022 15:50:14 +0000 (0:00:00.083) 1:02:48.712 **********
2022-04-17 15:50:19.813 | changed: [undercloud-0] => {
2022-04-17 15:50:19.816 | "changed": true,
2022-04-17 15:50:19.819 | "cmd": "source ~/overcloudrc\nopenstack loadbalancer list -c provider -f value | grep ovn | wc -l\n",
2022-04-17 15:50:19.821 | "delta": "0:00:04.239528",
2022-04-17 15:50:19.824 | "end": "2022-04-17 15:50:19.760138",
2022-04-17 15:50:19.826 | "rc": 0,
2022-04-17 15:50:19.829 | "start": "2022-04-17 15:50:15.520610"
2022-04-17 15:50:19.832 | }
2022-04-17 15:50:19.835 |
2022-04-17 15:50:19.838 | STDOUT:
2022-04-17 15:50:19.840 |
2022-04-17 15:50:19.845 | 59
2022-04-17 15:50:19.847 |
2022-04-17 15:50:19.851 | TASK [install : Get number of total loadbalancers] *****************************
2022-04-17 15:50:19.854 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:75
2022-04-17 15:50:19.857 | Sunday 17 April 2022 15:50:19 +0000 (0:00:05.395) 1:02:54.108 **********
2022-04-17 15:50:23.749 | changed: [undercloud-0] => {
2022-04-17 15:50:23.752 | "changed": true,
2022-04-17 15:50:23.754 | "cmd": "source ~/overcloudrc\nopenstack loadbalancer list -c provider -f value | wc -l\n",
2022-04-17 15:50:23.757 | "delta": "0:00:03.574638",
2022-04-17 15:50:23.759 | "end": "2022-04-17 15:50:23.714989",
2022-04-17 15:50:23.762 | "rc": 0,
2022-04-17 15:50:23.764 | "start": "2022-04-17 15:50:20.140351"
2022-04-17 15:50:23.767 | }
2022-04-17 15:50:23.769 |
2022-04-17 15:50:23.773 | STDOUT:
2022-04-17 15:50:23.777 |
2022-04-17 15:50:23.780 | 59
2022-04-17 15:50:23.837 | TASK [install : check number of loadbalancers after octavia update (> 4.8)] ****
2022-04-17 15:50:23.839 | task path: /home/rhos-ci/jenkins/workspace/DFG-osasinfra-shiftstack_periodic-16.1_director-rhel-virthost-3cont_3comp_1ipa-ipv4-geneve,vlan-hybrid_4.10_3master_3worker-updateoctavia/infrared/plugins/openshift/roles/install/tasks/update_octavia_provider.yml:93
2022-04-17 15:50:23.842 | Sunday 17 April 2022 15:50:23 +0000 (0:00:00.062) 1:02:58.107 **********
2022-04-17 15:50:23.884 | ok: [undercloud-0] => {
2022-04-17 15:50:23.887 | "changed": false
2022-04-17 15:50:23.890 | }
2022-04-17 15:50:23.894 |
2022-04-17 15:50:23.897 | MSG:
2022-04-17 15:50:23.899 |
2022-04-17 15:50:23.902 | All assertions passed
```
Results: All loadbalancers are moved to ovn provider.
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 (Moderate: OpenShift Container Platform 4.10.10 bug fix and security update), 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/RHSA-2022:1356 |