test_ingress_rule_on_pod_with_service[ci_k8s_sanity,k8s_sanity] | Failure | Details
Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: AssertionError
Python 3.9.21: /usr/bin/python3
Thu Sep 18 01:48:10 2025
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.k8s_scripts.test_policy.TestNetworkPoli...vice[ci_k8s_sanity,k8s_sanity] id=0x7f0829f419a0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestNetworkPolicyServiceIngress.test_ingress_rule_on_pod_with_service>
self = <scripts.k8s_scripts.test_policy.TestNetworkPoli...vice[ci_k8s_sanity,k8s_sanity] id=0x7f0829f419a0>
args = ()
kwargs = {}
/contrail-test/scripts/k8s_scripts/test_policy.py in test_ingress_rule_on_pod_with_service(self=<scripts.k8s_scripts.test_policy.TestNetworkPoli...vice[ci_k8s_sanity,k8s_sanity] id=0x7f0829f419a0>)
2830 labels={'app2': 'common_label'})
2831 assert service_ns1.verify_on_setup()
2832 assert self.validate_nginx_lb([self.web1_pod_ns1,self.web2_pod_ns1],
2833 service_ns1.cluster_ip,
2834 test_pod=self.client1_pod_ns1)
self = <scripts.k8s_scripts.test_policy.TestNetworkPoli...vice[ci_k8s_sanity,k8s_sanity] id=0x7f0829f419a0>
self.validate_nginx_lb = <bound method retry.<locals>.deco_retry.<locals>...ice[ci_k8s_sanity,k8s_sanity] id=0x7f0829f419a0>>
self.web1_pod_ns1 = <k8s.pod.PodFixture object>
self.web2_pod_ns1 = <k8s.pod.PodFixture object>
service_ns1 = <k8s.service.ServiceFixture object>
service_ns1.cluster_ip = '10.105.39.26'
test_pod undefined
self.client1_pod_ns1 = <k8s.pod.PodFixture object>
AssertionError:
__cause__ = None
__class__ = <class 'AssertionError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of AssertionError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of AssertionError object>
__doc__ = 'Assertion failed.'
__eq__ = <method-wrapper '__eq__' of AssertionError object>
__format__ = <built-in method __format__ of AssertionError object>
__ge__ = <method-wrapper '__ge__' of AssertionError object>
__getattribute__ = <method-wrapper '__getattribute__' of AssertionError object>
__gt__ = <method-wrapper '__gt__' of AssertionError object>
__hash__ = <method-wrapper '__hash__' of AssertionError object>
__init__ = <method-wrapper '__init__' of AssertionError object>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of AssertionError object>
__lt__ = <method-wrapper '__lt__' of AssertionError object>
__ne__ = <method-wrapper '__ne__' of AssertionError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of AssertionError object>
__reduce_ex__ = <built-in method __reduce_ex__ of AssertionError object>
__repr__ = <method-wrapper '__repr__' of AssertionError object>
__setattr__ = <method-wrapper '__setattr__' of AssertionError object>
__setstate__ = <built-in method __setstate__ of AssertionError object>
__sizeof__ = <built-in method __sizeof__ of AssertionError object>
__str__ = <method-wrapper '__str__' of AssertionError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
args = ()
with_traceback = <built-in method with_traceback of AssertionError object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2832, in test_ingress_rule_on_pod_with_service
assert self.validate_nginx_lb([self.web1_pod_ns1,self.web2_pod_ns1],
AssertionError
| 880.758 |
Log File
|