summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2019-03-04 17:19:45 +0100
committerManuel Buil <mbuil@suse.com>2019-03-04 21:28:25 +0100
commitd5e4d8b5f09b0bfab483aa24208e26efcde164d4 (patch)
treee65640ff4daa9a75497cec6bbf851157acc3c518
parentc0a49c2779e408afe85ab44ff4b6ed1c843fa1f3 (diff)
Add the baremetal case to README
Change-Id: I3977c3d99b06b2548259e8765c262eb996ba30cf Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--xci/README.rst31
-rw-r--r--xci/files/xci-lib.sh2
2 files changed, 32 insertions, 1 deletions
diff --git a/xci/README.rst b/xci/README.rst
index d7555d46..a18d92ee 100644
--- a/xci/README.rst
+++ b/xci/README.rst
@@ -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
==============
diff --git a/xci/files/xci-lib.sh b/xci/files/xci-lib.sh
index fc6292a6..75e957f9 100644
--- a/xci/files/xci-lib.sh
+++ b/xci/files/xci-lib.sh
@@ -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
}