Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1901945

Summary: Tempest test test_network_policy_add_remove_pod fails
Product: OpenShift Container Platform Reporter: Itzik Brown <itbrown>
Component: NetworkingAssignee: rdobosz
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: medium CC: gcheresh, ltomasbo, mdulko
Version: 4.4   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-18 08:02:34 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:

Description Itzik Brown 2020-11-26 13:14:42 UTC
Description of problem:

kuryr_tempest_plugin.tests.scenario.test_network_policy.OldNetworkPolicyScenario.test_network_policy_add_remove_pod fails with the following trace:

2020-11-20 18:21:05,972 10978 DEBUG    [kubernetes.client.rest] response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Success","details":{"name":"allow-all-server","group":"networking.k8s.io","kind":"networkpolicies","uid":"15f4f23f-f32c-4dc2-9471-38ad53126266"}}

2020-11-20 18:21:05,993 10978 DEBUG    [kubernetes.client.rest] response body: {"kind":"Namespace","apiVersion":"v1","metadata":{"name":"kuryr-namespace-2026384166","selfLink":"/api/v1/namespaces/kuryr-namespace-2026384166","uid":"b49d855f-6b59-4ac4-9e02-9114c0b37b94","resourceVersion":"65708","creationTimestamp":"2020-11-20T22:56:53Z","deletionTimestamp":"2020-11-20T23:21:05Z","annotations":{"openshift.io/sa.scc.mcs":"s0:c26,c10","openshift.io/sa.scc.supplemental-groups":"1000670000/10000","openshift.io/sa.scc.uid-range":"1000670000/10000","openstack.org/kuryr-net-crd":"ns-kuryr-namespace-2026384166"}},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}
}}}

Traceback (most recent call last):
  File "/home/stack/plugins/kuryr/kuryr_tempest_plugin/tests/scenario/base_network_policy.py", line 522, in test_network_policy_add_remove_pod
    pod_name=client_pod_name)
  File "/home/stack/plugins/kuryr/kuryr_tempest_plugin/tests/scenario/base.py", line 1255, in check_service_internal_connectivity
    namespace_name=namespace)
  File "/home/stack/plugins/kuryr/kuryr_tempest_plugin/tests/scenario/base.py", line 898, in assert_backend_amount_from_pod
    self._run_and_assert(req, pred)
  File "/home/stack/plugins/kuryr/kuryr_tempest_plugin/tests/scenario/base.py", line 902, in _run_and_assert
    predicate(self, resps)
  File "/home/stack/plugins/kuryr/kuryr_tempest_plugin/tests/scenario/base.py", line 887, in pred
    'Got {}'.format(unique_resps))
  File "/home/stack/.virtualenvs/.tempest/lib64/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/stack/.virtualenvs/.tempest/lib64/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 2 != 0: Incorrect amount of unique backends. Got set()

Version-Release number of selected component (if applicable):
OCP 4.4.0-0.nightly-2020-11-17-204324
OSP13 - 2020-11-13.1

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: