Fix anteater issue with use of /tmp 21/51821/1
authorBryan Sullivan <bryan.sullivan@att.com>
Wed, 7 Feb 2018 01:59:32 +0000 (20:59 -0500)
committerBryan Sullivan <bryan.sullivan@att.com>
Wed, 7 Feb 2018 01:59:32 +0000 (20:59 -0500)
JIRA: MODELS-2

Change-Id: Idaa27036b8d2ec67c3893a57dd57beae4b558551
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
tests/k8s-cloudify-clearwater.sh

index 00fe592..9696b0b 100644 (file)
@@ -132,8 +132,9 @@ while [[ "$status" != "Running" ]]; do
   sleep 10
   status=$(kubectl get pods -o json --namespace default $hpod | jq -r '.status.phase')
 done
-kubectl cp $hpod:/usr/share/clearwater/bin/clearwater-socket-factory-sig-wrapper /tmp/clearwater-socket-factory-sig-wrapper -c homestead
-kubectl cp $hpod:/usr/share/clearwater/bin/clearwater-socket-factory-mgmt-wrapper /tmp/clearwater-socket-factory-mgmt-wrapper -c homestead
+mkdir ~/tmp
+kubectl cp $hpod:/usr/share/clearwater/bin/clearwater-socket-factory-sig-wrapper ~/tmp/clearwater-socket-factory-sig-wrapper -c homestead
+kubectl cp $hpod:/usr/share/clearwater/bin/clearwater-socket-factory-mgmt-wrapper ~/tmp/clearwater-socket-factory-mgmt-wrapper -c homestead
 kubectl delete deployment --namespace default homestead-prov
 kubectl delete service --namespace default homestead-prov
 cd clearwater-docker/kubernetes
@@ -153,8 +154,8 @@ while [[ "$status" != "Running" ]]; do
   status=$(kubectl get pods -o json --namespace default $hppod | jq -r '.status.phase')
 done
 
-kubectl cp /tmp/clearwater-socket-factory-sig-wrapper $hppod:/usr/share/clearwater/bin/clearwater-socket-factory-sig-wrapper  -c homestead-prov
-kubectl cp /tmp/clearwater-socket-factory-mgmt-wrapper $hppod://usr/share/clearwater/bin/clearwater-socket-factory-mgmt-wrapper -c homestead-prov
+kubectl cp ~/tmp/clearwater-socket-factory-sig-wrapper $hppod:/usr/share/clearwater/bin/clearwater-socket-factory-sig-wrapper  -c homestead-prov
+kubectl cp ~/tmp/clearwater-socket-factory-mgmt-wrapper $hppod://usr/share/clearwater/bin/clearwater-socket-factory-mgmt-wrapper -c homestead-prov
 EOF
 }
 
@@ -175,13 +176,6 @@ spec:
       - sleep
       - "3600"
     imagePullPolicy: IfNotPresent
-    volumeMounts:
-    - mountPath: /tmp
-      name: tmp
-  volumes:
-  - name: tmp
-    hostPath:
-      path: /tmp
   restartPolicy: Always
 EOF
 kubectl create -f ~/clearwater-live-test.yaml