functest.git
4 years agoVerify additional Nova features 44/68944/3
Cédric Ollivier [Thu, 21 Nov 2019 12:52:51 +0000 (13:52 +0100)]
Verify additional Nova features

Our SUT allows verifying the next Nova features
  - shelve
  - vnc_console
  - cold_migration

attach_encrypted_volume is now False because of ceph.

It writes the tempest default values to ease highlighting the overall
configuration.

Change-Id: Ib9ebc8e5b390ea99edf2c3aacbd873c5eb6e7abc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoSet manage_volume_ref and manage_snapshot_ref 51/68951/1
Cédric Ollivier [Fri, 22 Nov 2019 19:43:53 +0000 (20:43 +0100)]
Set manage_volume_ref and manage_snapshot_ref

Ceph doesn't conform with the LVM driver and asks for modifying the
manage volume and snapshop refs [1].

It allows passing test_unmanage_manage_snapshot [2].

[1] https://opendev.org/openstack/tempest/commit/ebc752b59dd3e2164807930e31b313a92bce70d5
[2] http://artifacts.opnfv.org/functest/functest-opnfv-functest-smoke-latest-tempest_full-run-480/tempest_full/tempest-report.html

Change-Id: I8d3b2484ba5cbd203c32fa446fa27e17a80888d5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoConform with latest SUT updates 43/68943/2
Cédric Ollivier [Wed, 20 Nov 2019 23:33:01 +0000 (00:33 +0100)]
Conform with latest SUT updates

Ceph is now used as backend which requires few adaptations for live
migration. It differs from the main OpenStack gates but suits CNTT and
most of the feedbacks received from enduser deployments.

Change-Id: If6b76a7d4ec09f90467f3e63618c15a9b413bfbd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate Xtesting 0.84 29/68929/1
Cédric Ollivier [Mon, 18 Nov 2019 20:05:27 +0000 (21:05 +0100)]
Update Xtesting 0.84

It bypasses the current S3 compat limitation as proposed by google
(multipart upload).

Change-Id: Id702bf32e41e0d2ff904f1e22df1998857454106
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoFix details in Rally 19/68919/1
Cédric Ollivier [Sun, 17 Nov 2019 11:46:28 +0000 (12:46 +0100)]
Fix details in Rally

