Markos Chandras [Fri, 31 Aug 2018 12:33:40 +0000 (13:33 +0100)]
playbooks: configure-opnfvhost: Ensure we copy only the tracked files
This prevents rsync spending time copying temporary files which may have
been created during a CI run.
deploy-scenario:os-nosdn-nofeature
installer-type:osa
Change-Id: Ie02e0dbfc06b8fac40d6b90c4c99e361ecf1c0b2
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Mon, 3 Sep 2018 15:58:40 +0000 (16:58 +0100)]
xci: osa: Update ansible role for configuring the proxy server
The old role has disappeared so we have to use another one.
Change-Id: I8533912a19680e93a9cf061109019a0801485936
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Fri, 31 Aug 2018 08:52:00 +0000 (10:52 +0200)]
Rename functest-prepare role to prepare-tests
This change renames functest prepare-tole to prepare tests and makes other
adjustments to the role to move common test preparation steps to its own
script so we can prepare for Functest and Yardstick at one go.
Similar things are required to be prepared for running Functest and Yardstick
such as
- installed packages
- external network creation
- creation of run-functest.sh and run-yardstick scripts from templates
- preparation of environment variables
This change will fail verification until the changes below is submitted.
https://gerrit.opnfv.org/gerrit/#/c/61645/
Change-Id: Id1020d3e61abd3f087863c06a132c5021339d655
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Markos Chandras [Mon, 3 Sep 2018 09:07:21 +0000 (09:07 +0000)]
Merge "Revert "xci: osa: Disable haproxy ssl configuration""
Markos Chandras [Tue, 28 Aug 2018 13:55:28 +0000 (14:55 +0100)]
Revert "xci: osa: Disable haproxy ssl configuration"
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>
Markos Chandras [Fri, 31 Aug 2018 10:14:51 +0000 (11:14 +0100)]
xci: Bump Bifrost components to the HEAD of Rocky release
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>
Fatih Degirmenci [Fri, 31 Aug 2018 09:48:46 +0000 (09:48 +0000)]
Merge "Download only necessary images for functest-smoke"
Markos Chandras [Fri, 31 Aug 2018 09:26:04 +0000 (09:26 +0000)]
Merge "xci: roles: create-vm-nodes: Always provision VM nodes"
Fatih Degirmenci [Fri, 31 Aug 2018 06:41:23 +0000 (08:41 +0200)]
Download only necessary images for functest-smoke
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>
Fatih Degirmenci [Thu, 30 Aug 2018 20:18:43 +0000 (22:18 +0200)]
xci: Bump Kubespray SHA and sync Ansible versions
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>
Markos Chandras [Thu, 30 Aug 2018 20:07:27 +0000 (20:07 +0000)]
Merge "xci: Bump OSA and bifrost SHAs"
Markos Chandras [Thu, 30 Aug 2018 16:21:13 +0000 (17:21 +0100)]
xci: Bump OSA and bifrost SHAs
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>
Fatih Degirmenci [Thu, 30 Aug 2018 16:33:21 +0000 (16:33 +0000)]
Merge "Install xz utility on deployment host"
Markos Chandras [Wed, 29 Aug 2018 09:43:50 +0000 (10:43 +0100)]
xci: roles: create-vm-nodes: Always provision VM nodes
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>
Fatih Degirmenci [Tue, 28 Aug 2018 11:39:13 +0000 (11:39 +0000)]
Merge "Move OSM variables to os-nosdn-osm scenario"
Manuel Buil [Tue, 14 Aug 2018 06:25:06 +0000 (08:25 +0200)]
Align idfs and separate admin and management
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>
Manuel Buil [Fri, 24 Aug 2018 08:21:25 +0000 (08:21 +0000)]
Merge "Modify idf to be aligned with the rest of idfs"
wutianwei [Wed, 13 Jun 2018 03:53:14 +0000 (11:53 +0800)]
[xci] integrate istio in XCI
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>
Fatih Degirmenci [Tue, 21 Aug 2018 12:55:28 +0000 (14:55 +0200)]
Print OpenStack login information at the end
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>
Fatih Degirmenci [Tue, 21 Aug 2018 20:09:24 +0000 (22:09 +0200)]
Move OSM variables to os-nosdn-osm scenario
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>
Fatih Degirmenci [Tue, 21 Aug 2018 15:27:30 +0000 (17:27 +0200)]
Install xz utility on deployment host
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>
Manuel Buil [Mon, 13 Aug 2018 13:43:34 +0000 (15:43 +0200)]
Modify idf to be aligned with the rest of idfs
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>
Fatih Degirmenci [Tue, 12 Jun 2018 15:39:04 +0000 (17:39 +0200)]
xci: Bump OSA and bifrost SHAs
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>
Manuel Buil [Thu, 16 Aug 2018 17:34:13 +0000 (19:34 +0200)]
Update SHA for ODL
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>
Markos Chandras [Fri, 10 Aug 2018 13:37:22 +0000 (16:37 +0300)]
xci: Restrict virtualbmc to version 1.3
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>
Fatih Degirmenci [Fri, 10 Aug 2018 13:32:51 +0000 (15:32 +0200)]
Force remove ~/.vbmc folder in case if it doesn't exist
Change-Id: If87afa892a0c39d082cb1563e1c019f46b742169
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Markos Chandras [Fri, 10 Aug 2018 13:14:38 +0000 (13:14 +0000)]
Merge changes from topic 'extend-suse-support-id-skip-verify'
* 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
Fatih Degirmenci [Fri, 10 Aug 2018 13:09:09 +0000 (13:09 +0000)]
Merge "Integrate os-nosdn-osm scenario"
Manuel Buil [Fri, 10 Aug 2018 13:00:41 +0000 (13:00 +0000)]
Merge "xci-lib: Allow more openSUSE IDs"
Markos Chandras [Fri, 10 Aug 2018 12:16:10 +0000 (15:16 +0300)]
xci: xci-destroy-env.sh: Update virtualbmc path
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>
Markos Chandras [Fri, 10 Aug 2018 12:04:49 +0000 (15:04 +0300)]
xci: create-vm-nodes: Install virtualbmc in the XCI virtualenv
XCI prepares a virtualenv for us, so we should install virtualbmc
in it.
Change-Id: I320d1c7cad9c5c821269b55252cb7ab4f5136f40
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 10 Aug 2018 11:52:22 +0000 (14:52 +0300)]
xci: osa: Drop openSUSE mirror variables
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>
Markos Chandras [Fri, 10 Aug 2018 10:24:00 +0000 (13:24 +0300)]
xci-lib: Allow more openSUSE IDs
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>
Fatih Degirmenci [Sat, 23 Jun 2018 23:04:10 +0000 (01:04 +0200)]
Integrate os-nosdn-osm scenario
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>
Manuel Buil [Thu, 9 Aug 2018 06:38:17 +0000 (06:38 +0000)]
Merge "scripts: start-new-vm: Do not upgrade packages on the host"
Markos Chandras [Wed, 8 Aug 2018 11:49:34 +0000 (14:49 +0300)]
scripts: start-new-vm: Do not upgrade packages on the host
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>
Fatih Degirmenci [Wed, 8 Aug 2018 09:23:10 +0000 (11:23 +0200)]
Resize OPNFV VM Disk
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>
Fatih Degirmenci [Fri, 15 Jun 2018 19:57:31 +0000 (21:57 +0200)]
docs: Remove info about the flavor aio
The flavor aio is disabled by change https://gerrit.opnfv.org/gerrit/#/c/58595/
so it is important to update the documentation accordingly.
The expectation is to put it back if/when aio is properly verified.
Change-Id: I12a60e819e20f053c38acee9e8276252d2cab267
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Markos Chandras [Thu, 5 Jul 2018 07:51:11 +0000 (07:51 +0000)]
Merge "xci: osa: Disable haproxy ssl configuration"
Markos Chandras [Wed, 4 Jul 2018 06:33:23 +0000 (06:33 +0000)]
Merge "Disable the flavor aio and set default flavor to mini"
Markos Chandras [Tue, 3 Jul 2018 14:04:01 +0000 (15:04 +0100)]
xci: osa: Disable haproxy ssl configuration
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>
Fatih Degirmenci [Fri, 15 Jun 2018 19:40:47 +0000 (21:40 +0200)]
Disable the flavor aio and set default flavor to mini
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>
Manuel Buil [Fri, 4 May 2018 21:11:35 +0000 (23:11 +0200)]
Use PDF to set up the XCI VMs
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>
Markos Chandras [Mon, 25 Jun 2018 11:17:31 +0000 (12:17 +0100)]
xci: playbooks: manage-ssh-keys: Create regular user and SSH keys
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>
Manuel Buil [Mon, 25 Jun 2018 10:28:41 +0000 (11:28 +0100)]
xci: var: opnfv_vm: Add descriptor file for OPNFV VM node
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>
Markos Chandras [Mon, 25 Jun 2018 10:21:30 +0000 (11:21 +0100)]
xci: xci-lib.sh: Install shade and python-pyyaml on the deployment node
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>
Manuel Buil [Mon, 25 Jun 2018 09:57:02 +0000 (10:57 +0100)]
xci: roles: create-vm-nodes: Add role for creating XCI VM nodes
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>
Fatih Degirmenci [Mon, 25 Jun 2018 19:32:00 +0000 (21:32 +0200)]
Pin functest-healthcheck docker image to known sha
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>
Markos Chandras [Mon, 25 Jun 2018 12:34:44 +0000 (12:34 +0000)]
Merge "xci: vm: start-new-vm: Copy deployment image to clean VM"
Markos Chandras [Fri, 22 Jun 2018 08:10:18 +0000 (09:10 +0100)]
xci: vm: start-new-vm: Copy deployment image to clean VM
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>
Victor Morales [Fri, 27 Apr 2018 19:29:45 +0000 (12:29 -0700)]
spec: create k8-calico-onap scenario
Spec file for the addition of a new XCI scenario which deploys Open
Networking Automation Platform (ONAP) on top Kubernetes deployment
through ONAP Operations Manager (OOM) tool.
Change-Id: I01385fdeeb942154d9cce630552bd3e7713d3cdb
Signed-off-by: Victor Morales <victor.morales@intel.com>
Signed-off-by: Jack Morgan <jack.morgan@intel.com>
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Markos Chandras [Fri, 15 Jun 2018 09:07:41 +0000 (09:07 +0000)]
Merge "xci: dynamic_inventory: Add new entry for deployment_host"
Daniel Farrell [Tue, 5 Jun 2018 13:54:33 +0000 (09:54 -0400)]
Add k8-odl-coe spec
This spec proposes adding an XCI senerio that uses OpenDaylight COE and
NetVirt with Kubernetes for pod networking.
Change-Id: I3418542cf22df0f4d04e167903f2bb59151fa0a6
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Markos Chandras [Tue, 12 Jun 2018 09:25:00 +0000 (10:25 +0100)]
xci: dynamic_inventory: Add new entry for deployment_host
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>
Markos Chandras [Thu, 7 Jun 2018 13:30:03 +0000 (13:30 +0000)]
Merge "roles: bootstrap-host: Ensure DNS info from IDF is respected"
Markos Chandras [Fri, 4 May 2018 19:20:46 +0000 (20:20 +0100)]
xci: osa: switch back from GitHub to OpenStack OSA repos
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>
Markos Chandras [Mon, 4 Jun 2018 19:59:38 +0000 (20:59 +0100)]
roles: bootstrap-host: Ensure DNS info from IDF is respected
We are configuring static IPs in the various nodes but we don't do
anything for DNS assuming that DNS is being configured by another
entity. However, the IDF file already contains DNS information for us
so we should use that instead. Moreover, we update the IDF file to use
the gateway as DNS instead of the Google one in order to make it more
usable on restricted networks.
Change-Id: Ieba58ec9558080a1296e204c4f99bae859e9daef
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Wed, 6 Jun 2018 11:24:54 +0000 (12:24 +0100)]
xci: OSA: Bump Queens SHAs to fix spice-html5 repo relocation
The spice-html5 repository moved from github to its own gitlab hosting
and that broke everything. As such, we update the OSA roles which
contain the correct URL for the new repository.
Change-Id: I3e2883c0436c9c93d2a8a338343ca3a75a1431e4
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Mon, 4 Jun 2018 10:31:46 +0000 (11:31 +0100)]
xci: xci-lib.sh: Use the OSA requirements file for pip components
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>
Markos Chandras [Fri, 1 Jun 2018 09:51:53 +0000 (09:51 +0000)]
Merge "xci: kubespray: Use bootstrap role for k8s deployments"
Fatih Degirmenci [Wed, 23 May 2018 21:45:33 +0000 (14:45 -0700)]
Reorder scenarios in opnfv-scenario-requirements.yml
Put OpenStack scenarios and Kubernetes scenarios together.
installer-type:kubespray
deploy-scenario:k8-canal-nofeature
Change-Id: I6a47b0b3703e30ac9a2be53012687217a085ee88
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Fatih Degirmenci [Wed, 23 May 2018 17:58:25 +0000 (17:58 +0000)]
Merge "Unpin all XCI scenarios for development"
Markos Chandras [Wed, 23 May 2018 08:39:23 +0000 (08:39 +0000)]
Merge changes from topic 'move-sourcing-files'
* changes:
xci: Move the rest of functions to xci-lib.sh
xci: file: xci-lib.sh: Avoid sourcing xci-lib.sh twice
xci: Move sourcing of configuration files to the install-lib.sh
Fatih Degirmenci [Fri, 18 May 2018 07:09:26 +0000 (09:09 +0200)]
Unpin all XCI scenarios for development
Change-Id: I73a7c58a27c9018d0b131dc3c8bb65da91488c35
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
wutianwei [Mon, 21 May 2018 02:04:24 +0000 (10:04 +0800)]
integrate k8-contiv-nofeature scenario in XCI
Change-Id: I5f18e1060cb45246a15584fdd69c6c6bd3427001
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Markos Chandras [Fri, 20 Apr 2018 12:37:32 +0000 (13:37 +0100)]
xci: kubespray: Use bootstrap role for k8s deployments
The bootstrap role configures NTP and networking on hosts so we
should use it on k8s deployments as well.
installer-type:kubespray
deploy-scenario:k8-nosdn-nofeature
Change-Id: I04bd1e1c2c325baabfb836bd8cca60c5f59344c7
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 18 May 2018 07:13:30 +0000 (08:13 +0100)]
xci: Move the rest of functions to xci-lib.sh
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>
Markos Chandras [Fri, 6 Apr 2018 19:33:11 +0000 (20:33 +0100)]
xci: file: xci-lib.sh: Avoid sourcing xci-lib.sh twice
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>
Markos Chandras [Fri, 6 Apr 2018 19:28:10 +0000 (20:28 +0100)]
xci: Move sourcing of configuration files to the install-lib.sh
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>
Markos Chandras [Fri, 18 May 2018 07:36:11 +0000 (07:36 +0000)]
Merge "xci: kubespray: Switch kubespray to dynamic inventory"
Fatih Degirmenci [Fri, 18 May 2018 07:12:42 +0000 (07:12 +0000)]
Merge "spec: PDF and IDF support"
Fatih Degirmenci [Fri, 18 May 2018 07:07:03 +0000 (07:07 +0000)]
Merge "Pin generic scenarios to project internal tag 6.0.1"
Markos Chandras [Thu, 17 May 2018 13:43:24 +0000 (13:43 +0000)]
Merge "xci: Wipe repositories at the beginning of the deployment"
Fatih Degirmenci [Wed, 16 May 2018 09:23:56 +0000 (11:23 +0200)]
Pin generic scenarios to project internal tag 6.0.1
deploy-scenario:os-odl-nofeature
installer-type:osa
Change-Id: I33e10589092ee1027fa2f27fc3c000a0031eaf38
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Markos Chandras [Thu, 17 May 2018 11:08:00 +0000 (11:08 +0000)]
Merge "xci: bootstrap-host: Fetch netmask information from IDF"
Fatih Degirmenci [Thu, 17 May 2018 09:42:58 +0000 (09:42 +0000)]
Merge "xci: get-opnfv-scenario-requirements: Fix stale scenario facts"
Fatih Degirmenci [Thu, 17 May 2018 09:29:33 +0000 (09:29 +0000)]
Merge "xci: Bump Kubespray SHAs and install ansible modules"
Fatih Degirmenci [Thu, 17 May 2018 09:15:25 +0000 (09:15 +0000)]
Merge "xci: xci-deploy.sh: Only check for xci_overrides files in scenarios cache"
Markos Chandras [Thu, 17 May 2018 08:43:11 +0000 (09:43 +0100)]
xci: Wipe repositories at the beginning of the deployment
We should not wipe the repositories in the localhost playbooks since
it makes it somewhat hard to debug problems. We should do that at the
beginning of the deployment to ensure that we start without any stale
git data.
Change-Id: I70b2ac77284a9ca304d6aa68dbf1654f59260dc4
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Wed, 16 May 2018 13:06:16 +0000 (14:06 +0100)]
xci: xci-deploy.sh: Only check for xci_overrides files in scenarios cache
xci/scenarios has been removed from releng-xci so there is not point in
checking for xci_overrides files there.
Change-Id: If6b9306968817b0ba8fb362b532ac8492d274676
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Thu, 17 May 2018 07:44:37 +0000 (07:44 +0000)]
Merge "xci: xci-deploy.sh: Print scenario git SHA"
Markos Chandras [Wed, 16 May 2018 18:31:43 +0000 (19:31 +0100)]
xci: get-opnfv-scenario-requirements: Fix stale scenario facts
We always need to update the local facts for the scenario we are
deploying in order to avoid deployments with stale data.
Change-Id: I36298d2ebc1b813e95a2f213cd13649a0b4e04bf
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Wed, 16 May 2018 14:59:23 +0000 (15:59 +0100)]
xci: bootstrap-host: Fetch netmask information from IDF
The IDF file contains the netmask for every network so we should use
that information instead of using hardcoded values.
Change-Id: Ie798cb49563bdb72fdfb7b6e9e269692bf1f7bc9
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 15 May 2018 09:56:23 +0000 (10:56 +0100)]
xci: kubespray: Switch kubespray to dynamic inventory
The kubespray installer contains one inventory per flavor. We can get
rid of these files and use the dynamic inventory similar to OSA.
Moreover, we extend the dynamic inventory to read additional group
variables per flavor if necessary. This way we can still pass additional
information to inventory on per-flavor basis. This also fixes a typo
in the 'IDF' file. We also need to bump Ansible for kubespray since the
version we were using is having troubles with dynamic inventories.
Change-Id: Ic58101555f81aec5fee3c193608440aa89bbe445
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Thu, 26 Apr 2018 17:44:34 +0000 (19:44 +0200)]
Pin os-odl-sfc to project internal tag 6.0.1
deploy-scenario:os-odl-sfc
installer-type:osa
Change-Id: I583c8620f29b0735a52c64309d2113f56d38be1e
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
wutianwei [Wed, 16 May 2018 13:33:37 +0000 (21:33 +0800)]
xci: Bump Kubespray SHAs and install ansible modules
1. this change bumps Kubespray SHA to the HEAD of "master" as of 16.05.2018
2. install ansible-modules-hashivault, due to kubespray refactor vault role
https://github.com/kubernetes-incubator/kubespray/commit/
07cc98197187535619ac8e57ee4e04ae02631a5
installer-type:kubespray
deploy-scenario:k8-nosdn-nofeature
Change-Id: I2e3ade3b16eac1506e8556fe1820d84d64c09435
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Markos Chandras [Wed, 16 May 2018 11:35:48 +0000 (12:35 +0100)]
xci: xci-deploy.sh: Print scenario git SHA
It's useful to be able to tell which particular version of the scenario
we are deploying so we print the git SHA along with the rest of the
deployment information.
Change-Id: If59651fe01449252a2cebcf24c5278ebeb1ac3ea
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Mon, 14 May 2018 09:56:48 +0000 (09:56 +0000)]
Merge "xci: osa: Add initial dynamic inventory from PDF/IDF files"
Markos Chandras [Mon, 14 May 2018 09:56:15 +0000 (09:56 +0000)]
Merge "xci: idf: Add more information for installers and flavors"
Fatih Degirmenci [Fri, 11 May 2018 19:28:22 +0000 (19:28 +0000)]
Merge "xci: scripts: start-new-vm.sh: Fix ID for openSUSE Tumbleweed"
Markos Chandras [Fri, 11 May 2018 15:05:39 +0000 (16:05 +0100)]
xci: scripts: start-new-vm.sh: Fix ID for openSUSE Tumbleweed
Recent openSUSE Tumbleweed releases are now using 'opensuse-tumbleweed'
as distro ID so we need to take that into consideration in order to be
able to use the script on such systems.
~$ source /etc/os-release && echo ${ID}
opensuse-tumbleweed
Change-Id: Ibdfb4292d53dc4d20376230a4131b212f9492e54
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 11 May 2018 10:00:55 +0000 (11:00 +0100)]
xci: Connect releng-xci-scenarios repository
The releng-xci scenarions have been moved to their own repository so we
delete the copies from the releng-xci repository and also update the
opnfv-scenario-requirements to point to the new repository.
deploy-scenario:os-nosdn-nofeature
installer-type:osa
Change-Id: I1b7b3182a5e0c5b346c00b5734fd0cd3fdd5c98b
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 11 May 2018 09:37:33 +0000 (09:37 +0000)]
Merge "fix k8 aio flavor undefined variable"
wutianwei [Thu, 10 May 2018 12:04:52 +0000 (20:04 +0800)]
fix k8 aio flavor undefined variable
1. fix error that kube_require_packages is undefined
2. add "remote_user: root" in configure-kubenet.yml
if don't add this, it will have issue to connect host.
fatal: [opnfv]:UNREACHABLE! => {"changed": false, "msg":
"Failed to connect to thehost via ssh: Permission denied (publickey,password).\r\n",
"unreachable": true"}
installer-type:kubespray
deploy-scenario:k8-nosdn-nofeature
Change-Id: Ia8d1980ad18375c0cff3a97b284b0f53d7539e23
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Markos Chandras [Fri, 11 May 2018 07:11:07 +0000 (07:11 +0000)]
Merge "New SHA for ODL"
Manuel Buil [Wed, 2 May 2018 07:04:48 +0000 (09:04 +0200)]
New SHA for ODL
We need a patch in the ODL role to be able to deploy a stable ODL.
Before this patch, it is not possible to deploy with a stable
version of ODL and we are always deploying with the tip of the branch.
However, it is useful to deploy with a version which we know for sure
that it is working.
deploy-scenario:os-odl-sfc
installer-type:osa
Change-Id: I539a5afa41598f54c3eeb2f1096022c73aa942b9
Signed-off-by: Manuel Buil <mbuil@suse.com>
Markos Chandras [Thu, 10 May 2018 15:34:26 +0000 (16:34 +0100)]
xci: installer: Do not use XCI_ANSIBLE_PARAMS on remote nodes
The XCI_ANSIBLE_PARAMS is used to pass extra Ansible parameters to XCI.
However, these parameters may not make sense when Ansible is running on
any of the remote nodes, so we should't use it there. If passing
information to "remote" Ansible is required, then we need to come up
with a new variable.
deploy-scenario:os-nosdn-nofeature
installer-type:osa
Change-Id: Ib6343fbfe3af1514c2e7e8948c12e3b19b455fe3
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 1 May 2018 15:38:13 +0000 (16:38 +0100)]
xci: osa: Add initial dynamic inventory from PDF/IDF files
The PDF and IDF files contain all the information we need for the
virtual XCI deployment, so we can use it to create a dynamic inventory
and get rid of all the static ones which could easily get outdated
as PDF and IDF files evolve over time.
This inital version of the dynamic inventory contains a lot of
unnecessary generated information but we do that in order to ease
the migration from static files to the dynamic inventory. The dynamic
inventory will be improved in the future as we consume more and more
information from the PDF and IDF files.
Change-Id: Id9f07a61c67a5cffcbc18079a341e5d395020a27
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 1 May 2018 15:06:27 +0000 (16:06 +0100)]
xci: idf: Add more information for installers and flavors
Each installer has its own Ansible groups so we need record such
information separately. Moreover, we need to add 'flavor' information
to the IDF so we know which hosts belong to what flavor. This also
fixes the kubernetes installer type to be 'kubespray' instead of 'k8s'
Finally, we extend the IDF to also set appropriate hostnames for the
nodes.
Change-Id: I52b20908ad927840e0b38fba96be8faf6da2b52d
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 4 May 2018 09:33:51 +0000 (10:33 +0100)]
xci: osa: Bump SHA to fix resolv.conf file creation and git-clone issues
Container images have recently changed and this breaks lxc_hosts during
cache preparation as shown below:
May 04 07:59:47 fatal: [controller00]: FAILED! => {"ansible_job_id": "
362521755821.32697",
"attempts": 1, "changed": true, "cmd": "chroot /var/lib/machines/ubuntu-xenial-amd64 /usr/local/bin/cache-prep-commands.sh
> /var/log/lxc-cache-prep-commands.log 2>&1", "delta": "0:00:00.018827", "end": "2018-05-04 07:59:45.614668",
"finished": 1, "msg": "non-zero return code", "rc": 1, "start": "2018-05-04 07:59:45.595841",
"stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
As such, we need to bump the SHA from the Queens branch to include the
fix in XCI.
We also need to bump SHA for repo_build role in order to bring
in some upstream fixes when cloning git repositories.
Change-Id: I9f04313f7eb1606e5e71ab8ecee7148d1c5b75ad
Signed-off-by: Markos Chandras <mchandras@suse.de>