Bug 1838985
Summary: | [Kuryr] LB sg update not skipped when no endpoint is found | |||
---|---|---|---|---|
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: | medium | |||
Priority: | medium | CC: | ltomasbo, rlobillo | |
Version: | 4.5 | |||
Target Milestone: | --- | |||
Target Release: | 4.5.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | No Doc Update | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1839023 (view as bug list) | Environment: | ||
Last Closed: | 2020-07-13 17:41:07 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: | 1839023 |
Description
Maysa Macedo
2020-05-22 09:02:20 UTC
Verified on OSP13 - 2020-05-19.2 and 4.5.0-0.nightly-2020-05-29-005153 NP tests run with parallelism set to 3. The controller is not restarted and backtrace is not observed. Furthermore, manual reproduction of the issue was performed to confirm stability: 1. Enable debug logs: oc scale deployment -n openshift-cluster-version cluster-version-operator --replicas 0 oc edit cm kuryr-config -n openshift-kuryr 2. Create pod, service and network policy. oc run server --image=kuryr/demo oc expose pod/server --port 80 oc apply -f np.yml where np.yaml contains: kind: NetworkPolicy apiVersion: networking.k8s.io/v1 metadata: name: api-allow spec: podSelector: matchLabels: run: server ingress: - from: - podSelector: matchLabels: run: client 3. Delete the endpoints of the created svc: oc delete endpoints server 4. Created another pod which will trigger lb update: oc run client --image=kuryr/demo) and check controller logs during it: oc logs -n openshift-kuryr kuryr-controller-5d8dc4f6c5-t82vk -f | grep 'Endpoint not Found. Skipping LB SG update for' Result: - No controller crashes. - DEBUG log line is written: [stack@undercloud-0 ~]$ oc logs -n openshift-kuryr kuryr-controller-5d8dc4f6c5-t82vk -f | grep 'Endpoint not Found. Skipping LB SG update for' 2020-06-01 10:34:31.931 1 DEBUG kuryr_kubernetes.controller.drivers.lbaasv2 [-] Endpoint not Found. Skipping LB SG update fortest/server as the LB resources are not present update_lbaas_sg /usr/lib/python3.6/site-packages/kuryr_kubernetes/controller/drivers/lbaasv2.py:808 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:2409 |