functest.git
5 years agoPublish first Functest Jerma containers 00/68600/4
Cédric Ollivier [Mon, 7 Oct 2019 21:07:59 +0000 (23:07 +0200)]
Publish first Functest Jerma containers

It leverages on latest OpenStack Train.

Change-Id: I7699c7b6cfe052f29ac74aa4dbf0873a0194c26d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoCount all hypervisors by default 03/68603/2
Cédric Ollivier [Sun, 6 Oct 2019 18:43:02 +0000 (20:43 +0200)]
Count all hypervisors by default

If one hypervisor is down, few tempest test fails.
User is free to set SKIP_DOWN_HYPERVISORS if it's down on purpose.

Change-Id: I7b6a4d0d8f67755d8c1550fd1bc6fd707634f68b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 7332716dc835cd72b0beefc38afda2697bd99e02)

5 years agoSet Jerma as default branch in .gitreview 99/68599/1
Cédric Ollivier [Mon, 7 Oct 2019 21:37:12 +0000 (23:37 +0200)]
Set Jerma as default branch in .gitreview

Change-Id: I2936bffa2c20b584c7d31ed0c8cadef7c7e2cff9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate Shaker image (1.3.0 + Debian Stretch) 78/68578/1
Cédric Ollivier [Fri, 4 Oct 2019 21:52:03 +0000 (23:52 +0200)]
Update Shaker image (1.3.0 + Debian Stretch)

It udates Shaker to 1.3.0 and switches to Debian Stretch as base image.
It also eases debugging as ssh basic auth is enabled (shaker/shaker).

The arm image has to be built before enabling the testcase for arm.

Change-Id: I894bae86c7e8f7cafbba2b4e00e3334afed0b6e2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoEase debugging Shaker 61/68561/1
Cédric Ollivier [Wed, 2 Oct 2019 03:13:08 +0000 (05:13 +0200)]
Ease debugging Shaker

It turns Shaker debug on to ease troubleshooting it.

Change-Id: I7f24a8d3776742d569d2d47a60d6985584514014
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Count all active hypervisors"
Cedric Ollivier [Tue, 1 Oct 2019 08:40:09 +0000 (08:40 +0000)]
Merge "Count all active hypervisors"

5 years agoCount all active hypervisors 57/68557/1
Cédric Ollivier [Mon, 30 Sep 2019 15:26:05 +0000 (17:26 +0200)]
Count all active hypervisors

Else tempest_slow fails if one hypervisor is down (detected in ONAP
Openlab). It also improves Shaker, Rally and Vmtp which count them.

Change-Id: Iee7c20e0357d9237501c5c451580d8f6409ac86b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoList services via OS_INTERFACE in Rally 53/68553/2
Cédric Ollivier [Sun, 29 Sep 2019 14:48:14 +0000 (16:48 +0200)]
List services via OS_INTERFACE in Rally

Rally now leverages on list_services as proposed in utils [1]

[1] https://git.opnfv.org/functest/commit/?id=0837a745c81ed2a6e7df097f60d227d5997c805e

Change-Id: Ib17f9b530c2933d4a49eb5b744c2ae80b24ad560
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDetect OpenStack Train 52/68552/3
Cédric Ollivier [Sun, 29 Sep 2019 09:59:55 +0000 (11:59 +0200)]
Detect OpenStack Train

It takes into account latest max nova microversions [1]

[1] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html

Change-Id: Icb9838b09ad22f6e87e9d8fb3c47525bdc1e3307
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix falsy links 48/68548/1
Cédric Ollivier [Sat, 28 Sep 2019 11:14:00 +0000 (13:14 +0200)]
Fix falsy links

It completes the previous commit "Allow getting service via any
endpoint" [1].

[1] https://gerrit.opnfv.org/gerrit/c/functest/+/68542

Change-Id: Ib396ed75e2385f99bce51e09d37f7f05808b5b5e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow getting service via any endpoint 42/68542/3
Cédric Ollivier [Thu, 26 Sep 2019 15:29:32 +0000 (17:29 +0200)]
Allow getting service via any endpoint

It overrides the default implementation provided by Shade.

Change-Id: I3ad2f8ba543be4483f108c4bd7765018dddc5b19
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Print OpenStack version in connection_check"
Juha Kosonen [Fri, 20 Sep 2019 05:48:04 +0000 (05:48 +0000)]
Merge "Print OpenStack version in connection_check"

5 years agoPrint OpenStack version in connection_check 08/68508/1
Cédric Ollivier [Fri, 20 Sep 2019 03:01:52 +0000 (05:01 +0200)]
Print OpenStack version in connection_check

Functest is becoming very used and sometimes vs older OpenStack
releases (ONAP Openlab). It will ease debugging and easily find
backward incompatibilities.

Even if that value could be checked for OPNFV Release Management,
testing older SUT is not considered as false from a Functest statepoint.

Change-Id: Idd782cc98ec4d36f726e233fc5d011308e9d6b71
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove any cores quota in tempest_scenario and shaker 94/68494/1
Cédric Ollivier [Thu, 19 Sep 2019 11:20:01 +0000 (13:20 +0200)]
Remove any cores quota in tempest_scenario and shaker

