Bug 1839023
| 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: | gcheresh, ltomasbo, rlobillo |
| Version: | 4.5 | Keywords: | UpcomingSprint |
| Target Milestone: | --- | ||
| Target Release: | 4.4.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1838985 | Environment: | |
| Last Closed: | 2020-06-23 00:57:26 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: | 1838985 | ||
| Bug Blocks: | 1846228 | ||
|
Description
Maysa Macedo
2020-05-22 10:54:33 UTC
Verified on OCP4.4.0-0.nightly-2020-06-14-142924 on OSP13 (2020-06-09.2) with OVS.
NP tests run with parallelism set to 3. The controller is not restarted and the backtrace is not observed.
Manual testing: after enabling DEBUG logs on kuryr-controller, run:
$ oc new-project test
$ oc run server --image=kuryr/demo
$ oc expose pod/server-1-6zbgh --port 80
$ oc apply -f np.yaml
where:
$ cat np.yaml
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: api-allow
spec:
podSelector:
matchLabels:
run: server
ingress:
- from:
- podSelector:
matchLabels:
run: client
$ oc delete endpoints server-1-6zbgh
$ oc run client --image=kuryr/demo
Condition is hit:
[stack@undercloud-0 ~]$ oc logs -n openshift-kuryr kuryr-controller-78494d6fdd-s58g6 -f | grep 'Endpoint not Found. Skipping LB SG update for'
2020-06-15 15:51:14.299 1 DEBUG kuryr_kubernetes.controller.drivers.lbaasv2 [-] Endpoint not Found. Skipping LB SG update fortest/server-1-6zbgh as the LB resources are not present update_lbaas_sg /usr/lib/python3.6/site-packages/kuryr_kubernetes/controller/drivers/lbaasv2.py:1051
No restart observed:
$ oc get pods -n openshift-kuryr
NAME READY STATUS RESTARTS AGE
kuryr-cni-2ms8v 1/1 Running 0 3h9m
kuryr-cni-4nwmb 1/1 Running 0 3h9m
kuryr-cni-fq8mm 1/1 Running 0 3h38m
kuryr-cni-h8q2p 1/1 Running 0 3h9m
kuryr-cni-kd24d 1/1 Running 0 3h38m
kuryr-cni-lzphw 1/1 Running 0 3h38m
kuryr-controller-78494d6fdd-s58g6 1/1 Running 0 11m
kuryr-dns-admission-controller-5fgwh 1/1 Running 0 3h38m
kuryr-dns-admission-controller-fdbts 1/1 Running 0 3h38m
kuryr-dns-admission-controller-p26rq 1/1 Running 0 3h38m
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:2580 |