modfiied to reflect the supported version only. 81/52381/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Tue, 20 Feb 2018 18:47:15 +0000 (12:47 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 20 Feb 2018 20:20:01 +0000 (14:20 -0600)
Change-Id: Ib8fd3588376a160a4e1c9260ed7a6b51635f6152
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/genBundle.py
ci/k8.sh

index ffe9cb8..2bd62db 100644 (file)
@@ -200,12 +200,12 @@ if 'radosgwcluster' in extra:
 if 'hugepages' in extra:
     config['os']['beta']['huge_pages'] = True
     config['os']['beta']['cpu_pin'] = True
-if 'mitaka' in extra:
-    config['os']['release'] = 'mitaka'
+if 'ocata' in extra:
+    config['os']['release'] = 'ocata'
 if 'trusty' in extra:
     config['ubuntu']['release'] = 'trusty'
-    if 'liberty' in extra:
-        config['os']['release'] = 'liberty'
+    if 'ocata' in extra:
+        config['os']['release'] = 'mitaka'
 if 'xenial' in extra:
     config['ubuntu']['release'] = 'xenial'
 if 'dishypcon' in extra:
index 51b2f57..e260733 100755 (executable)
--- a/ci/k8.sh
+++ b/ci/k8.sh
@@ -3,6 +3,19 @@ set -ex
 
 opnfvfeature=$1
 
+juju scp kubernetes-master/0:/home/ubuntu/config ~/joid_config/config
+
+configk8(){
+cat <<-EOF
+export KUBECONFIG=~/joid_config/config
+export KUBERNETES_PROVIDER=local
+export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1`
+export KUBE_MASTER_URL=http://${KUBE_MASTER_IP}:6443
+EOF
+}
+
+configk8 > ~/joid_config/k8config
+
 juju run-action kubernetes-worker/0 microbot replicas=3
 juju config kubernetes-master enable-dashboard-addons=true || true
 juju expose kubernetes-worker || true