Both can reach the default limit if lots of computes available.

Co-Authored-By: Vincent Huet <vincent.huet@orange.com>
Change-Id: Ifd8a1080a08f55bf4b0efe1858e79fa4aff75895
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd tempest_slow and octavia in ansible/site.yaml 91/68491/2
Cédric Ollivier [Tue, 17 Sep 2019 19:03:58 +0000 (21:03 +0200)]
Add tempest_slow and octavia in ansible/site.yaml

Change-Id: Ie2f418f34d9c0a0651a58795da8c87fd27012c5b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd punctuations in password generator 80/68480/3
Cédric Ollivier [Sat, 14 Sep 2019 09:55:58 +0000 (11:55 +0200)]
Add punctuations in password generator

It adds a subset of string.punctuation to conform with a few
password rules (see ONAP Openlab).

Change-Id: I7751031bcb9b908d4162d70f8acaa4bdc87e3c79
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoHarden OS_ env vars for VMTP 79/68479/1
Cédric Ollivier [Sat, 14 Sep 2019 09:06:21 +0000 (11:06 +0200)]
Harden OS_ env vars for VMTP

VMTP doesn't take into account domain ids and then forces the use of
domain names (detected when verifying ONAP Openlab).

It prints the next warnings and then fails.
2019-09-14 08:43:50,162 WARNING OS_PROJECT_DOMAIN_NAME is missing
2019-09-14 08:43:50,162 WARNING OS_USER_DOMAIN_NAME is missing

Change-Id: I283d86ac0d96071480eefb571da9f2ff92705b08
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove any instance quota in tempest_scenario 76/68476/1
Cédric Ollivier [Sat, 14 Sep 2019 07:44:27 +0000 (09:44 +0200)]
Remove any instance quota in tempest_scenario

The next testcase can reach the default limit if lots of computes
available [1].
tempest.scenario.test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes

[1] http://artifacts.opnfv.org/functest/functest-opnfv-functest-smoke-hunter-tempest_scenario-run-325/results/tempest_scenario/test_raw_list.txt

Change-Id: Ibf68e2a367199afee3f6198ebf683be6cd938d94
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow skipping list_services 72/68472/1
Cédric Ollivier [Thu, 12 Sep 2019 09:15:06 +0000 (11:15 +0200)]
Allow skipping list_services

Shade forces the use of admin endpoints when listing services [1].

A new env var is added to allow running Functest when only public
endpoints are reachable (e.g. testing from a VM as proposed for ONAP
integration).

It seems the best approach as list_services provides key data and
we do avoid blocking requests.

It seems easier and more generic than listing all calls in
testcases.yaml.

[1] https://github.com/openstack/shade/blob/master/shade/openstackcloud.py#L9956

Change-Id: Idcbe5d364f4230ffe1da34e7da0e99e863f15c5e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove cloudify-rest-client-py3.patch 70/68470/1
Cédric Ollivier [Thu, 12 Sep 2019 08:34:55 +0000 (10:34 +0200)]
Remove cloudify-rest-client-py3.patch

Functest currently installs the active fork via upper-constraints [1].
This patch can be safely removed.

[1] https://gerrit.opnfv.org/gerrit/c/functest/+/68264/7/upper-constraints.txt

Change-Id: Ib706df261e8450883fa819e1b4e0cc48043621f2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoBlacklist boot_and_associate_floating_ip if no floating ip 57/68457/1
Cédric Ollivier [Sat, 7 Sep 2019 20:30:57 +0000 (22:30 +0200)]
Blacklist boot_and_associate_floating_ip if no floating ip

Change-Id: Id907abff44490a57e8ec2cdb00396d9e4b422815
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoBlacklist create_and_delete_stack if no floating ip 54/68454/1
Cédric Ollivier [Sat, 7 Sep 2019 16:29:36 +0000 (18:29 +0200)]
Blacklist create_and_delete_stack if no floating ip

One HeatStacks.create_and_delete_stack call asks for floating_network.

Change-Id: I75d01b4ecb1f484eac3af6efc53cf4a94206b158
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPrevent occasional rally hangs 42/68442/1
Juha Kosonen [Wed, 4 Sep 2019 12:21:00 +0000 (15:21 +0300)]
Prevent occasional rally hangs

Set timeout on subprocess invocation instead of spawned child process.

