Bug 1949541
| Summary: | Kuryr-Controller crashes when it's missing the status object | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | OpenShift BugZilla Robot <openshift-bugzilla-robot> | |
| Component: | Networking | Assignee: | MichaĆ Dulko <mdulko> | |
| Networking sub component: | kuryr | QA Contact: | rlobillo | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | medium | CC: | mdemaced, mdulko, pmannidi | |
| Version: | 4.7 | Keywords: | Triaged | |
| Target Milestone: | --- | |||
| Target Release: | 4.7.z | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1968418 (view as bug list) | Environment: | ||
| Last Closed: | 2021-06-15 09:26:45 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: | 1933880 | |||
| Bug Blocks: | 1949540, 1968418 | |||
|
Description
OpenShift BugZilla Robot
2021-04-14 13:59:09 UTC
Verified on 4.7.0-0.nightly-2021-06-07-203428 on OSP16.1 (RHOS-16.1-RHEL-8-20210323.n.0) with OVN-Octavia enabled.
loadbalancer replacement procedure worked fine.
$ oc get pods
NAME READY STATUS RESTARTS AGE
demo-56c97d6845-2jfkc 1/1 Running 0 34s
demo-56c97d6845-7zwtp 1/1 Running 0 34s
demo-56c97d6845-ggcrf 1/1 Running 0 34s
$ oc rsh -n demo demo-56c97d6845-2jfkc curl 172.30.36.144
demo-56c97d6845-2jfkc: HELLO! I AM ALIVE!!!
$ openstack loadbalancer delete demo/demo --cascade
$ oc edit -n demo klb/demo
kuryrloadbalancer.openstack.org/demo edited
# ^remove from status until the end, including key 'status'.
$ oc rsh -n demo demo-56c97d6845-2jfkc curl 172.30.36.144
^Ccommand terminated with exit code 130
# Wait few seconds and the LB is recreated:
(shiftstack) [stack@undercloud-0 ~]$ oc rsh -n demo demo-56c97d6845-2jfkc curl 172.30.36.144
demo-56c97d6845-ggcrf: HELLO! I AM ALIVE!!!
$ oc get klb -n demo demo -o json | jq .status
{
"listeners": [
{
"id": "d717a73e-43cb-4655-95f4-3f09d530062d",
"loadbalancer_id": "2e778a64-bb0c-4cca-9424-6fd217414b23",
"name": "demo/demo:TCP:80",
"port": 80,
"project_id": "b20e10e10b514fb8a196b7734776b991",
"protocol": "TCP"
}
],
"loadbalancer": {
"id": "2e778a64-bb0c-4cca-9424-6fd217414b23",
"ip": "172.30.36.144",
"name": "demo/demo",
"port_id": "d2422c84-913d-4bbd-a947-2c865343a399",
"project_id": "b20e10e10b514fb8a196b7734776b991",
"provider": "ovn",
"security_groups": [
"aa9fc689-211e-460c-9635-fe7d0104aad2"
],
"subnet_id": "9e439c38-6a46-410e-a4a5-ff892facd55a"
},
"members": [
{
"id": "d81fac86-a54d-4f4c-8fae-99ff484f357f",
"ip": "10.128.124.136",
"name": "demo/demo-56c97d6845-2jfkc:8080",
"pool_id": "36497620-6e00-46c9-b7df-6ed3f83928f7",
"port": 8080,
"project_id": "b20e10e10b514fb8a196b7734776b991",
"subnet_id": "49a98dc1-3ff2-4559-9058-353aee886986"
},
{
"id": "511fbe93-f435-4c37-905a-f6265a49f2e7",
"ip": "10.128.124.186",
"name": "demo/demo-56c97d6845-ggcrf:8080",
"pool_id": "36497620-6e00-46c9-b7df-6ed3f83928f7",
"port": 8080,
"project_id": "b20e10e10b514fb8a196b7734776b991",
"subnet_id": "49a98dc1-3ff2-4559-9058-353aee886986"
},
{
"id": "ababdff0-1cc1-4fea-aa82-d80f030ab1e7",
"ip": "10.128.125.180",
"name": "demo/demo-56c97d6845-7zwtp:8080",
"pool_id": "36497620-6e00-46c9-b7df-6ed3f83928f7",
"port": 8080,
"project_id": "b20e10e10b514fb8a196b7734776b991",
"subnet_id": "49a98dc1-3ff2-4559-9058-353aee886986"
}
],
"pools": [
{
"id": "36497620-6e00-46c9-b7df-6ed3f83928f7",
"listener_id": "d717a73e-43cb-4655-95f4-3f09d530062d",
"loadbalancer_id": "2e778a64-bb0c-4cca-9424-6fd217414b23",
"name": "demo/demo:TCP:80",
"project_id": "b20e10e10b514fb8a196b7734776b991",
"protocol": "TCP"
}
]
}
kuryr-controller remains stable during this process:
$ oc get pods -n openshift-kuryr
NAME READY STATUS RESTARTS AGE
kuryr-cni-8j96g 1/1 Running 0 99m
kuryr-cni-bt4xv 1/1 Running 0 119m
kuryr-cni-gvg42 1/1 Running 0 119m
kuryr-cni-k5m4v 1/1 Running 0 104m
kuryr-cni-nvfxs 1/1 Running 0 119m
kuryr-cni-zkjv9 1/1 Running 0 105m
kuryr-controller-68b6cf9567-dbzq9 1/1 Running 0 5m56s
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.7.16 security and bug fix 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-2021:2286 |