Add the baremetal case to README 71/67171/2
authorManuel Buil <mbuil@suse.com>
Mon, 4 Mar 2019 16:19:45 +0000 (17:19 +0100)
committerManuel Buil <mbuil@suse.com>
Mon, 4 Mar 2019 20:28:25 +0000 (21:28 +0100)
Change-Id: I3977c3d99b06b2548259e8765c262eb996ba30cf
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/README.rst
xci/files/xci-lib.sh

index d7555d4..a18d92e 100644 (file)
@@ -160,6 +160,37 @@ execute sandbox script
 
     ./xci-deploy.sh
 
+Baremetal Usage
+--------------
+
+The previous deployments are based on VMs, i.e. controllers and computes are
+VMs. It is also possible to deploy on baremetal and for that a pdf and idf file
+which describes the hardware needs to be provided to the sandbox script:
+
+clone OPNFV releng-xci repository
+
+    git clone https://gerrit.opnfv.org/gerrit/releng-xci.git
+
+change into directory where the sandbox script is located
+
+    cd releng-xci/xci
+
+set the sandbox flavor
+
+    export XCI_FLAVOR=noha
+
+set the version to use for openstack-ansible
+
+    export OPENSTACK_OSA_VERSION=master
+
+set where the logs should be stored
+
+    export LOG_PATH=/home/jenkins/xcilogs
+
+execute sandbox script
+
+    ./xci-deploy.sh -i var/ericsson-pod2-idf.yml -p var/ericsson-pod2-pdf.yml
+
 ==============
 User Variables
 ==============
index fc6292a..75e957f 100644 (file)
@@ -52,7 +52,7 @@ function bootstrap_xci_env() {
     source "$XCI_PATH/xci/installer/${INSTALLER_TYPE}/env" &>/dev/null || true
     # source xci configuration
     source $XCI_PATH/xci/config/env-vars
-    # source the baremetal variable
+    # baremetal variable to true if the vendor in the pdf is not libvirt
     grep -o vendor.* ${PDF} | grep -q libvirt && export BAREMETAL=false || export BAREMETAL=true
 }