Bug 1901945 - Tempest test test_network_policy_add_remove_pod fails
Summary: Tempest test test_network_policy_add_remove_pod fails
Keywords:
Status: CLOSED DUPLICATE of bug 1901495
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: rdobosz
QA Contact: GenadiC
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-26 13:14 UTC by Itzik Brown
Modified: 2020-12-18 08:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-18 08:02:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.