From: Manuel Buil Date: Mon, 4 Mar 2019 16:19:45 +0000 (+0100) Subject: Add the baremetal case to README X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F67171%2F2;p=releng-xci.git Add the baremetal case to README Change-Id: I3977c3d99b06b2548259e8765c262eb996ba30cf Signed-off-by: Manuel Buil --- 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 }