releng-xci.git
7 years agobifrost: scripts: bifrost-provision.sh: Set defaults for Ironic variables 91/52291/1
Markos Chandras [Mon, 19 Feb 2018 10:29:48 +0000 (10:29 +0000)]
bifrost: scripts: bifrost-provision.sh: Set defaults for Ironic variables

When running the bifrost jobs for the OPNFV 3rd Party CI, the Ironic
variables are not defined and we get the following error:

./scripts/bifrost-provision.sh: line 112: BIFROST_IRONIC_INSPECTOR_VERSION: unbound variable

As such, we need to provide reasonable defaults when we are running this
script outside of XCI.

Change-Id: I9cc3ae1b70494637a85558b9cae99fc1eeaebc74
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Bump OpenStack Ansbile SHAs 67/50367/8
Markos Chandras [Tue, 13 Feb 2018 21:42:05 +0000 (21:42 +0000)]
xci: Bump OpenStack Ansbile SHAs

* Bump up upstream SHAs
* With these upstream SHAs, OSA installs neutron-agent container on
controller node which would require eth12 interface on controller for
establishing vlan provider networks. so adding eth12 interface and
linking it with br-vlan over br-vlan-veth link.

Change-Id: Iaf7cbe6e41dcfd15ec6527c5a50701f2d05eaad8
Signed-off-by: Markos Chandras <mchandras@suse.de>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agobifrost: Add ability to pin Ironic-{,client,inspector,inspector-client} SHAs 91/52091/5
Markos Chandras [Tue, 13 Feb 2018 10:11:16 +0000 (10:11 +0000)]
bifrost: Add ability to pin Ironic-{,client,inspector,inspector-client} SHAs

We should pin the SHAs for Ironic components as part of the regular
bifrost bump to ensure maximum long term stability. This also bumps
the bifrost SHA to the latest available one.

Change-Id: Ia66d8ab6566db58e2ddab5134eb8445bd84d2a8f
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agobifrost: Always deploy Ironic from master 87/52087/3
Markos Chandras [Tue, 13 Feb 2018 09:14:41 +0000 (09:14 +0000)]
bifrost: Always deploy Ironic from master

The Ironic components are currently being installed from PIP but we
should install them from the git repo instead so we can always try
the latest code from master or the pinned version when such
functionality is implemented.

Change-Id: I0138c54befe52ed9df8bf617b78e063df3cf8750
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "xci: scripts: vm: Use LVM backend if available"
Markos Chandras [Wed, 7 Feb 2018 07:41:25 +0000 (07:41 +0000)]
Merge "xci: scripts: vm: Use LVM backend if available"

7 years agoxci: scripts: vm: Use LVM backend if available 49/51449/2
Markos Chandras [Thu, 1 Feb 2018 09:49:42 +0000 (09:49 +0000)]
xci: scripts: vm: Use LVM backend if available

The CI nodes come with a big secondary mechanical disk which can be
attached directly to the clean VM. As such, we split the disk into one
logical volume per distribution and flush the qcow2 image to it before
attaching it to the VM. If the XCI volume group is not available, then
we revert back to using a file-based storage backend. Finally, we hide
stdout/stderr from the package installation process to minimize the
script output.

Change-Id: I11ea82899c411f8a4168e5f23cbbd8187cc891df
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agobifrost: Bump bifrost sha1s to latest on master 67/51667/2
Fatih Degirmenci [Mon, 5 Feb 2018 12:18:22 +0000 (13:18 +0100)]
bifrost: Bump bifrost sha1s to latest on master

This change brings in the fix for policy.json removal.

https://review.openstack.org/#/c/536349/

Change-Id: Ib18a99502c0ce61278e13f25a01622e073749d14
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoRename Functest creds 01/51501/2
Cédric Ollivier [Fri, 2 Feb 2018 17:03:57 +0000 (18:03 +0100)]
Rename Functest creds

It follows the change "Rename a common credential file for OS and
K8S" which stops forcing OpenStack creds.

[1] https://gerrit.opnfv.org/gerrit/#/c/51283/

Change-Id: Ic83a2e696c9ea8821e29e6b3f4e69db25c528a0d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Adapt to change in functest"
Fatih Degirmenci [Thu, 1 Feb 2018 16:34:20 +0000 (16:34 +0000)]
Merge "Adapt to change in functest"

7 years agoMerge "Enable deltarpm"
Markos Chandras [Thu, 1 Feb 2018 15:07:21 +0000 (15:07 +0000)]
Merge "Enable deltarpm"

7 years agoMerge "xci: scripts: vm: Install additional packages to clean VM"
Markos Chandras [Thu, 1 Feb 2018 09:53:51 +0000 (09:53 +0000)]
Merge "xci: scripts: vm: Install additional packages to clean VM"

7 years agoxci: scripts: vm: Install additional packages to clean VM 61/51361/2
Markos Chandras [Tue, 30 Jan 2018 16:59:16 +0000 (16:59 +0000)]
xci: scripts: vm: Install additional packages to clean VM

Install some additional packages to the clean VM which can be useful
during debugging. Moreover, we move the common distribution packages
into a variable in order to simplify the code a little bit.

Change-Id: I0405820900a15fec730a2bbfc95a1d1f3485bf0f
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "deploy kubernetes in XCI"
Fatih Degirmenci [Wed, 31 Jan 2018 22:04:46 +0000 (22:04 +0000)]
Merge "deploy kubernetes in XCI"