self.details is now a dict and summary is located under root [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-hunter-rally_sanity-run/422/console

Change-Id: Ic89e674b2f6660704b9dafe6070a224753e2af46
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate to Xtesting 0.83 09/68909/1
Cédric Ollivier [Sat, 16 Nov 2019 15:44:27 +0000 (16:44 +0100)]
Update to Xtesting 0.83

It supports mimetypes and then eases reading the reports from browser.

Change-Id: Ic38fca9fb05ca1ad76b589800b22bc78882c7806
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoMerge "Correctly override dir_results and res_dir"
Cedric Ollivier [Sat, 16 Nov 2019 13:36:34 +0000 (13:36 +0000)]
Merge "Correctly override dir_results and res_dir"

4 years agoMerge "Add tempest_keystone in CNTT API Compliance"
Cedric Ollivier [Sat, 16 Nov 2019 13:36:08 +0000 (13:36 +0000)]
Merge "Add tempest_keystone in CNTT API Compliance"

4 years agoCorrectly override dir_results and res_dir 97/68897/1
Cédric Ollivier [Sat, 16 Nov 2019 13:01:05 +0000 (14:01 +0100)]
Correctly override dir_results and res_dir

Both have to be modified else publishing artifacts fails [1].

[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-healthcheck-latest-tempest_smoke-run/555/console

Change-Id: Ibd110e4b57cb443b12adea73f73c8cdf7f828652
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoOptimize lxml build if arm 93/68893/1
Cédric Ollivier [Sat, 16 Nov 2019 10:38:08 +0000 (11:38 +0100)]
Optimize lxml build if arm

Else it raises timeouts on travis-ci.org:
https://www.travis-ci.org/collivier/functest/builds/612068457
https://www.travis-ci.org/collivier/functest/builds/612116863
https://www.travis-ci.org/collivier/functest/jobs/612116916

Change-Id: Id34144ebcdf3f418d5a07068434eb7aa96b023d2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd tempest_keystone in CNTT API Compliance 88/68888/1
Cédric Ollivier [Fri, 15 Nov 2019 20:32:08 +0000 (21:32 +0100)]
Add tempest_keystone in CNTT API Compliance

It excludes test_federated_authentication as federation is currently
optional [1].

Close cntt-n/CNTT#624

[1] https://github.com/collivier/CNTT/commit/2e4ae5d0f4ebf4ef4bbc2504ed6cd46388361c09

Change-Id: Ie322e7912c429543c5da92f8afb33de3e8e75c8a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoTest identity project_tags and application_credentials 87/68887/1
Cédric Ollivier [Fri, 15 Nov 2019 19:27:32 +0000 (20:27 +0100)]
Test identity project_tags and application_credentials

Both are supported by OpenStack and Functest gates.
It also sets the default values to highlight the coverage.

Change-Id: Iae080a8bde0c411acc7811e7a0e70e3471db8c98
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd tempest_cinder in compliance 54/68854/1
Cédric Ollivier [Sun, 10 Nov 2019 16:58:40 +0000 (17:58 +0100)]
Add tempest_cinder in compliance

It conforms with Cinder Microversions and Feature [1].
It cleans the testcases which require CNTT updates (Keystone, Glance,
Nova, etc.)

[1] https://github.com/cntt-n/CNTT/pull/577

Change-Id: I8e719e9f48d70a860c0f879117144bb3ce6f4875
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd features volume testing 53/68853/1
Cédric Ollivier [Sun, 10 Nov 2019 15:12:29 +0000 (16:12 +0100)]
Add features volume testing

The next features are supported by Functest SUT:
 - backup
 - snapshot
 - clone
 - manage_snapshot
 - manage_volume
 - volume_revert

Change-Id: I0e83bb616a56b9e8651115bebf2373f85c642260
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate neutron-tempest-plugin-api regex (CNTT) 52/68852/2
Cédric Ollivier [Sun, 10 Nov 2019 14:09:45 +0000 (15:09 +0100)]
Update neutron-tempest-plugin-api regex (CNTT)

It conforms with the last updates in API [1] adding Neutron QoS and
Trunk as mandatory.

QosMinimumBandwidthRuleTestJSON is skipped as it's not covered by
OpenStack (and Functest) gates.

[1] https://github.com/cntt-n/CNTT/pull/463

Change-Id: I54ff5e1fdb9b1e7265c63e3f66dfcf2f10db07d5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoSet provider_vlans in tempest Neutron_plugin_options 51/68851/1
Cédric Ollivier [Sun, 10 Nov 2019 13:43:31 +0000 (14:43 +0100)]
Set provider_vlans in tempest Neutron_plugin_options

Few tests are skipped if this value is unset.
Then it's needed to fully cover Neutron Trunk (Compliance).

Change-Id: Ife4becb7ff8b47c2d90fc6c5eb4f585685205ed6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoBuld cntt containers in a specific stage 43/68843/1
Cédric Ollivier [Sun, 10 Nov 2019 08:04:38 +0000 (09:04 +0100)]
Buld cntt containers in a specific stage

They must be built after smoke.

Change-Id: I939ef6c4663ad940c9f1b95440980628c4880385
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate to Xtesting 0.82.0 35/68835/1
Cédric Ollivier [Sat, 9 Nov 2019 18:48:10 +0000 (19:48 +0100)]
Update to Xtesting 0.82.0

Change-Id: Ie94b35c9107c851bf0a412c1361629e0cf4154a2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate Xtesting to 0.81 01/68801/5
Cédric Ollivier [Thu, 7 Nov 2019 07:03:33 +0000 (08:03 +0100)]
Update Xtesting to 0.81

It contains a key fix about bucket creation.
It also changes the Rebaca link which sometimes breaks sphinx
spellcheck.

Change-Id: Iaa7c791ad9a70c9fb65288557c5c8e8cddb5f2d0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate xtesting to 0.80.0 66/68766/1
Cédric Ollivier [Sat, 2 Nov 2019 20:45:58 +0000 (21:45 +0100)]
Update xtesting to 0.80.0

It allows publishing the artifacts via Xtesting.
It's required by the new Xtesting Ansible role [1].

[1] https://github.com/collivier/ansible-role-xtesting/commit/8c62525bb0d0b5f8dcc2c4436711d5d075de8811

Change-Id: I832e5e19467c7fd86a46574448faad4d6f2d4c0d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoPin sphinxcontrib-spelling (4.3.0) 65/68765/1
Cédric Ollivier [Sat, 2 Nov 2019 21:23:56 +0000 (22:23 +0100)]
Pin sphinxcontrib-spelling (4.3.0)

Change-Id: I926d8e4cfd344f7177f2d2ad130b226a6726f214
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoTemporarily switch to xrally_kubernetes pull request 46/68746/1
Cédric Ollivier [Fri, 1 Nov 2019 14:44:43 +0000 (15:44 +0100)]
Temporarily switch to xrally_kubernetes pull request

The pull request "Remove deprecated extensions/v1beta1 API" [1] is
needed by Functest master and Jerma.

It will be safely reverted once the pull request is merged.

[1] https://github.com/xrally/xrally-kubernetes/pull/46

Change-Id: Ifaab89654a5b75a5948a0a5ccdb6e39349ce5cb4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoMerge "Publish functest-cntt-smoke"
Juha Kosonen [Tue, 29 Oct 2019 09:13:44 +0000 (09:13 +0000)]
Merge "Publish functest-cntt-smoke"

4 years agoMerge "Add keystone-tempest-plugin"
Cedric Ollivier [Tue, 29 Oct 2019 09:06:35 +0000 (09:06 +0000)]
Merge "Add keystone-tempest-plugin"

4 years agoMerge "Add cinder-tempest-plugin"
Cedric Ollivier [Tue, 29 Oct 2019 09:06:26 +0000 (09:06 +0000)]
Merge "Add cinder-tempest-plugin"

4 years agoMerge "Add healthcheck Horizon tests"
Cedric Ollivier [Tue, 29 Oct 2019 09:06:13 +0000 (09:06 +0000)]
Merge "Add healthcheck Horizon tests"

4 years agoAdd keystone-tempest-plugin 98/68698/2
Cédric Ollivier [Sat, 26 Oct 2019 16:14:47 +0000 (18:14 +0200)]
Add keystone-tempest-plugin

It adds tempest_keystone which runs the tests proposed by
keystone-tempest-plugin [1].

[1] https://opendev.org/openstack/keystone-tempest-plugin

Change-Id: I83db584c37fe63a549ccf396b03e034778254b3a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd cinder-tempest-plugin 97/68697/2
Cédric Ollivier [Sat, 26 Oct 2019 16:00:54 +0000 (18:00 +0200)]
Add cinder-tempest-plugin

It adds tempest_cinder which runs the tests proposed by
cinder-tempest-plugin [1]. test_incremental_backup is disabled because
it currently fails vs Functest SUT (under analysis).

[1] https://opendev.org/openstack/cinder-tempest-plugin

Change-Id: I85b255eb05b9ab1c74c3829148da5230d6c7647e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd healthcheck Horizon tests 96/68696/2
Cédric Ollivier [Sat, 26 Oct 2019 13:30:28 +0000 (15:30 +0200)]
Add healthcheck Horizon tests

It runs TestDashboardBasicOps as proposed by tempest-horizon [1].
It's skipped if DASHBOARD_URL is unset (default).

[1] https://opendev.org/openstack/tempest-horizon

Change-Id: I1b6b5609412770609f412da4927641588b173ed6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoPublish functest-cntt-smoke 68/68668/4
Cédric Ollivier [Wed, 23 Oct 2019 21:20:02 +0000 (23:20 +0200)]
Publish functest-cntt-smoke

It tunes neutron-tempest-plugin-api to avoid skipping any test
(conformance as expected by CNTT). Until CNTT clearly defines the
optional and mandatory neutron extensions, it selects the
OpenStack and Functest gate values as default.

The next Neutron extensions are considered as optional (still verified
by functest-smoke):
- logging
- network-segment-range
- port-resource-request
- qos
- trunk
- l3-conntrack-helper
- metering
- floating-ip-port-forwarding
- uplink-status-propagation
- dns-domain-ports
- dns-integration
- router-interface-fip

The next tests (tempest_full, tempest_slow, tempest_scenario, etc.)
will be updated in next changes.

Change-Id: I003d1e509cd6dc7bd58261f27676fb53cb79e68c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAdd spelling exceptions (travis-ci) 92/68692/1
Cédric Ollivier [Sat, 26 Oct 2019 10:30:51 +0000 (12:30 +0200)]
Add spelling exceptions (travis-ci)

This words seem fine but it enforces the verification in travis-ci [1].

[1] https://travis-ci.org/collivier/functest/jobs/603020830

Change-Id: I44b8db5e63668899a27480a7f7da5d48f9f41f21
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate RefStack lists to 2019.06 89/68689/1
Cédric Ollivier [Sat, 26 Oct 2019 07:46:10 +0000 (09:46 +0200)]
Update RefStack lists to 2019.06

Change-Id: I9d3abc3996857d8905007640250b94025735809c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoMerge "Add neutron_plugin_options section in tempest.conf"
Cedric Ollivier [Fri, 25 Oct 2019 20:41:08 +0000 (20:41 +0000)]
Merge "Add neutron_plugin_options section in tempest.conf"

4 years agoMerge "Allow checking Tests count"
Cedric Ollivier [Thu, 24 Oct 2019 21:49:04 +0000 (21:49 +0000)]
Merge "Allow checking Tests count"

4 years agoAdd neutron_plugin_options section in tempest.conf 78/68678/3
Cédric Ollivier [Thu, 24 Oct 2019 21:33:44 +0000 (23:33 +0200)]
Add neutron_plugin_options section in tempest.conf

It avoids skipping the next 2 tests [1]:
neutron_tempest_plugin.api.admin.test_agent_availability_zone.AgentAvailabilityZoneTestCase.test_agents_availability_zone
neutron_tempest_plugin.api.admin.test_networks.NetworksTestAdmin.test_create_tenant_network_vxlan

[1] http://artifacts.opnfv.org/functest/functest-opnfv-functest-smoke-latest-neutron-tempest-plugin-api-run-498/results/neutron-tempest-plugin-api/tempest-report.html

Change-Id: I83f3f44302336045e47514e0aa0b67737161f0e1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAllow checking Tests count 67/68667/1
Cédric Ollivier [Wed, 23 Oct 2019 17:50:41 +0000 (19:50 +0200)]
Allow checking Tests count

It meets CNTT requirements (verifying conformance with a reference
implementation) and may protect vs synchronization issues (see gambia
refstack_defcore).

Change-Id: I842bc4ed91eec6bc545c489e3686d0d41dae7b44
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoAllow blacklisting tests if public endpoint only 66/68666/2
Cédric Ollivier [Wed, 23 Oct 2019 11:56:32 +0000 (13:56 +0200)]
Allow blacklisting tests if public endpoint only

It allows reusing the blacklisting system if only public endpoints are
reachable (ONAP Openlab testing). It contains a first list of
tempest-based tests which force the use of admin endpoints.

Change-Id: Ic1ab07dec3ae1f2a0ca50b80e08cd0ac396f2e56
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate Flake8 53/68653/1
Cédric Ollivier [Sat, 19 Oct 2019 19:05:05 +0000 (21:05 +0200)]
Update Flake8

It avoids the next incompatibility:
ERROR: flake8 2.5.5 has requirement mccabe<0.5,>=0.2.1, but you'll have mccabe 0.6.1 which is incompatible.

Change-Id: Ic3bb14b032adfee64109549abc0a09d8cc86968f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoRemove lfreleng docs 52/68652/1
Cédric Ollivier [Sat, 19 Oct 2019 18:47:33 +0000 (20:47 +0200)]
Remove lfreleng docs

Its output may has never been used and it's obsolete:
ERROR: lfdocs-conf 0.3.1 has requirement more-itertools~=5.0.0, but you'll have more-itertools 7.2.0 which is incompatible.
ERROR: lfdocs-conf 0.3.1 has requirement Sphinx~=1.8.5, but you'll have sphinx 2.2.0 which is incompatible.

Change-Id: Id5d24b94f6cdbbb93be8dbb18cde1a7fc9db6a42
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoCheck spelling in rst files 43/68643/4
Cédric Ollivier [Thu, 17 Oct 2019 18:53:04 +0000 (20:53 +0200)]
Check spelling in rst files

It fixes a few typos too and installs enchant in TravisCI and CircleCI
jobs.

Change-Id: Id5dbf5f926edc8b0b4e4337d11bf63e21ea7e173
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate Functest release notes 35/68635/2
Cédric Ollivier [Sun, 13 Oct 2019 14:24:42 +0000 (16:24 +0200)]
Update Functest release notes

Change-Id: I7d3198ea92105870425164ce5ade6aca824f8dfd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdate python dirs in docs 30/68630/1
Cédric Ollivier [Sun, 13 Oct 2019 13:32:08 +0000 (15:32 +0200)]
Update python dirs in docs

master is now leveraging on python3.7.

Change-Id: I7076e143f162a6aacd2e8d8d8f38524aea71e365
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoUpdates all testcases and their results 27/68627/1
Cédric Ollivier [Sun, 13 Oct 2019 12:43:16 +0000 (14:43 +0200)]
Updates all testcases and their results

Change-Id: I127146b4d6face1b6221e049636a29e601415fd8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoLeverage on Rally task tags 16/68616/5
Cédric Ollivier [Fri, 11 Oct 2019 08:44:25 +0000 (10:44 +0200)]
Leverage on Rally task tags

It avoids parsing rally task outputs which may hang (subprocess
communicate) as seen in rally_full and rally_jobs.

It simply selects test names as tags.

Change-Id: I88b54a8f155e557f8a606fdbd7d86c1f4d5dae3b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoMerge "Switch to Tempest password generator"
Cedric Ollivier [Tue, 8 Oct 2019 18:36:14 +0000 (18:36 +0000)]
Merge "Switch to Tempest password generator"

4 years agoSwitch to Tempest password generator 64/68564/3
Cédric Ollivier [Wed, 2 Oct 2019 03:26:45 +0000 (05:26 +0200)]
Switch to Tempest password generator

Functest depends on Tempest (master) then we can safely leverage on
its password generator. '%' is forbidden in our logic then it's
replaced by '!' (extra random logic seems overkilled).

Change-Id: Ie1d1b78401999efbbb5aec4500c14595bde87987
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
4 years agoCount all hypervisors by default 82/68582/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>
4 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>
4 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>
4 years agoMerge "Count all active hypervisors"
Cedric Ollivier [Tue, 1 Oct 2019 08:40:09 +0000 (08:40 +0000)]
Merge "Count all active hypervisors"

4 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>
4 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>
4 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>
4 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>
4 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>
4 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"

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agoMerge "Add tempest slow"
Cedric Ollivier [Wed, 28 Aug 2019 19:24:16 +0000 (19:24 +0000)]
Merge "Add tempest slow"

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

4 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"

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>