From d5e4d8b5f09b0bfab483aa24208e26efcde164d4 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 4 Mar 2019 17:19:45 +0100 Subject: Add the baremetal case to README Change-Id: I3977c3d99b06b2548259e8765c262eb996ba30cf Signed-off-by: Manuel Buil --- xci/README.rst | 31 +++++++++++++++++++++++++++++++ xci/files/xci-lib.sh | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) (limited to 'xci') 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 } -- cgit 1.2.3-korg