7 years agodeploy kubernetes in XCI 13/50213/24
wutianwei [Mon, 8 Jan 2018 09:17:17 +0000 (17:17 +0800)]
deploy kubernetes in XCI

This commit introduces kubespray into XCI.
k8s install currently assumes k8s install
and OpenStack install cannot coexist.
If XCI_INSTALLER is set to "kubespray" and
DEPLOY_SCENARIO is set to "k8-nosdn-nofeature"
the xci-deploy.sh would install kubernetes instead of OpenStack.
The version of kubernetes is beta release v1.9.0 currently
according to the master of kubespray
it only support the ubuntu now.
Opensuse and centos still need to develop and test.

This patch create the directory xci/installer/kubespray,
the related files of kubespray would be placed to it.
The xci/installer/$installer/playbooks/configure-localhost.yml was moved
to xci/playbooks/configure-localhost.yml as a common yaml file.

You can modify some parameters according your need
in xci/installer/kubespray/files/k8s-cluster.yml to deploy cluster.
When deploying kubernetes,
it would download the kubespray to releng-xci/.cache/repos/kubespray.
If your flavor is Ha, it will download haproxy_server and keepalived
to xci/playbook/roles, which setup haproxy service for kubernetes.

Change-Id: I24d521a735d7ee85fbe5af8c4def65f37586b843
Signed-off-by: wutianwei <wutianwei1@huawei.com>
7 years agoEnable deltarpm 37/51337/2
Victor Morales [Mon, 29 Jan 2018 18:49:25 +0000 (10:49 -0800)]
Enable deltarpm

DeltaRPM allows to install only the difference between an old and new
version of an RPM, as consequence this reduces the network
consumption in CentOS distros.

Change-Id: I317fbac44ae5fb6d5293443e755e2b7ddd08c66e
Signed-off-by: Victor Morales <victor.morales@intel.com>
7 years agoAdapt to change in functest 11/51311/1
Manuel Buil [Mon, 29 Jan 2018 15:23:38 +0000 (16:23 +0100)]
Adapt to change in functest

Functest requires to read the variable TEST_DB_URL from the env. variables:

https://gerrit.opnfv.org/gerrit/#/c/49757/

Change-Id: Idbfc2df989f5b2a8e6ddd2d9a9a70526dd9bf1f4
Signed-off-by: Manuel Buil <mbuil@suse.com>
7 years agoMerge "correct the lookup logic for scenario's xci_overrides"
Markos Chandras [Mon, 29 Jan 2018 10:13:07 +0000 (10:13 +0000)]
Merge "correct the lookup logic for scenario's xci_overrides"

7 years agoMerge "xci: Record deployment scenario when collecting XCI info"
Markos Chandras [Mon, 29 Jan 2018 10:12:59 +0000 (10:12 +0000)]
Merge "xci: Record deployment scenario when collecting XCI info"

7 years agoxci: Record deployment scenario when collecting XCI info 03/51203/1
Markos Chandras [Fri, 26 Jan 2018 15:09:01 +0000 (15:09 +0000)]
xci: Record deployment scenario when collecting XCI info

Add the DEPLOY_SCENARIO variable to the list of information we
collect when deployment fails.

Change-Id: I7081b80feea1d3d2ff83e54bd5e614b4ea98964d
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: run-functest: Add required functest packages 99/51199/1
Markos Chandras [Fri, 26 Jan 2018 14:05:51 +0000 (14:05 +0000)]
xci: run-functest: Add required functest packages

The package requirements are the same across distros so
we simply hardcode them in the task. Fixes the following problem:

