Bug 1843813
Summary: | Octavia Listeners are not updated to account for allow_cidrs restrictions on Network Policies. | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Luis Tomas Bolivar <ltomasbo> |
Component: | Networking | Assignee: | Maysa Macedo <mdemaced> |
Networking sub component: | kuryr | QA Contact: | GenadiC <gcheresh> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | urgent | ||
Priority: | urgent | CC: | rlobillo |
Version: | 4.5 | ||
Target Milestone: | --- | ||
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 16:04:47 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: | 1843839 |
Description
Luis Tomas Bolivar
2020-06-04 08:32:11 UTC
Verified on OCP4.6.0-0.nightly-2020-07-25-065959 over OSP16 (RHOS_TRUNK-16.0-RHEL-8-20200804.n.0) with OVS. All 23 NP tests PASSED. Manual test: $ oc new-project test $ oc run --image kuryr/demo demo $ oc run --image kuryr/demo demo-allowed-caller $ oc run --image kuryr/demo demo-caller $ oc expose pod/demo --port 80 --target-port 8080 $ cat np_resource.yaml kind: NetworkPolicy apiVersion: networking.k8s.io/v1 metadata: name: np spec: podSelector: matchLabels: run: demo ingress: - from: - podSelector: matchLabels: run: demo-allowed-caller $ oc apply -f np_resource.yaml $ oc get all NAME READY STATUS RESTARTS AGE pod/demo 1/1 Running 0 112m pod/demo-allowed-caller 1/1 Running 0 112m pod/demo-caller 1/1 Running 0 111m NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/demo ClusterIP 172.30.74.20 <none> 80/TCP 111m (overcloud) [stack@undercloud-0 np_results]$ oc rsh pod/demo-allowed-caller curl 172.30.74.20 demo: HELLO! I AM ALIVE!!! (overcloud) [stack@undercloud-0 np_results]$ oc rsh pod/demo-caller curl 172.30.74.20 ^Ccommand terminated with exit code 130 Allowed_cidr is successfully updated when network policy is applied: (overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer show test/demo +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | admin_state_up | True | | created_at | 2020-08-07T09:08:28 | | description | | | flavor_id | None | | id | 9fd1e5f4-6527-497e-bab8-acdd570cf5d3 | | listeners | e5e2c6c9-efa7-41cf-873a-73176c07e8b4 | | name | test/demo | | operating_status | ONLINE | | pools | 05e329f0-f4e6-43aa-9690-444dcf139bec | | project_id | b1cd8a4ae3d240a9a0be3120cbe10917 | | provider | amphora | | provisioning_status | ACTIVE | | updated_at | 2020-08-07T11:07:31 | | vip_address | 172.30.74.20 | | vip_network_id | efb2317f-f550-4fa2-b427-63c85dbbdc69 | | vip_port_id | 9b50a053-3ddb-4cf8-9d99-eebf504d43ed | | vip_qos_policy_id | None | | vip_subnet_id | ff8cb1e4-b21d-464f-b553-10923c059328 | +---------------------+--------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ openstack loadbalancer listener show e5e2c6c9-efa7-41cf-873a-73176c07e8b4 +-----------------------------+--------------------------------------+ | Field | Value | +-----------------------------+--------------------------------------+ | admin_state_up | True | | connection_limit | -1 | | created_at | 2020-08-07T09:09:54 | | default_pool_id | 05e329f0-f4e6-43aa-9690-444dcf139bec | | default_tls_container_ref | None | | description | | | id | e5e2c6c9-efa7-41cf-873a-73176c07e8b4 | | insert_headers | None | | l7policies | | | loadbalancers | 9fd1e5f4-6527-497e-bab8-acdd570cf5d3 | | name | test/demo:TCP:80 | | operating_status | ONLINE | | project_id | b1cd8a4ae3d240a9a0be3120cbe10917 | | protocol | TCP | | protocol_port | 80 | | provisioning_status | ACTIVE | | sni_container_refs | [] | | timeout_client_data | 50000 | | timeout_member_connect | 5000 | | timeout_member_data | 50000 | | timeout_tcp_inspect | 0 | | updated_at | 2020-08-07T11:05:32 | | client_ca_tls_container_ref | None | | client_authentication | NONE | | client_crl_container_ref | None | | allowed_cidrs | 10.128.113.123/32 | +-----------------------------+--------------------------------------+ 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 (OpenShift Container Platform 4.6 GA Images), 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:4196 |