Bug 2051423
Summary: | migrate loadbalancers from amphora to ovn not working | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | rlobillo |
Component: | Networking | Assignee: | Michał Dulko <mdulko> |
Networking sub component: | kuryr | QA Contact: | rlobillo |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | medium | Keywords: | Triaged |
Version: | 4.10 | ||
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 10:47:24 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: | 2055661 |
Description
rlobillo
2022-02-07 08:36:37 UTC
Okay, I debugged this. I'm setting blocker- due to several reasons: * This will mostly happen on OSP13->OSP16 upgrade, but 4.10 is not supporting OSP13, so that migration should happen in 4.9, where it works okay. * There might be folks running OSP16 with OVS+Amphora, in which case they probably won't move to OVN anyway. * Setups running OSP16 with OVN+Amphora might be affected, but as OVN-Octavia is preferred I bet this is really minor use case. * For the rare cases described above I can provide a workaround draft: 1. After executing step 3 in [1], manually update all your KuryrLoadBalancer CRDs and set `.spec.provider` to "ovn". This should trigger the migration of the LBs. [1] https://docs.openshift.com/container-platform/4.9/networking/load-balancing-openstack.html#installation-osp-kuryr-octavia-configure_load-balancing-openstack Verified on 4.11.0-0.nightly-2022-02-27-122819 on top of OSP16.1 (RHOS-16.1-RHEL-8-20211126.n.1) 2022-03-01 13:01:15.024 | TASK [install : Get number of amphoras] **************************************** 2022-03-01 13:01:16.005 | "invocation": { 2022-03-01 13:01:16.008 | "module_args": { 2022-03-01 13:01:16.011 | "_raw_params": "source ~/overcloudrc\nopenstack loadbalancer list -c provider -f value | grep amphora | wc -l\n", 2022-03-01 13:01:16.014 | "_uses_shell": true, 2022-03-01 13:01:16.016 | "argv": null, 2022-03-01 13:01:16.019 | "chdir": null, 2022-03-01 13:01:16.022 | "creates": null, 2022-03-01 13:01:16.024 | "executable": null, 2022-03-01 13:01:16.027 | "removes": null, 2022-03-01 13:01:16.029 | "stdin": null, 2022-03-01 13:01:16.032 | "stdin_add_newline": true, 2022-03-01 13:01:16.034 | "strip_empty_ends": true, 2022-03-01 13:01:16.037 | "warn": true 2022-03-01 13:01:16.039 | } 2022-03-01 13:01:16.042 | }, 2022-03-01 13:01:16.044 | "rc": 0, 2022-03-01 13:01:16.047 | "start": "2022-03-01 13:01:12.025776" 2022-03-01 13:01:16.049 | } 2022-03-01 13:01:16.052 | 2022-03-01 13:01:16.054 | STDOUT: 2022-03-01 13:01:16.057 | 2022-03-01 13:01:16.061 | 58 2022-03-01 13:05:58.431 | TASK [install : Octavia provider update - trigger update removing kuryr-octavia-provider annotation] *** 2022-03-01 13:05:58.898 | "invocation": { 2022-03-01 13:05:58.901 | "module_args": { 2022-03-01 13:05:58.903 | "_raw_params": "kubectl -n openshift-kuryr annotate cm kuryr-config networkoperator.openshift.io/kuryr-octavia-provider-\n", 2022-03-01 13:05:58.906 | "_uses_shell": true, 2022-03-01 13:05:58.908 | "argv": null, 2022-03-01 13:05:58.911 | "chdir": null, 2022-03-01 13:05:58.914 | "creates": null, 2022-03-01 13:05:58.917 | "executable": null, 2022-03-01 13:05:58.921 | "removes": null, 2022-03-01 13:05:58.924 | "stdin": null, 2022-03-01 13:05:58.926 | "stdin_add_newline": true, 2022-03-01 13:05:58.929 | "strip_empty_ends": true, 2022-03-01 13:05:58.932 | "warn": true 2022-03-01 13:05:58.934 | } 2022-03-01 13:05:58.937 | }, 2022-03-01 13:05:58.940 | "rc": 0, 2022-03-01 13:05:58.943 | "start": "2022-03-01 13:05:58.690031" 2022-03-01 13:05:58.946 | } 2022-03-01 13:05:58.948 | 2022-03-01 13:05:58.951 | STDOUT: 2022-03-01 13:05:58.954 | 2022-03-01 13:05:58.956 | configmap/kuryr-config annotated 2022-03-01 13:12:13.168 | TASK [install : Get number of ovn lbs] ***************************************** 2022-03-01 13:12:19.280 | "invocation": { 2022-03-01 13:12:19.283 | "module_args": { 2022-03-01 13:12:19.286 | "_raw_params": "source ~/overcloudrc\nopenstack loadbalancer list -c provider -f value | grep ovn | wc -l\n", 2022-03-01 13:12:19.288 | "_uses_shell": true, 2022-03-01 13:12:19.292 | "argv": null, 2022-03-01 13:12:19.295 | "chdir": null, 2022-03-01 13:12:19.298 | "creates": null, 2022-03-01 13:12:19.302 | "executable": null, 2022-03-01 13:12:19.305 | "removes": null, 2022-03-01 13:12:19.308 | "stdin": null, 2022-03-01 13:12:19.311 | "stdin_add_newline": true, 2022-03-01 13:12:19.313 | "strip_empty_ends": true, 2022-03-01 13:12:19.316 | "warn": true 2022-03-01 13:12:19.319 | } 2022-03-01 13:12:19.322 | }, 2022-03-01 13:12:19.325 | "rc": 0, 2022-03-01 13:12:19.328 | "start": "2022-03-01 13:12:13.975894" 2022-03-01 13:12:19.331 | } 2022-03-01 13:12:19.333 | 2022-03-01 13:12:19.336 | STDOUT: 2022-03-01 13:12:19.338 | 2022-03-01 13:12:19.341 | 59 and the verification passes: $ oc get pods -n demo NAME READY STATUS RESTARTS AGE demo-96c7f5d59-4kt2d 1/1 Running 0 42m demo-96c7f5d59-hrvbv 1/1 Running 0 42m demo-96c7f5d59-rxlpd 1/1 Running 0 42m $ oc get svc -n demo NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE demo ClusterIP 172.30.95.221 <none> 80/TCP 42m $ openstack loadbalancer list | grep 172.30.95.221 | 9c3413e5-c650-4864-a5bc-cc8b3e74b562 | demo/demo | d7e2f9864021463f903b6e2a71c4e7e7 | 172.30.95.221 | ACTIVE | ovn | $ oc rsh -n demo demo-96c7f5d59-4kt2d curl 172.30.95.221 demo-96c7f5d59-hrvbv: HELLO! I AM ALIVE!!! 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 (Important: OpenShift Container Platform 4.11.0 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:5069 |