summaryrefslogtreecommitdiffstats
path: root/xci/files/xci-lib.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-08-31Suppress package manager stdout in utility scriptsFatih Degirmenci1-3/+3
installer-type:kubespray deploy-scenario:k8-calico-nofeature JIRA: XCI-22 Change-Id: I59e072f25185fe1824469d94926b7064a3bb04ff Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-08-22Support for py3Manuel Buil1-7/+0
This patch provides support for py3 in the deployment host and the OPNFV VM. Some extra changes will need to happen in the future when distros disclose how they will react to the py2 expiration. * virtualbmc version is upgraded to 1.5 because 1.3 is not compatible with py3 * The dynamic inventory is slightly modified because it was using functionality that changes in py3 * pip3 check is removed as Ansible now works with py3 deploy-scenario:k8-calico-nofeature installer-type:osh Change-Id: I34178ebc357b0a299c0017d6f9e596b815c77b3b Signed-off-by: Manuel Buil <mbuil@suse.com>
2019-08-01Introduction of Openstack-helm as installernikoskarandreas1-1/+2
This patch creates a new installer tree in xci that uses openstack-helm to deploy openstack on a kubernetes cluster. USAGE: Export INSTALLER_TYPE=osh, DEPLOY_SCENARIO=k8-calico-nofeature and XCI_FLAVOR=noha or mini and run xci-deploy.sh as in documentation. deploy-scenario:k8-calico-nofeature installer-type:osh Change-Id: I212f70eb51c2a38c798c11367d2ebb8bf5f4a1de Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
2019-06-12Pin ara version to 0.16.4Nikos Mimigiannis1-1/+1
The ara module just released an update which changes how the module can be imported. As a result, the xci-deploy script immediately fails when trying to setup the virtualenv. This patch sets ara to its previous version (ara==0.16.4). Change-Id: Ic54d18dc877857389e8b36bbf2e8bf4b70bc2812 Signed-off-by: Nikos Mimigiannis <nmimi@intracom-telecom.com>
2019-03-04Add the baremetal case to READMEManuel Buil1-1/+1
Change-Id: I3977c3d99b06b2548259e8765c262eb996ba30cf Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-11-05xci: files: Also collect BIFROST env variables for bug reportsMarkos Chandras1-1/+1
Bifrost is exposing quite a few variables so we need to collect them as well. Change-Id: I7e7ca7a093f35a0acb53af360e58444f6c1de7e4 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-10-26Bug fix: match only the scenario nameManuel Buil1-1/+1
Since this week we have two sfc scenarios: - os-odl-sfc - os-odl-sfc_osm When $DEPLOY_SCENARIO=os-odl-sfc, using the current code testing_role gets two values: os-odl-sfc os-odl-sfc_osm This patch adds '$' character to prevent matching scenarios which concatenate characters after $DEPLOY_SCENARIO Change-Id: Ia0782362da04e8b3ecd2ec6f13ccc8c404797fda Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-01[Baremetal] Include a baremetal variableManuel Buil1-0/+2
It switches between parts of the code which are specific for baremetal or non-baremetal. Those parts come with this patch: https://gerrit.opnfv.org/gerrit/#/c/60797 It also selects different variables when calling the opnfv-virtual.yml playbook: https://gerrit.opnfv.org/gerrit/#/c/60795 It decides the value of BAREMETAL based on the vendor value of the pdf Change-Id: I8e6171f4f21db7f814a472e6ed1bacb30220b4ec Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-19xci: Add ability to pass command line options to xci-deploy.shMarkos Chandras1-0/+29
We now support multiple PDF files so instead of introducing another env variable, we can simply pass this information as command line arguments to xci-deploy.sh. We can extend the script to allow more options line verbosity, scenario name, functest details etc so we can get rid of multiple env variables. Change-Id: I6c4a8d6e8b70e91746a659de923fee19019ed5e0 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-10xci-lib: Allow more openSUSE IDsMarkos Chandras1-1/+1
Leap 15 is using ID=opensuse-leap and Tumbleweed is using ID=opensuse-tumbleweed so we should extend the regexp to match these distributions as well. This allows XCI to support more openSUSE variants as deployment hosts. Change-Id: I8bf8e7b15fc00c45807ff92fbc14d7ec79ec4bcb Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-26xci: xci-lib.sh: Install shade and python-pyyaml on the deployment nodeMarkos Chandras1-2/+5
In preparation for using PDF/IDF to deploy nodes in XCI, we need to have shade and python-pyyaml on the host since these are requirements for the OpenStack Ansible modules (eg os_ironic) and the dynamic inventories. Change-Id: Ie26af0dc58599af6e29a47d91707976dcf16ac6d Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-04xci: xci-lib.sh: Use the OSA requirements file for pip componentsMarkos Chandras1-3/+2
OpenStack-Ansible maintains a requirements file which ensure that a working combination of pip/setuptools/wheels/virtualenv can be mixed up with distro packages so it's beneficial to take that into consideration when building our environment. Change-Id: Ic5398de3e464e1526f8d9fb6b6460907ac30084a Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-18xci: Move the rest of functions to xci-lib.shMarkos Chandras1-0/+53
The xci-deploy.sh contains several functions used throughout in the XCI deployment so we should move thse to xci-lib.sh file. Change-Id: Iae6751619beea85b894900e5cd2f91a433410f66 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-18xci: file: xci-lib.sh: Avoid sourcing xci-lib.sh twiceMarkos Chandras1-0/+3
The file can be sourced from multiple places so we need to avoid sourcing it twice. Change-Id: I7d47f3d7e461d90d5456c95a1f7a791b4e3a2bde Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-18xci: Move sourcing of configuration files to the install-lib.shMarkos Chandras1-0/+215
The install-lib.sh assumes that certain configuration files have been loaded before it's sourced. However, this doesn't work well when other scripts are using install-lib.sh directly since they also need to load the same configuration files. As such, lets source all these configuration files from the install-lib.sh file directly. We also rename this file to 'xci-lib.sh' since it's not just about installation helpers anymore. Change-Id: I35e1e804db06b2bb512e4991e5fdf21a72ffaadb Signed-off-by: Markos Chandras <mchandras@suse.de>