summaryrefslogtreecommitdiffstats
path: root/xci
AgeCommit message (Collapse)AuthorFilesLines
2018-09-03Merge "Revert "xci: osa: Disable haproxy ssl configuration""Markos Chandras8-64/+8
2018-09-03Revert "xci: osa: Disable haproxy ssl configuration"Markos Chandras8-64/+8
This reverts commit 42501f0ef7e0f0729b1c780102fb9713ef383fb3. This also removes the entire SSL management code and we let the haproxy_server role generate the certificates for us. We also need to bump the openrc role to include an upstream patch which fixes the openrc template file. deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: I9bb590c9f1d5bc63519cfb4794dc15f794cc5b07 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-31xci: Bump Bifrost components to the HEAD of Rocky releaseMarkos Chandras2-12/+12
The bifrost and ironic SHAs are from the Stein release which is still in early days of development. We should use Rocky SHAs for the time being. However, bifrost from Rocky does not support Ansible > 2.4 so we have to use bifrost from master branch but all the ironic components have to be from the Rocky release. Change-Id: I1acb28e4a292c774d681519517be19a2da230851 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-31Merge "Download only necessary images for functest-smoke"Fatih Degirmenci1-2/+9
2018-08-31Merge "xci: roles: create-vm-nodes: Always provision VM nodes"Markos Chandras3-23/+18
2018-08-31Download only necessary images for functest-smokeFatih Degirmenci1-2/+9
Functest download_images.sh script downloads images that are not needed for functest-smoke so we only download the necessary images to cut the time down. deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: I0be643c4ccd4b8009e68433f5d635231afd2550a Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-30xci: Bump Kubespray SHA and sync Ansible versionsFatih Degirmenci2-4/+5
This change - bumps kubespray version to 8b3ce6e418ccf48171eb5b3888ee1af84f8d71ba, taking Kubernetes version from 1.10.2 to 1.10.4. - pins Ansible version used by Kubespray to same Ansible version as the rest. The var kept as is in case if we need to pin Kubespray to a different Ansible version in future. installer-type:kubespray deploy-scenario:k8-calico-nofeature Change-Id: Iefbe82f0b9b10296e4362bca07630047c56630ac Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-30Merge "xci: Bump OSA and bifrost SHAs"Markos Chandras4-106/+119
2018-08-30xci: Bump OSA and bifrost SHAsMarkos Chandras4-106/+119
This change - bumps OSA SHA to b9d9269528ecbe04b2638a73c2b0f49839f27422 - bumps bifrost SHA to 0d0cfd908d10a670668619c575fd338d1ff328b7 - Pins Ansible to 2.5.8. OSA is using 2.5.5 which has a bug in the pause module so we need to use something newer. Change-Id: Idf05bbef880db11de4a41464ae5080aa21a0613c Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-30Merge "Install xz utility on deployment host"Fatih Degirmenci1-0/+3
2018-08-30xci: roles: create-vm-nodes: Always provision VM nodesMarkos Chandras3-23/+18
The role used to get the output of 'virsh list --all' to determine how many VMs are present and shut off in the system. This takes *all* VMs on the system into consideration so it may skip creation of some or all of the XCI VMs if we happen to have other VMs present. We can improve the situation by simply dropping this check and always provision the VMs we want. If the VM is already present, then the module will simply do a sanity check of its configuration. This allows XCI to run alongside other VMs. Change-Id: I54255a1959509671c0305f48f23a55b6e900684f Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-28Merge "Move OSM variables to os-nosdn-osm scenario"Fatih Degirmenci3-9/+0
2018-08-24Align idfs and separate admin and managementManuel Buil5-6/+10
According to OpenStack admin is the network for pxe boot and mgmt is the network for OpenStack services to communicate. We were using both in XCI indistinctly Change-Id: I3959e767098ac2be7161a5e84735fde9ab129784 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-24Merge "Modify idf to be aligned with the rest of idfs"Manuel Buil2-41/+42
2018-08-23[xci] integrate istio in XCIwutianwei2-2/+18
using kubespary to deploy the istio, kubespary support to deploy istio installer-type:kubespray deploy-scenario:k8-nosdn-istio Change-Id: Id8c04936187c89fafa921dada382a0e9e11aab27 Signed-off-by: wutianwei <wutianwei1@huawei.com> Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-22Print OpenStack login information at the endFatih Degirmenci1-15/+16
The info is logged to the console before post-deployment tasks and this makes it seeing the deployment status and login info inconvenient. This change moves the logging to the end, after post-deployment. Change-Id: Ic7e232a0b8343e666f54087fbcc09481ab59ca90 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-21Move OSM variables to os-nosdn-osm scenarioFatih Degirmenci3-9/+0
This change removes OSM variables from releng-xci repo since they are declared in os-nosdn-osm scenario itself in releng-xci-scenarios repo. In order for this change to be verified, below change must be submitted. https://gerrit.opnfv.org/gerrit/#/c/61205/ installer-type:osa deploy-scenario:os-nosdn-osm Change-Id: I9f3a1dbdfecfb2bb08cc215758bdc52aefcdf697 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-21Install xz utility on deployment hostFatih Degirmenci1-0/+3
Functest Smoke test requires additional images to be available during testing. One of the images is decompressed using xz and we need this to be available on deployment host in order to be able to have the images available for Functest execution. Change-Id: I5647b3bef37fc55e8c5cc9aec5d0b2c3ea628b8a Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-21Modify idf to be aligned with the rest of idfsManuel Buil2-41/+42
Change our idf to be more aligned with lf's idf. Adapt dynamic_inventory.py to the change Change-Id: Ib8f6d1684a00a8eb5ae06d5d04d308d4325cd444 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-21xci: Bump OSA and bifrost SHAsFatih Degirmenci6-119/+158
This change - bumps OSA SHA to cbfdb7dc295ff702044b807336fab067d84a3f20 (mostly based on Rocky RC1) - bumps bifrost SHA to c1c6fb7487d5b967624400623fd35aabf303b917 - pins Ansible to 2.4.6.0 - switches to ollivier/functest-healtcheck since OS is bumped to Rocky Change-Id: Icc14e3e794b489dafd78b426c54051a3732ccb1a Signed-off-by: Fatih Degirmenci <fdegir@gmail.com> Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-16Update SHA for ODLManuel Buil1-1/+1
Deployment not working because of a bug. This bug gets fixed with the new SHA Change-Id: I91c6df6bf7ea10492265466ebdfbf4264492936b Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-10xci: Restrict virtualbmc to version 1.3Markos Chandras1-0/+1
Version 1.4 brings in additional dependencies and it's currently not used in OpenStack anyway. So lets stick to 1.3 for now. Change-Id: I2489168cae12f7fa3271c2de7d4fcf37bdb97810 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-10Force remove ~/.vbmc folder in case if it doesn't existFatih Degirmenci1-1/+1
Change-Id: If87afa892a0c39d082cb1563e1c019f46b742169 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-10Merge changes from topic 'extend-suse-support-id-skip-verify'Markos Chandras4-11/+20
* changes: xci: xci-destroy-env.sh: Update virtualbmc path xci: create-vm-nodes: Install virtualbmc in the XCI virtualenv xci: osa: Drop openSUSE mirror variables
2018-08-10Merge "Integrate os-nosdn-osm scenario"Fatih Degirmenci6-1/+101
2018-08-10Merge "xci-lib: Allow more openSUSE IDs"Manuel Buil2-2/+2
2018-08-10xci: xci-destroy-env.sh: Update virtualbmc pathMarkos Chandras1-9/+9
Bifrost no longer installs on the deployment host so we don't need to look into the bifrost venv for a vbmc installation. Moreover, XCI uses virtualenv by default, so we should only look there for vbmc. Finally, we should clear vbmc config files from previous deployments since that could leave artifacts behind. Change-Id: I4cd35636a65e1823c9e4ca9a7c5b17d4b103c6a2 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-10xci: create-vm-nodes: Install virtualbmc in the XCI virtualenvMarkos Chandras2-0/+9
XCI prepares a virtualenv for us, so we should install virtualbmc in it. Change-Id: I320d1c7cad9c5c821269b55252cb7ab4f5136f40 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-10xci: osa: Drop openSUSE mirror variablesMarkos Chandras1-2/+2
we let downloads.opensuse.org redirect us to a good one since the hardcoded one does not appear to work anymore. Ansible gets upset if we feed it an empty variables file, so we set a couple of variables there to make it happy. Change-Id: I887522ebc71dd866d544e75beeff47af6111e059 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-10xci-lib: Allow more openSUSE IDsMarkos Chandras2-2/+2
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-08-09Integrate os-nosdn-osm scenarioFatih Degirmenci6-1/+101
This change integrates os-nosdn-osm scenario. The installation of OSM is done as post-deployment. This is achieved by the addition of the new playbook named post-deployment.yml in scenario role folder. This mechanism is available for all OpenStack scenarios. If anything needs to be done for a specific scenario as part of the post-deployment, it can be achieved by creating playbook post-deployment.yml. If post-deployment.yml exists in scenario role, the framework will run it once the regular deployment playbooks are run successfully. If the file does not exist, it will be skipped. The location of the post-deployment.yml is releng-xci-scenarios/<scenario>/role/<scenario>/tasks/post-deployment.yml This is only implemented for OpenStack scenarios currently and similar mechanism is needed for K8S scenarios as well which will be implemented in a separate change. installer-type:osa deploy-scenario:os-nosdn-osm Change-Id: I16780abffca39699eb2f38f662479f0e4d551504 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-09Merge "scripts: start-new-vm: Do not upgrade packages on the host"Manuel Buil1-7/+4
2018-08-08scripts: start-new-vm: Do not upgrade packages on the hostMarkos Chandras1-7/+4
Upgrading the host could bring undesired side effects so we should not do that as part of CI deployment. Change-Id: Ib776cdf96943e22155c2dd47fdadb3e8a86f6143 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-08Resize OPNFV VM DiskFatih Degirmenci1-0/+6
OPNFV VM creation is separated from the rest of the nodes, resulting in its disk being left without resizing. It is important to resize its disk to the value defined in its PDF opnfv_vm.yml so the installation of the other tools does not fail due to lack of space. Change-Id: I8300e6e355d11788cc983fcebca56076e89918e1 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-07-05Merge "xci: osa: Disable haproxy ssl configuration"Markos Chandras3-3/+9
2018-07-04Merge "Disable the flavor aio and set default flavor to mini"Markos Chandras2-6/+1
2018-07-04xci: osa: Disable haproxy ssl configurationMarkos Chandras3-3/+9
The self-signed certificates are causing troubles so until we implement a proper certificate chain in XCI we should disable the SSL endpoints. Change-Id: Ife4ef78de1569121c435a806924a3f90917fd85b Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-30Disable the flavor aio and set default flavor to miniFatih Degirmenci2-6/+1
The flavor all-in-one (aio) hasn't been maintained well and the stability of it is in question. This change disables the flavor aio and sets the default flavor to mini. It is important for XCI to enable the aio back in order to help users who want to try XCI but don't have big enough machine to go for bigger flavors. However, we need to verify all flavors for acceptable user experience so the flavor can only be enabled back once this happens. Change-Id: I053c8fec78876dea71439f1f1bd737a105254ad4 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-06-28Use PDF to set up the XCI VMsManuel Buil16-215/+341
This patch is doing the first work item of the spec: https://github.com/opnfv/releng-xci/blob/master/docs/specs/infra_manager.rst It creates the required VMs by XCI to afterwards deploy the VIM. It does that by reading the pdf provided by the user. - It is currently assumed that the OS for the VM will be installed in the first disk of the node described by the pdf - It is assumed that the opnfv VM characteristics are not described in the pdf but in a similar document called opnfv_vm.yml - All references to csv from bifrost-create-vm-nodes were removed Change-Id: I46a85284e4ce7df21cbf66f66619b35f74251e68 Signed-off-by: Manuel Buil <mbuil@suse.com> Co-Authored-by: Markos Chandras <mchandras@suse.de>
2018-06-26xci: playbooks: manage-ssh-keys: Create regular user and SSH keysMarkos Chandras1-0/+9
We may need to perform non-root tasks on the nodes, so we should have a regular user present as well. Change-Id: I0b824f1875ce04fe67424fc96e754e06da53be8d Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-26xci: var: opnfv_vm: Add descriptor file for OPNFV VM nodeManuel Buil1-0/+67
The OPNFV VM acts as a sandbox for installing and running bifrost so it is pdf agnostic. As such, we use its own descriptor file to provision this node. Change-Id: Ice33dc744c04147f9c746285c583de56b8353cc3 Co-Authored-by: Markos Chandras <mchandras@suse.de> Signed-off-by: Manuel Buil <mbuil@suse.com>
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-26xci: roles: create-vm-nodes: Add role for creating XCI VM nodesManuel Buil12-0/+704
Add a new role based on the bifrost one to create nodes for the bifrost virtual deployments. This role will install and configure libvirt on the host, download a prebuilt OPNFV VM image and deploy the OPNFV VM using that image. Moreover, it will create the rest of the nodes for the virtual deployment which will be configured by bifrost later on. Change-Id: I9fbd084261351d3b53ae373060f43df046191c5e Co-Authored-by: Markos Chandras <mchandras@suse.de> Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-06-26Pin functest-healthcheck docker image to known shaFatih Degirmenci2-2/+4
Functest changes have significant impact which blocks everything in XCI so this change pins the image to a known sha to get the original set of healthcheck testcases until the impacts are analysed and concerns are raised to Functest and the wider OPNFV Community and addressed based on community consensus. Pinned version of functest-healthcheck contains the test cases below. - connection_check - api_check - snaps_health_check deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: Ic9222af8c27e58491b7b60a7504df9d792b5e753 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-06-25Merge "xci: vm: start-new-vm: Copy deployment image to clean VM"Markos Chandras1-0/+3
2018-06-22xci: vm: start-new-vm: Copy deployment image to clean VMMarkos Chandras1-0/+3
In order to save us some time and bandwidth we can copy the deployment image to the clean VM in order to be used by bifrost to prepare the virtual machines. Moreover, we also put our key there so we can ssh as the root user. Change-Id: Id21e19aaefde71862c21180129c664c1bf121c32 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-15Merge "xci: dynamic_inventory: Add new entry for deployment_host"Markos Chandras1-0/+5
2018-06-12xci: dynamic_inventory: Add new entry for deployment_hostMarkos Chandras1-0/+5
The deployment host is normally the host which runs the various playbooks so we add a new entry in the inventory for localhost. Change-Id: I43baddf4fabd69579c1a02f55ece230a062c2d9b Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-06-07Merge "roles: bootstrap-host: Ensure DNS info from IDF is respected"Markos Chandras6-6/+22
2018-06-06xci: osa: switch back from GitHub to OpenStack OSA reposMarkos Chandras3-84/+80
Switching to github.com for the gitclones did not make much of a difference since we are still seeing randomg SSL failures during git clones. So we can switch back to git://git.openstack.org hoping that the git protocol will be more efficient than https. Moreover some projects are moving away from github mirroring and this breaks our tests. Change-Id: I8188ec7cbfbf16eeb4634bd9a44b12a104ce1059 Signed-off-by: Markos Chandras <mchandras@suse.de>