Fix idf for k8s 81/63281/9
authorManuel Buil <mbuil@suse.com>
Mon, 8 Oct 2018 16:14:06 +0000 (18:14 +0200)
committerManuel Buil <mbuil@suse.com>
Fri, 12 Oct 2018 20:34:45 +0000 (22:34 +0200)
deploy-scenario:k8-calico-nofeature
installer-type:kubespray

Change-Id: If1c9f5908f39f9c09efb86e27a3f3883b4cd75b9
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/installer/kubespray/deploy.sh
xci/playbooks/roles/create-nodes/tasks/create_vm.yml
xci/var/idf.yml

index 98b1dcd..48ef745 100755 (executable)
@@ -69,14 +69,17 @@ if [ $XCI_FLAVOR != "aio" ]; then
     echo "Info: Configured target hosts for kubespray"
 fi
 
+
 echo "Info: Using kubespray to deploy the kubernetes cluster"
 echo "-----------------------------------------------------------------------"
 ssh root@$OPNFV_HOST_IP "set -o pipefail; export XCI_FLAVOR=$XCI_FLAVOR; export INSTALLER_TYPE=$INSTALLER_TYPE; \
+        export IDF=/root/releng-xci/xci/var/idf.yml; export PDF=/root/releng-xci/xci/var/pdf.yml; \
         cd releng-xci/.cache/repos/kubespray/; ansible-playbook \
         -i opnfv_inventory/dynamic_inventory.py cluster.yml -b | tee setup-kubernetes.log"
 scp root@$OPNFV_HOST_IP:~/releng-xci/.cache/repos/kubespray/setup-kubernetes.log \
         $LOG_PATH/setup-kubernetes.log
 
+
 cd $K8_XCI_PLAYBOOKS
 ansible-playbook ${XCI_ANSIBLE_PARAMS} \
     -i ${XCI_PLAYBOOKS}/dynamic_inventory.py configure-kubenet.yml
index df019c8..4afb71c 100644 (file)
       PATH: "{{ lookup('env', 'XCI_VENV') }}/bin"
     register: vbmc_list
 
+  - debug: var=vbmc_list
+
   # NOTE(NobodyCam): Space at the end of the find clause is required for proper matching.
   - name: delete vm from virtualbmc if it is there
     command: vbmc delete {{ vm_name }}
     environment:
       PATH: "{{ lookup('env', 'XCI_VENV') }}/bin"
 
+  - name: get list of nodes from virtualbmc
+    command: vbmc list
+    environment:
+      PATH: "{{ lookup('env', 'XCI_VENV') }}/bin"
+    register: vbmc_list2
+
+  - debug: var=vbmc_list2
+
   - name: get XML of the vm
     virt:
       name: "{{ vm_name }}"
index 628e1b8..7f20c3b 100644 (file)
@@ -84,6 +84,17 @@ idf:
       node3: node2
       node4: master2
       node5: master3
+    network:
+      # network mapping
+      network_mapping:
+        # Management network used by installer components to communicate
+        net-mgmt: mgmt
+        # Storage Network
+        net-storage: storage
+        # Internal network for communication between VNF
+        net-internal: private
+        # Public network for VNF remote acces (ext-net in Openstack)
+        net-vnf: public
 xci:
   pod_name: vpod1
   net_config: *net_config