Increase the timeout value for rally_full to 2h since the execution
typically takes ~90min [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-benchmarking-latest-rally_full-run/22/

Change-Id: I0ca90bc2d85b4625336eb0396d8b2816a486b746
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoRemove Features containers 13/68413/2
Cédric Ollivier [Sat, 31 Aug 2019 08:56:23 +0000 (10:56 +0200)]
Remove Features containers

Most the features are stopped and Functest shouldn't host dead code.
Functest is a framework (Docker and Python modules) which can be still
reused by any third-party (OPNFV Feature or anything else) in its tree
and CI.

Change-Id: Ia8475ce295b2cdcddbfcfc5b17ea2ab9e51a8afb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Add tempest slow"
Cedric Ollivier [Wed, 28 Aug 2019 19:24:16 +0000 (19:24 +0000)]
Merge "Add tempest slow"

5 years agoMerge "Add Octavia testing"
Cedric Ollivier [Wed, 28 Aug 2019 11:51:45 +0000 (11:51 +0000)]
Merge "Add Octavia testing"

5 years agoMerge "Support regex in tempest blacklist"
Cedric Ollivier [Tue, 27 Aug 2019 21:03:13 +0000 (21:03 +0000)]
Merge "Support regex in tempest blacklist"

5 years agoAdd Octavia testing 92/68392/2
Cédric Ollivier [Sun, 25 Aug 2019 19:32:34 +0000 (21:32 +0200)]
Add Octavia testing

It integrates Octavia Tempest Plugin.
The new testcase octavia currently covers API only [1].

[1] https://logs.opendev.org/46/674846/2/check/octavia-v2-dsvm-noop-api/fe37c58/testr_results.html.gz

Change-Id: I2a11a19aa0c43701499dc9e17bd69b9387b53b58
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd tempest slow 00/68400/1
Cédric Ollivier [Mon, 26 Aug 2019 21:25:15 +0000 (23:25 +0200)]
Add tempest slow

It conforms with tempest-slow-py3 executed in Neutron Gates [1].

[1] https://logs.opendev.org/68/672568/6/check/tempest-slow-py3/49fece6/testr_results.html.gz

Change-Id: I0c1c6f7be38c9fcdd1a32e5cfa2bc4d8414885e0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSwitch to the classical ping (iputils) 95/68395/3
Cédric Ollivier [Mon, 26 Aug 2019 20:14:02 +0000 (22:14 +0200)]
Switch to the classical ping (iputils)

Ping provided by busybox doesn't support -M (pmtudisc_opt) which is
asked by [1] (part of tempest_slow).

[1] tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_mtu_sized_frames

Change-Id: I75340f239ae372b56cffe9c30c6242878c06ef74
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSupport regex in tempest blacklist 93/68393/1
Juha Kosonen [Mon, 26 Aug 2019 10:28:41 +0000 (13:28 +0300)]
Support regex in tempest blacklist

The expression both in the test cases as well as applicable scenarios
support regex in blacklist.

Change-Id: Id76297a1cfbf908bda67641bc7ba686db83d76e6
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoProtect vs rally infine loop 88/68388/2
Cédric Ollivier [Thu, 22 Aug 2019 14:35:10 +0000 (16:35 +0200)]
Protect vs rally infine loop

It calls timeout (1 hour) to stop any hanging task [1].
It will be backported to Hunter and Iruya if similar failures are
detected.

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-benchmarking-latest-rally_full-run/9/console

Change-Id: I8fe89f9fa1c6c39cd8810096c1d586bdef7865a0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoProtect tag in functest.yaml 78/68378/1
Cédric Ollivier [Thu, 22 Aug 2019 11:16:54 +0000 (13:16 +0200)]
Protect tag in functest.yaml

Else 3.10 becomes falsy 3.1.

It also conforms with latest changes in Xtesting ansible role [1].

https://github.com/collivier/ansible-role-xtesting/commit/292ab576fb8f0a13519bacc5ec46561a3ed8f838

Change-Id: I75e57f05d99381c9d0608aa4a88f0b12d9b6a9cf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoClean orphan security groups 64/68364/1
Cédric Ollivier [Sun, 18 Aug 2019 14:12:37 +0000 (16:12 +0200)]
Clean orphan security groups

It removes all security groups which are not owned by a project.
This approach seems suitable as it works even if dynamic accounts
(tempest and rally). All other OpenStack resources are still
removed by the underlying framework.

It lists all orphan security groups in use as debug to avoid
misunderstanding the testcase results (it could happen if cloud admin
removes accounts without cleaning the virtual machines).

Change-Id: I033d96e077b4277d59233a3de4ca6d41ed91f743
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix last redirects in docs 60/68360/1
Cédric Ollivier [Sat, 17 Aug 2019 09:37:57 +0000 (11:37 +0200)]
Fix last redirects in docs

It takes into account last warnings from Sphinx linkcheck.

Change-Id: I6927c4cac910cff9f2c25d0009d5052556483cf3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow rally_jobs without external network 57/68357/1
Cédric Ollivier [Fri, 16 Aug 2019 19:36:14 +0000 (21:36 +0200)]
Allow rally_jobs without external network

rally_jobs can verify network providers by skipping:
  - NeutronNetworks.create_and_delete_floating_ips
  - NeutronNetworks.create_and_list_floating_ips
  - NeutronNetworks.associate_and_dissociate_floating_ips

Co-Authored-By: Juha Kosonen <juha.kosonen@nokia.com>
Change-Id: Ibda66e47f4d1101b53435ef4cd144dacbabff165
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix rally task file manipulation 50/68350/1
Juha Kosonen [Thu, 15 Aug 2019 13:15:21 +0000 (16:15 +0300)]
Fix rally task file manipulation

Remove empty workload entries when applying blacklist in RallyJobs.
Rally considers task file as invalid if it contains entries whose
workload list empty.

Change-Id: I34867c0aeea9c5ecf1294959d680e6de535be9cd
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoRun Functest unit tests and linters via CircleCI 40/68340/1
Cédric Ollivier [Sat, 10 Aug 2019 13:21:38 +0000 (15:21 +0200)]
Run Functest unit tests and linters via CircleCI

It runs tox and publishes the artifacts.
It's worth mentioning that all docker images are already built via
Travis CI (amd64, arm and arm64) [1].

https://travis-ci.org/collivier/functest

Change-Id: I48720f4f13dd1a93469b042000dd86a01854d8f0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoIncrease verify venv list in travis-ci 02/68302/2
Cédric Ollivier [Sat, 3 Aug 2019 11:38:24 +0000 (13:38 +0200)]
Increase verify venv list in travis-ci

It cannot run perm due to the false umask in travis-ci [1].

[1] https://travis-ci.community/t/file-permissions-just-gone-up-to-664/1547/4

Change-Id: I788d846b1737cdff49959376e5bc92d8d1c4c970
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRun perm when checking all changes 96/68296/1
Cédric Ollivier [Sat, 3 Aug 2019 11:02:05 +0000 (13:02 +0200)]
Run perm when checking all changes

It should be forbidden in releng jjbs if still needed.

Change-Id: I7622f43603d41bb169d8a1341a38ed2d451459b2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPin ruamel.yaml to 0.15.100 84/68284/1
Cédric Ollivier [Sun, 28 Jul 2019 18:02:54 +0000 (20:02 +0200)]
Pin ruamel.yaml to 0.15.100

The last versions published between verification and build fails
(0.16.0).

Change-Id: I3ff72353ea29d8b5d946e3d15c21833c58211e0e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove former timeout -t args 83/68283/1
Cédric Ollivier [Sat, 27 Jul 2019 22:51:15 +0000 (00:51 +0200)]
Remove former timeout -t args

It completes the update to Alpine 3.10.

Change-Id: I81793d4d17667b9bbab4b8659ebf90e1f79f3b5e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix remaining py36 testenv 75/68275/2
Cédric Ollivier [Sat, 27 Jul 2019 14:50:10 +0000 (16:50 +0200)]
Fix remaining py36 testenv

Change-Id: Ifd5e65f597e2dcdb280fac6e3bc3ac999550a83f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoInstall python3.7 in travis-ci 71/68271/1
Cédric Ollivier [Sat, 27 Jul 2019 12:38:09 +0000 (14:38 +0200)]
Install python3.7 in travis-ci

https://travis-ci.org/collivier/functest/jobs/564349522

Change-Id: I8880256b226472157cdf2bfb5505d05160b3f1d5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd proxy in cloudify_ims 53/68253/10
Thierry ALLENO [Tue, 23 Jul 2019 15:14:37 +0000 (17:14 +0200)]
Add proxy in cloudify_ims

Add http-proxy configuration for pip in cloudify_ims testcase.
Correct some errors.

Change-Id: Ie09e1339536fd347ba0921e861474fecaf0876e4
Signed-off-by: Thierry ALLENO <thierry.alleno@orange.com>
5 years agoUpdated from global requirements 55/68255/8
Cédric Ollivier [Wed, 24 Jul 2019 08:38:19 +0000 (10:38 +0200)]
Updated from global requirements

Change-Id: Icb22ff53d7aa123d42c06d60dff6f632ff78aa98
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSwitch to Python 3.7 and Alpine 3.10 64/68264/7
Cédric Ollivier [Fri, 26 Jul 2019 14:59:14 +0000 (16:59 +0200)]
Switch to Python 3.7 and Alpine 3.10

It also allows building docs as doc8 is broken due to latest
OpenStack's upper-constraints.

pylint is updated to 2.3.1 (lastest py3.7 version)

It disables perm as umask is currently false on lf-virtual1.

Change-Id: If09d4796d48b7d0591e7926621d3bbf5ca1b6c24
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove functest-tempest from travis-ci 50/68250/1
Cédric Ollivier [Sun, 21 Jul 2019 16:46:27 +0000 (18:46 +0200)]
Remove functest-tempest from travis-ci

It fails due to the former container builds [1]

[1] https://travis-ci.org/collivier/functest/builds/557461053

Change-Id: I0d919ded13348e66852b79e2bdeba53add729d9b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoConform with new ODL urls 47/68247/1
Cédric Ollivier [Sun, 21 Jul 2019 13:34:44 +0000 (15:34 +0200)]
Conform with new ODL urls

It now clones https://git.opendaylight.org/gerrit/integration/test

Change-Id: Icff918305de1092cf6e985490188d409178273e1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoReuse same cidr in juju 28/68228/1
Cédric Ollivier [Thu, 11 Jul 2019 12:32:26 +0000 (14:32 +0200)]
Reuse same cidr in juju

It seems fine with latest juju updates and eases setting no_proxy
rules.

Change-Id: I30e66568ec7339fc038b27e5ca47b26959842bf8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow scenarios without external network 21/68221/1
Cédric Ollivier [Wed, 10 Jul 2019 20:13:37 +0000 (22:13 +0200)]
Allow scenarios without external network

It allows creating testcases leveraging on Functest scenarios without
external network. Then Rally can verify network providers by only
skipping NovaServers.boot_server_associate_and_dissociate_floating_ip

Change-Id: I07a9348214f7557195c7201466f7e37b2b980206
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoset proxies in ubuntu for juju_epc use case 96/68196/6
Thierry ALLENO [Fri, 5 Jul 2019 14:42:11 +0000 (16:42 +0200)]
set proxies in ubuntu for juju_epc use case

Modification in add_proxy.sh in order to set proxy for juju_epc in various middleware(maven, subversion,...).
And add some control for modification of cloudify container.
Remove some trailing lines and define http_proxy using http_proxy_host and http_proxy_port.

Change-Id: I9d85387f107b1b050ee96bf0ee6df9ba662b0df4
Signed-off-by: Thierry ALLENO <thierry.alleno@orange.com>
5 years agoRemove functest-tempest 01/68201/3
Cédric Ollivier [Tue, 9 Jul 2019 15:14:00 +0000 (17:14 +0200)]
Remove functest-tempest

Functest Kubernetes directly calls Rally API which force dependencies
to rally and its plugins. Then it installs rally, rally-openstack and
xrally-kubernetes as Functest dependencies.

Change-Id: I18e0c2ba30588707beba1746aa4bfbc1ab7509c6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate python versions and testcase list in docs 82/68182/2
Cédric Ollivier [Tue, 2 Jul 2019 17:50:57 +0000 (19:50 +0200)]
Update python versions and testcase list in docs

Change-Id: I0ed395c39dd7e0ad1bf0f5d181fe6c2c397809e4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd Barbican scenario in Rally 55/68155/1
Cédric Ollivier [Fri, 28 Jun 2019 13:34:27 +0000 (15:34 +0200)]
Add Barbican scenario in Rally

It doesn't run BarbicanSecrets.create_symmetric_and_delete which is
currently failing [1].

Barbican testing is optional as Gnocchi.

[1] https://bugs.launchpad.net/rally/+bug/1819285

Change-Id: I9121ce3c9f29ba05069c905325327d4c4d0b9e71
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd swift scenario in rally 53/68153/1
Cédric Ollivier [Fri, 28 Jun 2019 09:31:45 +0000 (11:31 +0200)]
Add swift scenario in rally

As for refstack_object, it forces swift in SUT.
Role is hardcoded to admin as for a few Neutron tests.

Change-Id: I0ae823fc8f31016d37831a82f7a50e92b2ed5f58
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix link in docs (E2 Testing in Kubernetes) 07/68107/1
Cédric Ollivier [Tue, 25 Jun 2019 13:54:21 +0000 (15:54 +0200)]
Fix link in docs (E2 Testing in Kubernetes)

It conforms with "Cleanup tombstone files in community/devel" [1] and
fixes the gates [2]

[1] https://github.com/kubernetes/community/commit/4bb72158434b2d29094b06af4c9bda284e5417fd
[2] https://build.opnfv.org/ci/job/functest-verify-iruya/111/

Change-Id: I052bdac9a43a346ce07f93d8183f53767c757930
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd warning messages in vyos_vrouter 97/68097/4
Cédric Ollivier [Mon, 24 Jun 2019 15:24:54 +0000 (17:24 +0200)]
Add warning messages in vyos_vrouter

Both Cloudify based testcases print the same warning messages if
NEW_USER_ROLE is admin. An additional whitespace is removed too.

Change-Id: Idf2a2ea4373efdc579f0ac3e0a69ec08a7fbf105
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet proxies in Cloudify container 96/68096/4
Cédric Ollivier [Mon, 24 Jun 2019 15:21:29 +0000 (17:21 +0200)]
Set proxies in Cloudify container

add_proxy.sh now modifies Cloudify containers to allow proxies.
It follows "Update and enable Cloudify-based testcases" [1]

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

Co-Authored-By: Thierry ALLENO <thierry.alleno@orange.com>
Change-Id: I54cfcd73685695c5f66f24acd32f126786acf48e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove quota about instances in shaker 82/68082/1
Cédric Ollivier [Thu, 20 Jun 2019 08:17:36 +0000 (10:17 +0200)]
Remove quota about instances in shaker

The default quota could be inadequate if lots of computes.

Change-Id: I510d3ebd14c2a910b7be2bacc0b99d3059a7a881
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix ShellCheck warnings 55/68055/2
Cédric Ollivier [Sat, 15 Jun 2019 10:05:43 +0000 (12:05 +0200)]
Fix ShellCheck warnings

Change-Id: Idf571b39d38b9184b2e08c183d4afe44784fbfe6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTurn all bashate warnings as errors 54/68054/1
Cédric Ollivier [Fri, 14 Jun 2019 15:40:53 +0000 (17:40 +0200)]
Turn all bashate warnings as errors

Change-Id: Ic350ed8269347f5853a6d7b4e75cfccba6d85dcf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate Xtesting to 0.70 53/68053/1
Cédric Ollivier [Fri, 14 Jun 2019 09:25:52 +0000 (11:25 +0200)]
Update Xtesting to 0.70

Change-Id: Ib2427112f1ec2e89aa349740c1bb82db1a3622f5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Publish "From Paris to Stockholm""
Cedric Ollivier [Thu, 13 Jun 2019 06:39:56 +0000 (06:39 +0000)]
Merge "Publish "From Paris to Stockholm""

5 years agoPublish "From Paris to Stockholm" 38/68038/3
Cédric Ollivier [Tue, 11 Jun 2019 12:07:44 +0000 (14:07 +0200)]
Publish "From Paris to Stockholm"

It highlights the changes done during the two Plugfests.

Change-Id: Iff72fc259d13f0ce2b8e7c1b5f201196849d9bf6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Add rally_jobs in config patches"
Juha Kosonen [Mon, 10 Jun 2019 07:21:54 +0000 (07:21 +0000)]
Merge "Add rally_jobs in config patches"

5 years agoMerge "Allow running Functest vs profiles defined by GSMA"
Juha Kosonen [Mon, 10 Jun 2019 07:20:04 +0000 (07:20 +0000)]
Merge "Allow running Functest vs profiles defined by GSMA"

5 years agoAdd rally_jobs in config patches 27/68027/1
Cédric Ollivier [Sun, 9 Jun 2019 10:27:37 +0000 (12:27 +0200)]
Add rally_jobs in config patches

Change-Id: Iaf99ee1d6ea0b2c81874daf959f7430c564a1051
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoBlacklist test_list_metadef_namespaces (Patrole) 22/68022/1
Cédric Ollivier [Sun, 9 Jun 2019 09:41:48 +0000 (11:41 +0200)]
Blacklist test_list_metadef_namespaces (Patrole)

It seems dependent on test order (404 if no namespace) and sometimes
fails in gates [1][2][3].

It will be enabled as soon it's fixed upstream or if SUT is wrong here.

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-latest-patrole-run/
[2] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-iruya-patrole-run/
[3] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-hunter-patrole-run/

Change-Id: I68e71e9b0753089e5620d6689ddff37fe66aeab7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoConform with latest Neutron rally job 21/68021/1
Cédric Ollivier [Sun, 9 Jun 2019 09:17:12 +0000 (11:17 +0200)]
Conform with latest Neutron rally job

The last commit requires two additional task args [1][2].

[1] https://github.com/openstack/neutron/commit/ccef17605d1e28c418821c2235ba24c15893fff2#diff-720114afabbecd64333f4586a338f749
[2] https://build.opnfv.org/ci/job/functest-opnfv-functest-benchmarking-latest-rally_jobs-run/145/console

Change-Id: I4943f737be29bcadfead427a7852964e6438a018
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow running Functest vs profiles defined by GSMA 19/68019/1
Cédric Ollivier [Sat, 8 Jun 2019 15:41:52 +0000 (17:41 +0200)]
Allow running Functest vs profiles defined by GSMA

It selects the close profils (here cpus, ram and disks) as being
defined by GSMA if DEPLOY_SCENARIO contains GSMA.

It allows a full OpenStack verification conformed with that profiles.

Change-Id: I3830304a6cfcd651988063591f7ab0a7f57d124e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate all patches about functest configs 88/67888/4
Cédric Ollivier [Sat, 18 May 2019 18:38:24 +0000 (20:38 +0200)]
Update all patches about functest configs

It takes into account the last updates about snaps, cloudify and
refstack.

Change-Id: I959f8ed1c98cd1879b51b62252aeb38918af6a2c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPin ruamel.yaml.jinja2 16/68016/1
Cédric Ollivier [Sat, 8 Jun 2019 14:34:59 +0000 (16:34 +0200)]
Pin ruamel.yaml.jinja2

It's out of openstack/requirements and last version breaks our stable
containers [1]. It will be updated in master in a second step to ease
cherry-picking.

[1] https://build.opnfv.org/ci/job/functest-verify-unit-tests-and-docs-hunter/322/console

Change-Id: I76e1965d49e6be6f185611bcfcd056d81bc599fe
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdated from global requirements 97/67997/1
Cédric Ollivier [Tue, 4 Jun 2019 18:07:26 +0000 (20:07 +0200)]
Updated from global requirements

Change-Id: I3c2a69f63d38812656baf1f53a8b6a7ae1a0a242
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPublish rally logs 89/67989/1
Cédric Ollivier [Sun, 2 Jun 2019 12:43:10 +0000 (14:43 +0200)]
Publish rally logs

Both Rally and Tempest publish Rally debug logs.
It also moves the logics from tempest to rally.

Change-Id: I5c057d830202baddd73577ade1b09ce304e3c5a5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agocorrect permanent redirects in documentation 73/67973/3
VincentDanno [Fri, 10 May 2019 15:24:05 +0000 (17:24 +0200)]
correct permanent redirects in documentation

Change-Id: I5bcb402f51541483a2797629c44485e5d75913e3
Signed-off-by: VincentDanno <vincent.danno@orange.com>
5 years agoDecode tempest exception output (py3) 84/67984/1
Cédric Ollivier [Sat, 1 Jun 2019 08:52:05 +0000 (10:52 +0200)]
Decode tempest exception output (py3)

https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-latest-refstack_compute-run/30/console

Change-Id: I77264525917af5f67cdecae85ef7a50439499db8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoStop installing sfc and bgpvpn tempest plugins 83/67983/1
Cédric Ollivier [Sat, 1 Jun 2019 09:00:14 +0000 (11:00 +0200)]
Stop installing sfc and bgpvpn tempest plugins

They are being integrated into neutron tempest plugin [1][2].
It will fix our gates [3].

[1] https://github.com/openstack/neutron-tempest-plugin/commit/1a987ecb4d310328cc4c2c5628dc5018dc7afc48
[2] https://github.com/openstack/neutron-tempest-plugin/commit/8dd49aac9fa27166d76755c7d62ea9f0553d8d74
[3] https://build.opnfv.org/ci/job/functest-latest-gate/199/

Change-Id: Iafcfd0cb9b33a271cf37f269d9a3a2086eb67414
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove PyNacl contraints in Features 61/67961/4
Cédric Ollivier [Tue, 28 May 2019 11:36:25 +0000 (13:36 +0200)]
Remove PyNacl contraints in Features

It conforms with "Install PyNaCl via package" [1].
functest-feature may raise timeouts when cross-compiling PyNacl [2].

[1] https://gerrit.opnfv.org/gerrit/#/c/67956/
[2] https://travis-ci.org/collivier/functest/jobs/538119733

Change-Id: I986677b869f62caee6be219ee1de622b7bc20ca4
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
5 years agoStop downgrading pip 55/67955/3
Cédric Ollivier [Mon, 27 May 2019 18:47:48 +0000 (20:47 +0200)]
Stop downgrading pip

The pip package poposed by Alpine is fine.

Change-Id: I415757b8f4028c76e9d8cec4895306d843d42ac2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoInstall PyNaCl via package 42/67842/8
Cédric Ollivier [Sun, 12 May 2019 18:19:14 +0000 (20:19 +0200)]
Install PyNaCl via package

Building functest-core container sometimes reaches travis-ci timeout
[0]. It currently selects the right version in master and
stable/hunter.

[0] https://travis-ci.org/collivier/functest/jobs/531417730

Change-Id: Ie6c8e729f76c98c6f8c8e9ca01b2c998081f7ce8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRun bandit when verifying changes 49/67949/2
Cédric Ollivier [Sat, 25 May 2019 09:10:55 +0000 (11:10 +0200)]
Run bandit when verifying changes

It reports only MEDIUM issues or higher like nova [1].
It selects bandit 1.1.0 as defined in nova and neutron lower
constraints [2].

[1] https://github.com/openstack/nova/blob/master/tox.ini#L221
[2] https://github.com/openstack/nova/blob/master/lower-constraints.txt#L8

Change-Id: I6fc505f684701792d3e03659eb0feea8321452c0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet utf-8 in decode and encode calls 40/67940/2
Cédric Ollivier [Sat, 25 May 2019 07:38:40 +0000 (09:38 +0200)]
Set utf-8 in decode and encode calls

It eases backporting in iruya and hunter as a few logs can't be
decoded as ascii [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-iruya-juju_epc-run/56/console

Change-Id: I52a6f9a25130cbf62e8ce3b9972064ab73177665
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDecode Bytes in logging calls 30/67930/1
Cédric Ollivier [Fri, 24 May 2019 20:08:50 +0000 (22:08 +0200)]
Decode Bytes in logging calls

It fixes a few incorrect types in log calls [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-latest-daily/163/

Change-Id: I01790f6454694f434d31366f9c1cf9d98ff5a9cf
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
5 years agoMerge "Update Pylint score (10/10) in Release notes"
Cedric Ollivier [Thu, 23 May 2019 18:31:18 +0000 (18:31 +0000)]
Merge "Update Pylint score (10/10) in Release notes"

5 years agoEnable Vmtp if py3 91/67891/5
Cédric Ollivier [Sun, 19 May 2019 17:21:10 +0000 (19:21 +0200)]
Enable Vmtp if py3

It leverages on last Vmtp review which adds py3 support [1].

[1] https://review.opendev.org/659970

Change-Id: I8319b9e7eb88b9015961188d47657a8c67e0f8da
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate Pylint score (10/10) in Release notes 09/67909/1
Cédric Ollivier [Thu, 23 May 2019 07:56:15 +0000 (09:56 +0200)]
Update Pylint score (10/10) in Release notes

https://build.opnfv.org/ci/job/functest-verify-unit-tests-and-docs-master/2239/console

Change-Id: I5f124250aba3aa9a5ca0bc01221c06843bba1b35
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
5 years agoAvoid running local dnsmasq when testing IMS 94/67894/2
Cédric Ollivier [Mon, 20 May 2019 15:49:38 +0000 (17:49 +0200)]
Avoid running local dnsmasq when testing IMS

It may be unsafe and it's useless for testing IMS if BONO_IP is set.

Change-Id: I8b0f010956defbfa1fd22b5aa5cbea70bd2968a4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix python version 82/67882/1
Cédric Ollivier [Thu, 16 May 2019 18:56:15 +0000 (20:56 +0200)]
Fix python version

It fixes an issue induced by an incomplete rebase [1].

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

Change-Id: I9017becd06949afae0abd5f542a092570a163bc3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd all RefStack lists 33/67833/5
Cédric Ollivier [Sat, 11 May 2019 17:35:28 +0000 (19:35 +0200)]
Add all RefStack lists

It adds platform and object targets.
refstack_defcore is renamed to refstack_compute.

Change-Id: Iad5bfb27be614aada98eef5b3148965e65210725
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate to Python3 83/67783/11
Cédric Ollivier [Tue, 7 May 2019 09:02:43 +0000 (11:02 +0200)]
Update to Python3

Functest containers leverage on Python3 instead of python2.
https://mail.python.org/pipermail/python-dev/2018-March/152348.html

It also updates robotframework librairies to latest release and Vmtp
to master ([1] is needed)

It patches cloudify rest client to support python3.

Vmtp is currently disabled because it currently supports python2 only.

[1] https://github.com/openstack/vmtp/commit/a5d062881d91bf4f547d92c6e289bea30feb5d6e#diff-b4ef698db8ca845e5845c4618278f29a

Change-Id: I39964a212ec2d4dbf53c9ea7c63f02e0b6a05b48
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Stop leveraging on neutron-tempest-plugin package"
Cedric Ollivier [Mon, 13 May 2019 17:54:33 +0000 (17:54 +0000)]
Merge "Stop leveraging on neutron-tempest-plugin package"

5 years agoAllow building containers when refstack.openstack.org is down 46/67846/1
Cédric Ollivier [Mon, 13 May 2019 12:10:15 +0000 (14:10 +0200)]
Allow building containers when refstack.openstack.org is down

It has been down for days and break our gates again.

Change-Id: I66e286f3624c776c7cec5164df53eb117550e78a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoStop leveraging on neutron-tempest-plugin package 34/67834/1
Cédric Ollivier [Sat, 11 May 2019 19:34:09 +0000 (21:34 +0200)]
Stop leveraging on neutron-tempest-plugin package

It reverts "Take new upper-constraints into account" [1] to follow the
upstream revert [2].

[1] https://github.com/opnfv/functest/commit/14534c4ea68ee84645f8b1ddd836ed684a808385
[2] https://github.com/openstack/requirements/commit/ea2cfe661785c838991aa64b64e59aec245a0c0e

Change-Id: I7085679ff6b04726842289133e526aaed87a416c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDisable Patrole network.test_agents_rbac 96/67796/1
Cédric Ollivier [Wed, 8 May 2019 10:14:50 +0000 (12:14 +0200)]
Disable Patrole network.test_agents_rbac

They don't clean routers (tempest-L3AgentsExtRbacTest-Router) after
testing.

Change-Id: I78cfc783feb51d0f1b029c98e988c07e57e1e694
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoEnable volume backup testing 50/67750/1
Cédric Ollivier [Sat, 4 May 2019 20:20:09 +0000 (22:20 +0200)]
Enable volume backup testing

It conforms with OpenStack gates by default.

Change-Id: Icc1537b0f8342666d2a2a0de4655ba99f4f42470
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoManage block_migration in Rally 38/67738/2
Cédric Ollivier [Thu, 2 May 2019 12:44:08 +0000 (14:44 +0200)]
Manage block_migration in Rally

It creates a new env var BLOCK_MIGRATION (True by default) to allow
block migration for live migration in Rally.

It updates scenarios and blacklisting to take that env vars into account.

Change-Id: I41129432798ae9e40fe23bbe2c2162df4c0dff80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUse block devices for live migration 29/67729/1
Cédric Ollivier [Tue, 30 Apr 2019 20:46:35 +0000 (22:46 +0200)]
Use block devices for live migration

The default values conform with OpenStack and Functest gates [1].
It could be set to false if shared storage-based live migration is
supported [2].

It also currently disables cold migration.

[1] http://logs.openstack.org/84/632984/24/check/tempest-multinode-full-py3/4216037/controller/logs/tempest_conf.txt.gz
[2] https://docs.openstack.org/nova/pike/admin/configuring-migrations.html

Change-Id: I0faa415eba610c20ba54353ac7ba7b0e83722c32
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove python warnings (yaml.load) 04/67704/2
Cédric Ollivier [Thu, 25 Apr 2019 15:56:51 +0000 (17:56 +0200)]
Remove python warnings (yaml.load)

It updates refstack_defcore and vmtp to conform with yaml [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-latest-refstack_defcore-run/186/console

Change-Id: I38e7a8d4c294c27f01c3e7385c4b716522a40334
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoLeverage on DEBUG env var 00/67700/1
Cédric Ollivier [Thu, 25 Apr 2019 12:32:12 +0000 (14:32 +0200)]
Leverage on DEBUG env var

It allows muting debug logs.

Change-Id: I291f3bb7e0a450724a34997c720bde01f72c8e50
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>