aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/ims
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-07-06 20:09:41 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-07-06 20:11:57 +0200
commit018e15bd3daad54121e9f9a6cf6d904eaf9a705e (patch)
tree21dcddf64d1ff47a64e9ad32935c17869f4b607a /functest_kubernetes/ims
parent90832c83da1afbdd97a7f00e9ed37b137d0abce5 (diff)
Manage Ims service dependencies
Change-Id: I6647d9acfabd2ce2d12ff2f30393c2de8f6165ff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 68b2a9ac43003840ae0b88bf3b2cd6c1fc10db21)
Diffstat (limited to 'functest_kubernetes/ims')
-rw-r--r--functest_kubernetes/ims/astaire-depl.yaml4
-rw-r--r--functest_kubernetes/ims/bono-depl.yaml4
-rw-r--r--functest_kubernetes/ims/cassandra-depl.yaml10
-rw-r--r--functest_kubernetes/ims/chronos-depl.yaml4
-rw-r--r--functest_kubernetes/ims/ellis-depl.yaml4
-rw-r--r--functest_kubernetes/ims/homer-depl.yaml4
-rw-r--r--functest_kubernetes/ims/homestead-depl.yaml4
-rw-r--r--functest_kubernetes/ims/homestead-prov-depl.yaml4
-rw-r--r--functest_kubernetes/ims/ims.py2
-rw-r--r--functest_kubernetes/ims/ralf-depl.yaml4
-rw-r--r--functest_kubernetes/ims/sprout-depl.yaml4
11 files changed, 48 insertions, 0 deletions
diff --git a/functest_kubernetes/ims/astaire-depl.yaml b/functest_kubernetes/ims/astaire-depl.yaml
index 288f6ab8..28f70cc5 100644
--- a/functest_kubernetes/ims/astaire-depl.yaml
+++ b/functest_kubernetes/ims/astaire-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: astaire
spec:
terminationGracePeriodSeconds: 120
+ initContainers:
+ - name: wait-on-etcd
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup etcd; do echo waiting for etcd to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-astaire:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/bono-depl.yaml b/functest_kubernetes/ims/bono-depl.yaml
index a6fe2f9e..8df33bc8 100644
--- a/functest_kubernetes/ims/bono-depl.yaml
+++ b/functest_kubernetes/ims/bono-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: bono
snmp: enabled
spec:
+ initContainers:
+ - name: wait-on-sprout
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-bono:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/cassandra-depl.yaml b/functest_kubernetes/ims/cassandra-depl.yaml
index 053bd3f3..4e415ad7 100644
--- a/functest_kubernetes/ims/cassandra-depl.yaml
+++ b/functest_kubernetes/ims/cassandra-depl.yaml
@@ -12,6 +12,16 @@ spec:
labels:
service: cassandra
spec:
+ initContainers:
+ - name: wait-on-etcd
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup etcd; do echo waiting for etcd to start ...; sleep 2; done']
+ - name: wait-on-astaire
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup astaire; do echo waiting for astaire to start ...; sleep 2; done']
+ - name: wait-on-chronos
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup chronos; do echo waiting for chronos to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-cassandra:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/chronos-depl.yaml b/functest_kubernetes/ims/chronos-depl.yaml
index e5ec00c1..fd891f1a 100644
--- a/functest_kubernetes/ims/chronos-depl.yaml
+++ b/functest_kubernetes/ims/chronos-depl.yaml
@@ -15,6 +15,10 @@ spec:
service: chronos
spec:
terminationGracePeriodSeconds: 120
+ initContainers:
+ - name: wait-on-etcd
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup etcd; do echo waiting for etcd to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-chronos:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/ellis-depl.yaml b/functest_kubernetes/ims/ellis-depl.yaml
index 694c813a..166774b6 100644
--- a/functest_kubernetes/ims/ellis-depl.yaml
+++ b/functest_kubernetes/ims/ellis-depl.yaml
@@ -12,6 +12,10 @@ spec:
labels:
service: ellis
spec:
+ initContainers:
+ - name: wait-on-cassandra
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-ellis:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/homer-depl.yaml b/functest_kubernetes/ims/homer-depl.yaml
index f202ebab..6f0434d0 100644
--- a/functest_kubernetes/ims/homer-depl.yaml
+++ b/functest_kubernetes/ims/homer-depl.yaml
@@ -12,6 +12,10 @@ spec:
labels:
service: homer
spec:
+ initContainers:
+ - name: wait-on-sprout
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-homer:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/homestead-depl.yaml b/functest_kubernetes/ims/homestead-depl.yaml
index 2c447635..142a47e5 100644
--- a/functest_kubernetes/ims/homestead-depl.yaml
+++ b/functest_kubernetes/ims/homestead-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: homestead
snmp: enabled
spec:
+ initContainers:
+ - name: wait-on-sprout
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-homestead:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/homestead-prov-depl.yaml b/functest_kubernetes/ims/homestead-prov-depl.yaml
index 2e5821d8..a934cb7e 100644
--- a/functest_kubernetes/ims/homestead-prov-depl.yaml
+++ b/functest_kubernetes/ims/homestead-prov-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: homestead-prov
snmp: enabled
spec:
+ initContainers:
+ - name: wait-on-sprout
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-homestead-prov:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/ims.py b/functest_kubernetes/ims/ims.py
index 8a610db9..a5074226 100644
--- a/functest_kubernetes/ims/ims.py
+++ b/functest_kubernetes/ims/ims.py
@@ -9,6 +9,8 @@
"""Deploy and Test Clearwater vIMS using Kubernetes"""
+from __future__ import division
+
import logging
import time
import re
diff --git a/functest_kubernetes/ims/ralf-depl.yaml b/functest_kubernetes/ims/ralf-depl.yaml
index 839da428..829e6359 100644
--- a/functest_kubernetes/ims/ralf-depl.yaml
+++ b/functest_kubernetes/ims/ralf-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: ralf
snmp: enabled
spec:
+ initContainers:
+ - name: wait-on-sprout
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-ralf:latest"
imagePullPolicy: Always
diff --git a/functest_kubernetes/ims/sprout-depl.yaml b/functest_kubernetes/ims/sprout-depl.yaml
index ab4d8acf..af6bc660 100644
--- a/functest_kubernetes/ims/sprout-depl.yaml
+++ b/functest_kubernetes/ims/sprout-depl.yaml
@@ -13,6 +13,10 @@ spec:
service: sprout
snmp: enabled
spec:
+ initContainers:
+ - name: wait-on-cassandra
+ image: busybox:1.28
+ command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- image: "ollivier/clearwater-sprout:latest"
imagePullPolicy: Always