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 177, in wrapper raise TestFailed("\n ".join(errmsg)) tcutils.cores.TestFailed: Test failed: AssertionError Python 3.6.8: /usr/bin/python3 Sun Jan 5 13:37:46 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=0x7f3fb710c7f0>, *args=(), **kwargs={}) 79 log.info('Initial checks done. Running the testcase now') 80 log.info('') 81 result = function(self, *args, **kwargs) 82 if self.inputs.upgrade: 83 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=0x7f3fb710c7f0> 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=0x7f3fb710c7f0>) 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>) 52 self.name)) 53 return False 54 if not self.verify_namespace_in_kube_manager(): 55 self.logger.error('Namespace %s not seen in Kube Manager' % ( 56 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={}) 95 mtries, mdelay = tries, delay # make mutable 96 97 result = f(*args, **kwargs) # first attempt 98 rv = result 99 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>) 120 @retry(delay=2, tries=10) 121 def verify_namespace_in_kube_manager(self): 122 km_h = self.connections.get_kube_manager_h() 123 self.namespace_info = km_h.get_namespace_info(ns_uuid = self.uuid) 124 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) 349 self._get_kube_manager_h(refresh=refresh) 350 msg = "Kubernetes manager service is not up" 351 assert self._kube_manager_inspect is not None, msg 352 return self._kube_manager_inspect 353 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 81, 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 54, in verify_on_setup if not self.verify_namespace_in_kube_manager(): File "/contrail-test/tcutils/util.py", line 97, in f_retry result = f(*args, **kwargs) # first attempt File "/contrail-test/fixtures/k8s/namespace.py", line 122, in verify_namespace_in_kube_manager km_h = self.connections.get_kube_manager_h() File "/contrail-test/common/connections.py", line 351, in get_kube_manager_h assert self._kube_manager_inspect is not None, msg AssertionError: Kubernetes manager service is not up
| 32.133 |
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 2899, in setUp self._res = self.__class__.SharedResources(self.connections) File "/contrail-test/tcutils/util.py", line 992, in __call__ Singleton, cls).__call__(*args, **kwargs) File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2777, in __init__ self.setUp() File "/contrail-test/scripts/k8s_scripts/test_policy.py", line 2855, in setUp assert self.ns1.verify_on_setup() File "/contrail-test/fixtures/k8s/namespace.py", line 54, in verify_on_setup if not self.verify_namespace_in_kube_manager(): File "/contrail-test/tcutils/util.py", line 97, in f_retry result = f(*args, **kwargs) # first attempt File "/contrail-test/fixtures/k8s/namespace.py", line 122, in verify_namespace_in_kube_manager km_h = self.connections.get_kube_manager_h() File "/contrail-test/common/connections.py", line 351, in get_kube_manager_h assert self._kube_manager_inspect is not None, msg AssertionError: Kubernetes manager service is not up
| 38.205 |
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 2915, in tearDownClass if getattr(cls, '_shared_resources'): AttributeError: type object 'TestNetworkPolicyServiceIngress' has no attribute '_shared_resources'
| 0.000 |
Log File
|