fatal: [opnfv]: FAILED! => {"changed": true, "cmd":
"/root/run-functest.sh", "delta": "0:00:09.150226", "end": "2018-01-26
14:01:18.758704", "failed": true, "rc": 125, "start": "2018-01-26 1
4:01:09.608478", "stderr": "/root/run-functest.sh: line 14: wget:
command not found

Change-Id: Ib07acac18f8ece1111ee0706766f32005d0ac1da
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agocorrect the lookup logic for scenario's xci_overrides 33/51133/2
Periyasamy Palanisamy [Thu, 25 Jan 2018 16:44:06 +0000 (17:44 +0100)]
correct the lookup logic for scenario's xci_overrides

Previously xci-deploy.sh looks up the xci_overrides files under
$XCI_SCENARIOS_CACHE/${DEPLOY_SCENARIO} directory, but actually
xci_overrides file resides somewhere in the nested directory level
in both inband/outband scenarios. Hence the fix is done by using
the find command.

Change-Id: Icb507471e368f56290ef91d555673830b598e204
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agoxci: Integrate functest 53/51053/1
Fatih Degirmenci [Wed, 24 Jan 2018 15:08:57 +0000 (16:08 +0100)]
xci: Integrate functest

This change integrates functest in most easiest and messy way to
get it up and running to bring functest into CI. The reason for
this is that there are strange failures during functest healthcheck
and it is important to look into those rather than beautifying how
functest is integrated at this phase.

Change-Id: I42e993be4aa15da022fa1e0069338447780f177e
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoMerge "xci: scripts: vm: Retry when timer expires"
Markos Chandras [Tue, 23 Jan 2018 10:32:08 +0000 (10:32 +0000)]
Merge "xci: scripts: vm: Retry when timer expires"

7 years agoxci: scripts: vm: Retry when timer expires 85/50985/1
Markos Chandras [Tue, 23 Jan 2018 10:25:12 +0000 (10:25 +0000)]
xci: scripts: vm: Retry when timer expires

We should look again for active package managers when the timer expires
to avoid locking issues.

Change-Id: I88f0299a87befce17d11ba7581f0330979a25345
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "xci: xci-deploy.sh: Drop warning for CentOS"
Markos Chandras [Mon, 22 Jan 2018 12:17:09 +0000 (12:17 +0000)]
Merge "xci: xci-deploy.sh: Drop warning for CentOS"

7 years agoMerge "xci: get-opnfv-scenario-requirements.yml: Check if facts are set"
Markos Chandras [Mon, 22 Jan 2018 12:17:04 +0000 (12:17 +0000)]
Merge "xci: get-opnfv-scenario-requirements.yml: Check if facts are set"

7 years agoxci: get-opnfv-scenario-requirements.yml: Check if facts are set 27/50827/2
Markos Chandras [Fri, 19 Jan 2018 09:38:13 +0000 (09:38 +0000)]
xci: get-opnfv-scenario-requirements.yml: Check if facts are set

When the user selects an invalid combination then some facts may not be
set so the deployment may fail in a crypt way like in the following case

fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional
check 'deploy_scenario_installer' failed. The error was: error while
evaluating conditional (deploy_scenario_installer):
'deploy_scenario_installer' is undefined\n\nThe error appears to have been in
'/home/opnfv/releng-xci/xci/playbooks/get-opnfv-scenario-requirements.yml':
line 114, column 11, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n
when: item.installer == XCI_INSTALLER\n        - set_fact:\n
          ^
here\n"}

Change-Id: I931376d99bb178b15c4a9a71d47b48b01b858e4e
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: xci-deploy.sh: Drop warning for CentOS 31/50831/1
Markos Chandras [Fri, 19 Jan 2018 10:11:14 +0000 (10:11 +0000)]
xci: xci-deploy.sh: Drop warning for CentOS

The basic support for CentOS has been merged and it passes the CI
so drop the warning.

Change-Id: I70e6ba0fcd851d2eb9bfcb24d185276ed68c1005
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoEnable running on CentOS/RedHat family 97/50197/9
Tapio Tallgren [Mon, 8 Jan 2018 06:48:35 +0000 (08:48 +0200)]
Enable running on CentOS/RedHat family

Changes that make it possible to run XCI on CentOS:

- Remove the check on xci-deploy.sh script that exists on RedHat family
(including CentOS) and making the error into a warning.
- Add centos to a distro in opnfv-scenario-requirements

Change-Id: Ief6f1e50d8c7c9d8787641827e57682a6e0549e4
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
7 years agoCreate CentOS networking configuration 31/49531/12
Tapio Tallgren [Fri, 1 Dec 2017 11:53:29 +0000 (13:53 +0200)]
Create CentOS networking configuration

Change-Id: If8c0de44c313fdc22b1c7443b12d42769035c5b0
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
7 years agoRename centos.yml to redhat.yml in configure-nfs/vars 27/50627/1
Tapio Tallgren [Thu, 4 Jan 2018 15:54:51 +0000 (17:54 +0200)]
Rename centos.yml to redhat.yml in configure-nfs/vars

'redhat' as a ansible_os_family covers both the RedHat distros and
CentOS.

Change-Id: I2ab56024d2c0f1f40a014a236cfd94ef38daad04
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
7 years agoBump OSA-galera_server SHA to fix a CentOS issue 25/50625/1
Tapio Tallgren [Fri, 5 Jan 2018 07:43:41 +0000 (09:43 +0200)]
Bump OSA-galera_server SHA to fix a CentOS issue

Galera installation in CentOS fails because the mysqld.sock file is in a
different location, despite what the my.cnf configuration tells. This
has been worked around in upstream OSA-galera_server:

https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/
commit/?id=f2bfbd38513ac8d61ba4e02a4d5ef6cbbca259cc

Change-Id: Ied11571189eff8cbab0f1990a7599b51cad9ea2b
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
7 years agoxci: Rename 'nfvi' to 'installer' 25/50225/4
Markos Chandras [Mon, 8 Jan 2018 10:52:57 +0000 (10:52 +0000)]
xci: Rename 'nfvi' to 'installer'

Using 'installer' to describe the tool that will deploy the foundations
of a particular XCI scenario is more appropriate than NFVI which
normally describes both the physical and virtual resources needed by
an NFV deployment.

Change-Id: Ib8b1aac58673bf705ce2ff053574fd10cb390d71
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: nfvi: OSA: Drop SUSE workaround 23/50223/1
Markos Chandras [Mon, 8 Jan 2018 10:45:41 +0000 (10:45 +0000)]
xci: nfvi: OSA: Drop SUSE workaround

The upstream patchset has been merged, so drop the SUSE
specific workaround when obtaining the status of the galera
cluster.

Link: https://review.openstack.org/#/c/508154/
Change-Id: Ic990e6939fb794a532caf8af2759969198fa5d3a
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Record distribution and NFVI information for scenarios 59/49559/3
Markos Chandras [Fri, 22 Dec 2017 10:36:27 +0000 (10:36 +0000)]
xci: Record distribution and NFVI information for scenarios

A scenario may only support certain NFVIs or distributions so we
need a mapping with all these things so we know what can be tested
and where.

Change-Id: Ibf1b640b762085f58627e05e1d2ca13edfc4d716
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Decouple VM distribution from host OS 25/49725/2
Markos Chandras [Thu, 28 Dec 2017 12:00:08 +0000 (12:00 +0000)]
xci: Decouple VM distribution from host OS

Introduce a new XCI_DISTRO variable to select the distribution to deploy
on the VMs in order to make deployments more flexible and decouple the
VM OS selection from the host one. The default value for this new
variable is to match the host OS but users can always set it to one
of the supported distributions. We can now simply execute the
install-ansible.sh script instead of sourcing it in order to keep
the environment as clean as possible.

Change-Id: Ia74eb0422f983848cde0fb7b220ea1035dfa78bc
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: nfvi: OSA: Remove duplicate xci-deploy.sh script 23/49723/2
Markos Chandras [Thu, 28 Dec 2017 11:45:22 +0000 (11:45 +0000)]
xci: nfvi: OSA: Remove duplicate xci-deploy.sh script

It was committed by accident in c74cfd33fc3c ("xci: OSA: Move all the
OSA specific playbooks to the NFVI directory") so drop it.

Change-Id: I5de91f0aad750a9cb723a46baa63e75beb3180de
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "[XCI] move osa files into xci/nfvi/osa/files"
Markos Chandras [Wed, 3 Jan 2018 09:50:55 +0000 (09:50 +0000)]
Merge "[XCI] move osa files into xci/nfvi/osa/files"

7 years ago[XCI] move osa files into xci/nfvi/osa/files 57/49857/2
wutianwei [Tue, 2 Jan 2018 08:49:48 +0000 (16:49 +0800)]
[XCI] move osa files into xci/nfvi/osa/files

we maybe introduce other NFVI in the future in XCI.
it is necessary to put the nfvi files to corresponding directory xci/nfvi/$NFVI/files,
otherwise the files directory will be confused.

Change-Id: Iea98167ff0bc8d338a94fe1c064ac0ab396c53d3
Signed-off-by: wutianwei <wutianwei1@huawei.com>
7 years agoxci: scenarios: Fix location when copying scenarios to roles 55/49555/5
Markos Chandras [Fri, 22 Dec 2017 14:05:57 +0000 (14:05 +0000)]
xci: scenarios: Fix location when copying scenarios to roles

The location where we were putting the scenarios was wrong as it was
placing them in xci/playbooks/roles/$scenario/$scenario so in the end
the Ansible couldn't find the role we were looking for. As a result,
the role was never executed. Moreover, we can use the synchronize
module instead of the shell which should be both faster and safer.

Change-Id: I3d996652bb6a62d23e259da5674d94596dad4d8d
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "xci: playbooks: Copy local changes to scenarios"
Markos Chandras [Fri, 22 Dec 2017 20:37:33 +0000 (20:37 +0000)]
Merge "xci: playbooks: Copy local changes to scenarios"

7 years agoMerge "xci: nfvi: OSA: Set 'pipefail' when SSHing on the OPNFV host"
Markos Chandras [Fri, 22 Dec 2017 10:11:05 +0000 (10:11 +0000)]
Merge "xci: nfvi: OSA: Set 'pipefail' when SSHing on the OPNFV host"

7 years agoMerge "bifrost: Bump bifrost SHA"
Markos Chandras [Fri, 22 Dec 2017 10:10:49 +0000 (10:10 +0000)]
Merge "bifrost: Bump bifrost SHA"

7 years agoxci: playbooks: Copy local changes to scenarios 57/49357/3
Markos Chandras [Wed, 20 Dec 2017 11:38:39 +0000 (11:38 +0000)]
xci: playbooks: Copy local changes to scenarios

Make sure that any local changes to scenarios are being propagated to
the checkouts. This should only happen when we are testing the 'master'
branch of the scenario since it may be desirable to test a specific SHA
in which case we shouldn't modify the checkout code.

Change-Id: I4197f09a3e4d5a54c86905bc556b06e08948fbc2
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "Bump sha on openstack-ansible-lxc_hosts"
Markos Chandras [Fri, 22 Dec 2017 08:47:57 +0000 (08:47 +0000)]
Merge "Bump sha on openstack-ansible-lxc_hosts"

7 years agoBump sha on openstack-ansible-lxc_hosts 99/49499/1
Tapio Tallgren [Thu, 21 Dec 2017 18:36:50 +0000 (20:36 +0200)]
Bump sha on openstack-ansible-lxc_hosts

The commit 6b529de0315fe6cd12f6e78c00a5f2f2d3a01e28 in
openstack-ansible-lxc_hosts reverts an earlier change that introduced
systemd-networkd to lxc containers that run OpenStack services. This
prevents the containers from being stopped (ie, lxc-stop fails until it
times out), since systemd-networkd restarts. lxc-stop sends the SIGRT+3
message to the container which the container interprets as "halt".
systemd-networkd conflicts with shutdown, so when the system tries to
enter halt, systemd-networkd gets started again. As a result, the
container does not shut down cleanly.

This patch uses a version of openstack-ansible-lxc_hosts that does not
use systemd-networkd in the containers.

Change-Id: Ie85d2117ce2e6e8afa87810d690eab78e3b3be3d
Signed-off-by: Tapio Tallgren <tapio.tallgren@nokia.com>
7 years agoxci: nfvi: OSA: Set 'pipefail' when SSHing on the OPNFV host 83/49483/1
Markos Chandras [Thu, 21 Dec 2017 15:12:05 +0000 (15:12 +0000)]
xci: nfvi: OSA: Set 'pipefail' when SSHing on the OPNFV host

We need to set the 'pipefail' option so if an SSH command fails we stop
the deployment instead of silently ignoring it just because the right
leg of the pipe succeeded.

Change-Id: Iebc720fbd3e6e96fc7135a6cf15e3c0941974d2c
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoFix the parameter of scenario directories 81/49481/1
wutianwei [Thu, 21 Dec 2017 14:55:19 +0000 (22:55 +0800)]
Fix the parameter of scenario directories

1. the "+" and "'" will be part of the string in the path parameter of ansible.
   So the directories we create are not right. we need remove these char.
2. it miss the "{{" in ansible variable

Change-Id: I30c9804450588c63f5f18c63c1d90cd869fad90e
Signed-off-by: wutianwei <wutianwei1@huawei.com>
7 years agoMerge "xci: OSA: Move all the OSA specific playbooks to the NFVI directory"
Markos Chandras [Thu, 21 Dec 2017 13:37:36 +0000 (13:37 +0000)]
Merge "xci: OSA: Move all the OSA specific playbooks to the NFVI directory"

7 years agoxci: OSA: Move all the OSA specific playbooks to the NFVI directory 69/49369/3
Markos Chandras [Wed, 20 Dec 2017 10:12:42 +0000 (10:12 +0000)]
xci: OSA: Move all the OSA specific playbooks to the NFVI directory

Move all the playbooks that only make sense for OpenStack-Ansible
deployments to the NFVI/OSA directory where they belong. This further
disassociates XCI from OSA.

Change-Id: Iab8b6dc81d9025a1d85608a98fb1eee0f1c6a69f
Signed-off-by: Markos Chandras <mchandras@suse.de>
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoxci: playbooks: Fix conditional for scenario/flavor fact 55/49355/2
Markos Chandras [Wed, 20 Dec 2017 11:18:41 +0000 (11:18 +0000)]
xci: playbooks: Fix conditional for scenario/flavor fact

We need to use proper jinja2 code to set the fact properly.

Change-Id: I903233c0e059edf2af973ea9c08b8bd80795e1a9
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "Rename variable OPNFV_SCENARIO to DEPLOY_SCENARIO"
Fatih Degirmenci [Wed, 20 Dec 2017 22:35:04 +0000 (22:35 +0000)]
Merge "Rename variable OPNFV_SCENARIO to DEPLOY_SCENARIO"

7 years agobifrost: Bump bifrost SHA 71/49371/1
Markos Chandras [Wed, 20 Dec 2017 16:30:04 +0000 (16:30 +0000)]
bifrost: Bump bifrost SHA

Bump the bifrost SHA so we can get rid of the testvm.xml.j2 template
which has now made it upstream.

Change-Id: Ia9cdd999a5702f37125d38e0ba68bb31920d2117
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "Pin os_heat role to the version with working policy"
Fatih Degirmenci [Wed, 20 Dec 2017 09:09:40 +0000 (09:09 +0000)]
Merge "Pin os_heat role to the version with working policy"

7 years agoPin os_heat role to the version with working policy 27/49327/1
Fatih Degirmenci [Tue, 19 Dec 2017 21:08:37 +0000 (22:08 +0100)]
Pin os_heat role to the version with working policy

Upstream change modifying policy.json results in failures with
several heat test case failures with functest healthcheck.

https://review.openstack.org/#/c/526306/

Using the policy.json from the earlier commit seems to solve
the failures which is this

https://git.openstack.org/cgit/openstack/openstack-ansible-os_heat/commit/?id=0b3eb9348d55d6b1cf077a2c45b297f9a1be730d

Change-Id: Iaac0911e73743d1b628cc8d4abe460a0a2a66a84
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoRename variable OPNFV_SCENARIO to DEPLOY_SCENARIO 19/49319/1
Fatih Degirmenci [Tue, 19 Dec 2017 16:21:13 +0000 (17:21 +0100)]
Rename variable OPNFV_SCENARIO to DEPLOY_SCENARIO

Rest of the OPNFV projects use the variable DEPLOY_SCENARIO so
XCI should be aligned with them as well even though OPNFV_SCENARIO
fits better than DEPLOY_SCENARIO.

Change-Id: Id48c41fa8a1fa9493cfc7a4906f64b6d8ed27d64
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoUpdate osa version files for master branch as well 75/49275/1
Fatih Degirmenci [Tue, 19 Dec 2017 10:08:57 +0000 (11:08 +0100)]
Update osa version files for master branch as well

This is needed in order to update the files before we attempt to
run osa-periodic job.

Change-Id: Ied5a53c294fd753039a6f79fa0ebce24b515cdba
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoMerge "Increase ram of XCI VM and change disk cache type for all VMs"
Fatih Degirmenci [Mon, 18 Dec 2017 14:31:35 +0000 (14:31 +0000)]
Merge "Increase ram of XCI VM and change disk cache type for all VMs"

7 years agoMerge "bifrost: Set vCPU model to 'host-passthrough'"
Markos Chandras [Mon, 18 Dec 2017 14:31:08 +0000 (14:31 +0000)]
Merge "bifrost: Set vCPU model to 'host-passthrough'"

7 years agoMerge "Add tacker to the list of components to install"
Markos Chandras [Mon, 18 Dec 2017 10:37:35 +0000 (10:37 +0000)]
Merge "Add tacker to the list of components to install"

7 years agoMerge "xci: Move OpenStack-Ansible out of the main script"
Markos Chandras [Mon, 18 Dec 2017 10:36:53 +0000 (10:36 +0000)]
Merge "xci: Move OpenStack-Ansible out of the main script"

7 years agobifrost: Set vCPU model to 'host-passthrough' 93/49193/1
Markos Chandras [Mon, 18 Dec 2017 10:22:03 +0000 (10:22 +0000)]
bifrost: Set vCPU model to 'host-passthrough'

The default CPU model of QEMU GenuineIntel/QEMU Virtual CPU is not the
best option for vCPU in terms of performance. As such, lets use the
real host CPU. This has also been submitted upstream and the template
should be removed once the upstream patch has been merged and the SHA
for bifrost is bumped.

Change-Id: I23d86933604c290d5650b73f420972d0a2b23dc8
Link: https://review.openstack.org/#/c/528677/
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoIncrease ram of XCI VM and change disk cache type for all VMs 51/49151/3
Fatih Degirmenci [Sun, 17 Dec 2017 12:03:17 +0000 (13:03 +0100)]
Increase ram of XCI VM and change disk cache type for all VMs

These options seem to help with the functest execution
within XCI VM.

Change-Id: I3b9b6b02fc571feb42543025f8ab179c6db18e0a
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoAdd tacker to the list of components to install 93/49093/1
Manuel Buil [Fri, 15 Dec 2017 17:41:56 +0000 (18:41 +0100)]
Add tacker to the list of components to install

Tacker is already part of the upstream setup-openstack.yml but as releng-xci
overwrites it, tacker does not get deployed. Adding it to the
setup-openstack.yml of releng-xci does not disturb the other scenarios as it
will only be deployed when the tacker container is defined which only happens
when deploying odl-sfc

Change-Id: Ifd76fc49369c114c55e966eb20658d82c99e14cb
Signed-off-by: Manuel Buil <mbuil@suse.com>
7 years agoxci: scripts: start-new-vm: Use host-passthrough to use the real host CPU 49/49049/4
Markos Chandras [Fri, 15 Dec 2017 10:04:27 +0000 (10:04 +0000)]
xci: scripts: start-new-vm: Use host-passthrough to use the real host CPU

The host-passthrough mode will allow the VM to use all the host cpu
features so it should provide the best possible CPU performance.

Change-Id: I6ecd0363d046aaefa08f9e97144aa9ca9f1afae5
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Move OpenStack-Ansible out of the main script 11/48711/2
Markos Chandras [Tue, 12 Dec 2017 09:44:07 +0000 (09:44 +0000)]
xci: Move OpenStack-Ansible out of the main script

In preparation for supporting more NFVIs in XCI, we need to make the
main script NFVI agnostic. Right now, our NFVI is being deployed using
bifrost+OSA so we keep bifrost in the main script since the hardware
provisioning is NFVI agnostic (at least for now) but we move OSA to
its own directory. This should allow more NFVI to plug into XCI by
simply providing a nfvi-deploy.sh script. The user can select the
preferred NFVI using the XCI_NFVI variable.

Change-Id: Ieeacd3b22a64d363feff5d43ff23a80c39038837
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "xci: Add flavor information for scenarios"
Markos Chandras [Thu, 14 Dec 2017 22:54:10 +0000 (22:54 +0000)]
Merge "xci: Add flavor information for scenarios"

7 years agoMerge "xci: scripts: vm: Use virtio for disk and network I/O"
Markos Chandras [Thu, 14 Dec 2017 20:16:25 +0000 (20:16 +0000)]
Merge "xci: scripts: vm: Use virtio for disk and network I/O"

7 years agoxci: Add flavor information for scenarios 37/48937/4
Markos Chandras [Thu, 14 Dec 2017 09:42:47 +0000 (09:42 +0000)]
xci: Add flavor information for scenarios

Scenarios may not support all XCI flavors so record that information
per scenario basis. This will resolve failures when we try to deploy
a scenario that doesn't support the selected flavor.

JIRA: RELENG-338

Change-Id: I5f73b139ee6c1831896aa32147c4dc1368673d92
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: scripts: vm: Use virtio for disk and network I/O 49/48949/1
Markos Chandras [Thu, 14 Dec 2017 11:12:18 +0000 (11:12 +0000)]
xci: scripts: vm: Use virtio for disk and network I/O

This ensures that the virtio paravirtualization driver is used for both
disk and network I/O which should provide the best performance since we
no longer need to emulate a real bus or driver.

Change-Id: Ic46a38f51b06cb4b848d87d890d23fec022b2f15
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Drop AIO specific playbook 13/48813/2
Markos Chandras [Tue, 12 Dec 2017 14:03:42 +0000 (14:03 +0000)]
xci: Drop AIO specific playbook

The configure-opnfvhost playbook which is used for all flavors except
AIO can also be used for AIO if it's adapted to not configure networking
on the host and also do not fail if there aren't any OSA variables files
available so lets do all that in order to avoid duplicating code across
flavors.

Change-Id: I58379d8b52094294b9349494753ffcdd44982013
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "xci: Fix checkout location for OpenStack-Ansible"
Markos Chandras [Thu, 14 Dec 2017 08:49:25 +0000 (08:49 +0000)]
Merge "xci: Fix checkout location for OpenStack-Ansible"

7 years agoxci: Fix checkout location for OpenStack-Ansible 39/48739/11
Markos Chandras [Tue, 12 Dec 2017 14:58:50 +0000 (14:58 +0000)]
xci: Fix checkout location for OpenStack-Ansible

The OPENSTACK_OSA_PATH only makes sense on localhost. As such, when we
use it on playbooks that operate on remote hosts, the result is not
predictable. However, we rsync the entire releng-xci repository to the
opfnv host so we can make everything predictable by simply clone
everything in advance in the .cache directory. That directory is then
rsync'd to the opnfv host. As such, we can repurpose the
OPENSTACK_OSA_PATH to point to the path into the OPNFV host. Moreover,
all external repositories are being cloned to .cache/repos so we can
eliminate some variables in order to simplify the code. Finally, we
bring back the ability to use an external OSA repository for
development purposes.

Change-Id: Ieef3e22ae2085f6735185634d555cfc0d4b69b39
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Reduce noise during bootstrapping 91/48791/1
Markos Chandras [Wed, 13 Dec 2017 09:29:45 +0000 (09:29 +0000)]
xci: Reduce noise during bootstrapping

There is too much noise when XCI is cloning repositories, installing
packages etc so lets make the console output somewhat more readable.

Change-Id: I15667e0349f943ad5488daf0e3cea9336c9166d1
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Restore the OPNFV_SCENARIO variable 47/48747/1
Markos Chandras [Tue, 12 Dec 2017 16:55:08 +0000 (16:55 +0000)]
xci: Restore the OPNFV_SCENARIO variable

The variable was accidentally removed in ab3c9ad0f9a4 so bring it back.

Change-Id: I48e4b8dd68969c8e5336e5e571a73f037fb65988
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "Move contents of os-nosdn-ovs into os-nosdn-nofeature"
Markos Chandras [Tue, 12 Dec 2017 16:26:25 +0000 (16:26 +0000)]
Merge "Move contents of os-nosdn-ovs into  os-nosdn-nofeature"

7 years agoMerge "Adapt to updated REST URL for OpenDaylight"
Markos Chandras [Tue, 12 Dec 2017 13:28:05 +0000 (13:28 +0000)]
Merge "Adapt to updated REST URL for OpenDaylight"

7 years agoMove contents of os-nosdn-ovs into os-nosdn-nofeature 27/47727/7
Fatih Degirmenci [Thu, 23 Nov 2017 17:16:49 +0000 (18:16 +0100)]
Move contents of os-nosdn-ovs into  os-nosdn-nofeature

This change fixes the scenario os-nosdn-nofeature by
moving directories/files from os-nosdn-ovs to os-nosdn-nofeature.
The contents of the files and variables are also either adjusted
or removed in order to prevent impacts on CI.

Change-Id: Icfde27f413c8f93d097f9f262c8cb1230b7fe59d
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoConnect sfc-odl scenario with xci 69/43469/23
Manuel Buil [Thu, 28 Sep 2017 14:07:19 +0000 (16:07 +0200)]
Connect sfc-odl scenario with xci

Change-Id: I5a3f533f61b6572d8070fe5f0a306ef9d418ced8
Signed-off-by: Manuel Buil <mbuil@suse.com>
7 years agoMerge "bifrost: destroy-env.sh: Clean dib images by default"
Markos Chandras [Tue, 12 Dec 2017 09:05:19 +0000 (09:05 +0000)]
Merge "bifrost: destroy-env.sh: Clean dib images by default"

7 years agoMerge "xci: Ensure we are in the root directory for bug reports"
Markos Chandras [Tue, 12 Dec 2017 09:05:07 +0000 (09:05 +0000)]
Merge "xci: Ensure we are in the root directory for bug reports"

7 years agoMerge "xci: Use local playbooks for XCI deployments"
Markos Chandras [Tue, 12 Dec 2017 09:05:02 +0000 (09:05 +0000)]
Merge "xci: Use local playbooks for XCI deployments"

7 years agoMerge "xci: playbooks: provision-vm-nodes: Simplify the provision VM playbook"
Markos Chandras [Tue, 12 Dec 2017 09:04:56 +0000 (09:04 +0000)]
Merge "xci: playbooks: provision-vm-nodes: Simplify the provision VM playbook"

7 years agoAdapt to updated REST URL for OpenDaylight 95/48695/1
Periyasamy Palanisamy [Tue, 12 Dec 2017 08:28:56 +0000 (09:28 +0100)]
Adapt to updated REST URL for OpenDaylight

Change-Id: Iae7ca106174c09a73bc72075dca0a753c2280f20
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agobifrost: destroy-env.sh: Clean dib images by default 73/48673/1
Markos Chandras [Mon, 11 Dec 2017 19:33:49 +0000 (19:33 +0000)]
bifrost: destroy-env.sh: Clean dib images by default

The destroy-env.sh script is meant to clean the entire environment
including the dib images that were built in a previous run. However,
this step was only executed if requested exclicitly leaving old
artifacts behind. As such, lets switch the default value in order to
remove these images as expected.

Change-Id: If3b91a621df50931ef3d666737cbc3bbea5d34b9
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Ensure we are in the root directory for bug reports 55/48655/1
Markos Chandras [Mon, 11 Dec 2017 15:14:59 +0000 (15:14 +0000)]
xci: Ensure we are in the root directory for bug reports

During the XCI deployment we change directories in too many places. As a
result of which, when something breaks, we may be outside the releng-xci
checkout directory so we need to enter it again for all the git commands
to work.

Change-Id: I6adcff396fc5d7cce8bb07353dec26b76b1825a4
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Use local playbooks for XCI deployments 31/48531/6
Markos Chandras [Wed, 6 Dec 2017 10:26:53 +0000 (10:26 +0000)]
xci: Use local playbooks for XCI deployments

Previously, we used to clone the releng-xci repository under a directory
in /tmp, copy our changes to that repository and then run the
xci-deploy.sh script from it. However, this made things far too complex
for deployers and developers since some playbooks were used from the
local repo whereas others were used from teh /tmp checkout. By running
everything from our local repository simplifies things a lot since we
can directly test our changes and also reduces the code we have in our
playbooks.

Change-Id: If16aa51b2846c170676df82d25cb90e26b1568b2
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Make it easier to use OpenStack-Ansible stable branches 23/48523/3
Markos Chandras [Thu, 7 Dec 2017 11:39:36 +0000 (11:39 +0000)]
xci: Make it easier to use OpenStack-Ansible stable branches

It seems it is desirable for projects to use stable OpenStak-Ansible and
OpenStack releases in general. However, merely overriding
OPENSTACK_OSA_VERSION doesn't work because role requirements and
OpenStack services have to be adapted too. Despite the Documentation
warning users about this, seems like nobody remembers to read and
do the necessary steps. However, this leads to numerous invalid bug
reports due to this stable/master mix. Lets try to help improving
this situation by doing all the necessary ground work if we detect that
we are using a stable branch.

Change-Id: I2ba5d7e7942109973b6a6523aae2c01b65e61fe7
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: playbooks: provision-vm-nodes: Simplify the provision VM playbook 29/48529/2
Markos Chandras [Fri, 1 Dec 2017 10:13:24 +0000 (10:13 +0000)]
xci: playbooks: provision-vm-nodes: Simplify the provision VM playbook

The provision-vm-nodes playbook is only responsible for running bifrost
to provision the XCI virtual machines. As such, drop all the extra tasks
that this playbook performed in order to simplify it. This also drops
the XCI_EXTRA_VARS_PATH variable since it had a rather obscure usage
and there is not much value in passing inventory information outside of
XCI. All these will be handled in the scenarios themselves.

Change-Id: If5cb381a3d1e101100eb04478d80fb3045cdfaf8
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoxci: Bump OpenStack Ansible and bifrost SHAs 61/46861/8
Markos Chandras [Tue, 5 Dec 2017 10:18:02 +0000 (10:18 +0000)]
xci: Bump OpenStack Ansible and bifrost SHAs

Change-Id: I96c988ef6b303b89a5615c50ef60b45e49584b83
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "Do not execute ironic node-list"
Markos Chandras [Tue, 5 Dec 2017 17:33:03 +0000 (17:33 +0000)]
Merge "Do not execute ironic node-list"

7 years agoMerge "xci: Allow variable overrides from external scenarios"
Markos Chandras [Tue, 5 Dec 2017 17:27:00 +0000 (17:27 +0000)]
Merge "xci: Allow variable overrides from external scenarios"

7 years agoDo not execute ironic node-list 57/48357/2
Fatih Degirmenci [Tue, 5 Dec 2017 00:49:34 +0000 (16:49 -0800)]
Do not execute ironic node-list

This command has been removed in order to solve the issue
caused by executing the command outside of venv. Apart from
that, it doesn't add much value to the process in general either.

Change-Id: Ice7edc5adbd3dd2e2bbde57b8cebd92416825597
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
7 years agoMerge "xci: playbooks: Copy scenarios instead of symlinking them"
Markos Chandras [Mon, 4 Dec 2017 09:10:47 +0000 (09:10 +0000)]
Merge "xci: playbooks: Copy scenarios instead of symlinking them"

7 years agoxci: Allow variable overrides from external scenarios 07/48107/3
Markos Chandras [Thu, 30 Nov 2017 17:13:03 +0000 (17:13 +0000)]
xci: Allow variable overrides from external scenarios

All scenarios are being cloned to XCI_SCENARIOS_CACHE so look
there for the various override files. This will allow external
scenarios to influence the XCI environment.

Change-Id: I39a48ce55baaa29d09737ce6232867ef1165f099
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "integrate inband os-odl-nofeature scenario"
Markos Chandras [Fri, 1 Dec 2017 08:40:03 +0000 (08:40 +0000)]
Merge "integrate inband os-odl-nofeature scenario"

7 years agointegrate inband os-odl-nofeature scenario 55/46555/4
Periyasamy Palanisamy [Thu, 2 Nov 2017 09:51:48 +0000 (10:51 +0100)]
integrate inband os-odl-nofeature scenario

Change-Id: I4ea6b421a24f41ea3ca925ea98d961e1a34e7876
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agoReplace the OPNFV hardcoded IP 15/48115/1
Victor Morales [Thu, 30 Nov 2017 12:27:30 +0000 (04:27 -0800)]
Replace the OPNFV hardcoded IP

The xci-deploy.sh script has an IP address which has been replaced
for OPNFV_HOST_IP environment variable. This commit completes that
change.

Change-Id: I285b6a5b88fb15e7b68a94e95634d9d289d8659a
Signed-off-by: Victor Morales <victor.morales@intel.com>
7 years agoxci: playbooks: Copy scenarios instead of symlinking them 75/47775/8
Periyasamy Palanisamy [Fri, 24 Nov 2017 16:09:11 +0000 (17:09 +0100)]
xci: playbooks: Copy scenarios instead of symlinking them

Previously, the scenarios were symlinked from the checked out location
to {{ playbook_dir }}/roles. However, the symlinks were pointless since
they only exist in our local releng-xci directory. The roles much also
be present in OPNFV_RELENG_PATH which is the place where the deployment
happens. We use 'rsync' to copy our local releng-xci directory to the
remote one so our roles can be automatically be placed there if we copy
them instead of symlinking them.

Change-Id: I735db71eedfaa51d7196761aa2af8329d86cb775
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge "XCI: Bump OpenStack Ansible SHAs"
Markos Chandras [Thu, 30 Nov 2017 11:17:00 +0000 (11:17 +0000)]
Merge "XCI: Bump OpenStack Ansible SHAs"