TestIngressClusterIp.test_ingress_ip_assignment[ci_k8s_sanity,k8s_sanity,k8s_upgrade] | 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.6.8: /usr/bin/python3 Thu Mar 27 20:06:42 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_ingress.TestIngressClu...sanity,k8s_sanity,k8s_upgrade] id=0x7f940450fb70>, *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 TestIngressClusterIp.test_ingress_ip_assignment> self = <scripts.k8s_scripts.test_ingress.TestIngressClu...sanity,k8s_sanity,k8s_upgrade] id=0x7f940450fb70> args = () kwargs = {}
/contrail-test/scripts/k8s_scripts/test_ingress.py in test_ingress_ip_assignment(self=<scripts.k8s_scripts.test_ingress.TestIngressClu...sanity,k8s_sanity,k8s_upgrade] id=0x7f940450fb70>) 39 labels = {'app':app} 40 namespace = self.setup_namespace(name='default') 41 assert namespace.verify_on_setup() 42 43 service = self.setup_http_service(namespace=namespace.name, namespace = <k8s.namespace.NamespaceFixture object> namespace.verify_on_setup = <bound method NamespaceFixture.verify_on_setup of <k8s.namespace.NamespaceFixture object>>
/contrail-test/fixtures/k8s/namespace.py in verify_on_setup(self=<k8s.namespace.NamespaceFixture object>) 51 self.name)) 52 return False 53 if not self.verify_namespace_in_kube_manager(): 54 self.logger.error('Namespace %s not seen in Kube Manager' % ( 55 self.name)) self = <k8s.namespace.NamespaceFixture object> self.verify_namespace_in_kube_manager = <bound method retry.<locals>.deco_retry.<locals>.f_retry of <k8s.namespace.NamespaceFixture object>>
/contrail-test/tcutils/util.py in f_retry(*args=(<k8s.namespace.NamespaceFixture object>,), **kwargs={}) 82 mtries, mdelay = tries, delay # make mutable 83 84 result = f(*args, **kwargs) # first attempt 85 rv = result 86 final = False result undefined f = <function NamespaceFixture.verify_namespace_in_kube_manager> args = (<k8s.namespace.NamespaceFixture object>,) kwargs = {}
/contrail-test/fixtures/k8s/namespace.py in verify_namespace_in_kube_manager(self=<k8s.namespace.NamespaceFixture object>) 119 @retry(delay=2, tries=10) 120 def verify_namespace_in_kube_manager(self): 121 km_h = self.connections.get_kube_manager_h() 122 self.namespace_info = km_h.get_namespace_info(ns_uuid = self.uuid) 123 if self.namespace_info: km_h undefined self = <k8s.namespace.NamespaceFixture object> self.connections = <common.connections.ContrailConnections object> self.connections.get_kube_manager_h = <bound method ContrailConnections.get_kube_manag... <common.connections.ContrailConnections object>>
/contrail-test/common/connections.py in get_kube_manager_h(self=<common.connections.ContrailConnections object>, refresh=False) 306 self._get_kube_manager_h(refresh=refresh) 307 msg = "Kubernetes manager service is not up" 308 assert self._kube_manager_inspect is not None, msg 309 return self._kube_manager_inspect 310 self = <common.connections.ContrailConnections object> self._kube_manager_inspect = None msg = 'Kubernetes manager service is not up' AssertionError: Kubernetes manager service is not up __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 = ('Kubernetes manager service is not up',) 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_ingress.py", line 41, in test_ingress_ip_assignment assert namespace.verify_on_setup() File "/contrail-test/fixtures/k8s/namespace.py", line 53, in verify_on_setup if not self.verify_namespace_in_kube_manager(): File "/contrail-test/tcutils/util.py", line 84, in f_retry result = f(*args, **kwargs) # first attempt File "/contrail-test/fixtures/k8s/namespace.py", line 121, in verify_namespace_in_kube_manager km_h = self.connections.get_kube_manager_h() File "/contrail-test/common/connections.py", line 308, in get_kube_manager_h assert self._kube_manager_inspect is not None, msg AssertionError: Kubernetes manager service is not up
| 32.162 |
Log File
|
TestNetworkPolicyServiceIngress.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/scripts/k8s_scripts/test_policy.py", line 2573, in setUp self._res = self.__class__.SharedResources(self.connections) File "/contrail-test/tcutils/util.py", line 884, in __call__ Singleton, cls).__call__(*args, **kwargs) File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2451, in __init__ self.setUp() File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2529, in setUp assert self.ns1.verify_on_setup() File "/contrail-test/fixtures/k8s/namespace.py", line 53, in verify_on_setup if not self.verify_namespace_in_kube_manager(): File "/contrail-test/tcutils/util.py", line 84, in f_retry result = f(*args, **kwargs) # first attempt File "/contrail-test/fixtures/k8s/namespace.py", line 121, in verify_namespace_in_kube_manager km_h = self.connections.get_kube_manager_h() File "/contrail-test/common/connections.py", line 308, in get_kube_manager_h assert self._kube_manager_inspect is not None, msg AssertionError: Kubernetes manager service is not up
| 37.967 |
Log File
|
.tearDownClass (scripts.k8s_scripts.test_policy.TestNetworkPolicyServiceIngress) | Failure | Details
Traceback (most recent call last): testtools.testresult.real._StringException: Traceback (most recent call last): File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2589, in tearDownClass if getattr(cls, '_shared_resources'): AttributeError: type object 'TestNetworkPolicyServiceIngress' has no attribute '_shared_resources'
| 0.000 |
Log File
|