Increase cassandra timeouts 00/70900/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 30 Aug 2020 11:39:42 +0000 (13:39 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 30 Aug 2020 11:42:14 +0000 (13:42 +0200)
homestead-prov sometimes fails reaching cassandra
30-08-2020 10:33:44.064 UTC ERROR base.py:327: Translating internal <class 'telephus.cassandra.ttypes.TimedOutException'> error into a 503 status code
30-08-2020 10:34:32.257 UTC ERROR base.py:327: Translating internal <class 'telephus.cassandra.ttypes.TimedOutException'> error into a 503 status code

Change-Id: I48566e39dca3dc9644733a76140a76300bbfd84e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit e236b0f56f748c888df23eeaf65478967ad852f1)

functest_kubernetes/ims/cassandra-depl.yaml
functest_kubernetes/ims/ims.py

index b2053ed..da1ea97 100644 (file)
@@ -37,7 +37,7 @@ spec:
           exec:
             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "7000 9042 9160"]
           # Cassandra can take a very, very long time to start up
-          initialDelaySeconds: 600
+          initialDelaySeconds: 1200
         readinessProbe:
           exec:
             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "7000 9042 9160"]
index 54a961e..b741f6b 100644 (file)
@@ -120,7 +120,7 @@ class Vims(testcase.TestCase):  # pylint: disable=too-many-instance-attributes
 
         See https://github.com/Metaswitch/clearwater-live-test for more details
         """
-        time.sleep(60)
+        time.sleep(120)
         container = client.V1Container(
             name=self.test_container_name, image=self.test_image_name,
             command=["rake", "test[{}]".format(self.zone),