functest.git
5 years agoMerge "Allow overriding rally-tag if OpenStack master"
Cedric Ollivier [Wed, 15 Aug 2018 09:17:07 +0000 (09:17 +0000)]
Merge "Allow overriding rally-tag if OpenStack master"

5 years agoMerge "Create new project/user for rally test"
Cedric Ollivier [Wed, 15 Aug 2018 09:16:59 +0000 (09:16 +0000)]
Merge "Create new project/user for rally test"

5 years agoAllow overriding rally-tag if OpenStack master 63/60963/1
Cédric Ollivier [Tue, 14 Aug 2018 21:07:43 +0000 (23:07 +0200)]
Allow overriding rally-tag if OpenStack master

It allows setting a newer rally-openstack tag in ollivier containers
to include "Fix the gates about cinder" [1].

TypeError: create() got an unexpected keyword argument 'source_replica'

[1] https://github.com/openstack/rally-openstack/commit/67882d55ca453d6aa863d279ec4cfc2b52c80f0a
[2] https://bugs.launchpad.net/rally/+bug/1785519

Change-Id: I5ed1002f345b0a9c51783850d09d0f336d0ed3d9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate to Xtesting 0.57 49/60949/1
Cédric Ollivier [Tue, 14 Aug 2018 16:29:36 +0000 (18:29 +0200)]
Update to Xtesting 0.57

It protects vs unset POD_ARCH (It completes "Disable Vmtp if POD_ARCH
= aarch64" [1])

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

Change-Id: I343c7a9047fe09aad7b9a39d0d045ac709f07a7a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoCreate new project/user for rally test 35/60935/2
Juha Kosonen [Tue, 14 Aug 2018 13:00:58 +0000 (16:00 +0300)]
Create new project/user for rally test

FUNCTEST-1002

Change-Id: Id19b9aa70aeded6d99978084b3de4a63e31a81ad
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoRemove all lxd refs 47/60947/1
Cédric Ollivier [Tue, 14 Aug 2018 12:28:03 +0000 (14:28 +0200)]
Remove all lxd refs

All Joid runs are stopped, then these scenarios can't be maintained.

Change-Id: Ida7c8c86cbd377024047d4abbbc1806ad65afc8a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet rally-openstack tag 31/60931/1
Cédric Ollivier [Tue, 14 Aug 2018 11:09:00 +0000 (13:09 +0200)]
Set rally-openstack tag

It also updates rally to the latest tag.
Then it will allow updating pip if required (to clone refs).

Change-Id: I6edb172954672780f627370b0dd0acf0754da635
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoConforms Vmtp with create_server_timeout 29/60929/1
Cédric Ollivier [Tue, 14 Aug 2018 10:57:44 +0000 (12:57 +0200)]
Conforms Vmtp with create_server_timeout

https://build.opnfv.org/ci/view/functest/job/functest-fuel-baremetal-daily-master/387/console

Change-Id: I3ef130bf5ad4b46f26776feeaa434ca528965f36
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDisable Vmtp if POD_ARCH = aarch64 27/60927/1
Cédric Ollivier [Tue, 14 Aug 2018 10:56:15 +0000 (12:56 +0200)]
Disable Vmtp if POD_ARCH = aarch64

Vmtp package delivers amd64 binaries in both architectures.

JIRA: ARMBAND-396

Change-Id: I4c6e010e47c8aa9adfafb373c261262d23ef382a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow setting two image extra properties per testcase 11/60911/1
Cédric Ollivier [Mon, 13 Aug 2018 19:59:22 +0000 (21:59 +0200)]
Allow setting two image extra properties per testcase

It conforms with the flavor extra specs model [1].

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

Change-Id: I1555a313aaf56ae47f9ad2a4529eb8b94e636c00
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate all patch configs 91/60891/1
Cédric Ollivier [Mon, 13 Aug 2018 11:31:38 +0000 (13:31 +0200)]
Update all patch configs

It takes all new testcases into account.
It allows running vnfs vs dpdk scenarios too.

Change-Id: I789f6bb1c3df891b1a94f2a674c15085f81f2f23
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate to Xtesting 0.56 79/60879/1
Cédric Ollivier [Sun, 12 Aug 2018 10:35:37 +0000 (12:35 +0200)]
Update to Xtesting 0.56

Change-Id: Ia7eb5f6c7448bcd760ebb19e2ad66ba183242e83
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Test OpenStack vGPU feature"
Cedric Ollivier [Sat, 11 Aug 2018 08:53:15 +0000 (08:53 +0000)]
Merge "Test OpenStack vGPU feature"

5 years agoFix rally args when serial (tempest_scenario) 71/60871/1
Cédric Ollivier [Sat, 11 Aug 2018 08:32:16 +0000 (10:32 +0200)]
Fix rally args when serial (tempest_scenario)

Change-Id: I04c2389310d1377452a171da9bf50fde67e94e7c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTest OpenStack vGPU feature 13/60713/7
Valentin Boucher [Tue, 7 Aug 2018 16:30:50 +0000 (12:30 -0400)]
Test OpenStack vGPU feature

XCI will be able to deploy this feature
on top of pharos lab with GPU so we have test it

This test can be improved in the future with OpenCL tests etc

|        DEPLOY_SCENARIO        |       os-nosdn-vgpu-ha     |

+-------------------+-------------------+------------------+----------------+
|     TEST CASE     |      PROJECT      |     DURATION     |     RESULT     |
+-------------------+-------------------+------------------+----------------+
|        vgpu       |      functest     |      01:00       |      PASS      |
+-------------------+-------------------+------------------+----------------+

Change-Id: I50618f47097a0257b1834b3966054d20458715df
Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
5 years agoMerge "Publish rally logs to ease debugging."
Cedric Ollivier [Fri, 10 Aug 2018 16:50:17 +0000 (16:50 +0000)]
Merge "Publish rally logs to ease debugging."

5 years agoMerge "Remove explicit Rally task validation"
Cedric Ollivier [Fri, 10 Aug 2018 16:22:52 +0000 (16:22 +0000)]
Merge "Remove explicit Rally task validation"

5 years agoPublish rally logs to ease debugging. 91/60791/2
Cédric Ollivier [Thu, 9 Aug 2018 14:22:12 +0000 (16:22 +0200)]
Publish rally logs to ease debugging.

It also redirect stderr to stdout as tempest mainly prints in stderr.

JIRA: FUNCTEST-999

Change-Id: I64bfa31b01aa2ce5444b6e0f0ac46f8cde8dbaa3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove explicit Rally task validation 51/60851/1
Juha Kosonen [Fri, 10 Aug 2018 13:43:24 +0000 (16:43 +0300)]
Remove explicit Rally task validation

Utilize the output of Rally task execution since it internally
validates the task.

Use Popen.communicate to get the output from the running Rally task.

Change-Id: I9b1299bc26129ff4f89adccec611c78195a3ab02
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoSwitch to vmtp commit id 29/60829/1
Cédric Ollivier [Fri, 10 Aug 2018 10:09:23 +0000 (12:09 +0200)]
Switch to vmtp commit id

The patch "Reuse the router passed as config if available" [1] was
merged.

[1] https://review.openstack.org/#/c/588459/

Change-Id: Iad8a1ff694f0bff3e13922a6c248dbe49b313a11
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Fix method name in Vmtp"
Cedric Ollivier [Thu, 9 Aug 2018 15:59:05 +0000 (15:59 +0000)]
Merge "Fix method name in Vmtp"

5 years agoFix method name in Vmtp 79/60779/1
Juha Kosonen [Thu, 9 Aug 2018 12:53:31 +0000 (15:53 +0300)]
Fix method name in Vmtp

Change-Id: Ie23628f39979e3497c81e23d99f30e0dc7564055
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
5 years agoAdd networking-sfc Tempest test suite 73/60773/1
Cédric Ollivier [Thu, 9 Aug 2018 11:34:19 +0000 (13:34 +0200)]
Add networking-sfc Tempest test suite

Change-Id: I6f1452469cb5ffaf9b538ba87edaa174977b91c4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd networking-bgpvpn Tempest test suite 71/60771/1
Cédric Ollivier [Thu, 9 Aug 2018 11:27:36 +0000 (13:27 +0200)]
Add networking-bgpvpn Tempest test suite

Change-Id: If3191d8e8c16854aa059e6483b3c0ea704777c05
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd timeout when running shaker 55/60755/1
Cédric Ollivier [Wed, 8 Aug 2018 23:11:22 +0000 (01:11 +0200)]
Add timeout when running shaker

Else shaker may run until job timeout if deployment misconfigurations [1]

[1] https://jira.opnfv.org/browse/FUNCTEST-998

JIRA: FUNCTEST-998

Change-Id: I948ff8ffeeccdab637927614193d2c2ef03fe5c8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoInstall Tempest master if OpenStack master 53/60753/1
Cédric Ollivier [Wed, 8 Aug 2018 22:44:56 +0000 (00:44 +0200)]
Install Tempest master if OpenStack master

It seems that gates override the upper-constraints in case of Tempest
[1][2].

[1] http://logs.openstack.org/80/585180/3/check/tempest-full/aa8b698/controller/logs/pip2-freeze.txt.gz
[2] http://artifacts.opnfv.org/logs/functest/lf-virtual3/2018-08-08_16-26-16/tempest_smoke/tempest-report.html

JIRA: FUNCTEST-1000

Change-Id: I48530083b453a4a6d6027763210259050b4d0040
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoConform with OpenStack gates 49/60749/1
Cédric Ollivier [Wed, 8 Aug 2018 21:21:00 +0000 (23:21 +0200)]
Conform with OpenStack gates

It adds testcases and updates regexes to conform with OpenStack gates:
  - tempest-full
  - neutron-tempest-plugin-api

It should be noted that tempest-smoke is no longer run in gates and
two testcases are available for tempest-full as we can't manage
Tempest combine.

Criteria is set to 100% for tempest_full (it works in OpenStack
gates).

JIRA: FUNCTEST-1000

Change-Id: I77a0f533255483bdf61f0a5f60c9c437ce843591
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix swift operator role 91/60691/2
Cédric Ollivier [Tue, 7 Aug 2018 10:06:41 +0000 (12:06 +0200)]
Fix swift operator role

[1] https://build.opnfv.org/ci/view/functest/job/functest-fuel-armband-baremetal-daily-master/35/console

Change-Id: I7236bf5a74f36941f499da32c5c77dcd0b98b6f1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate Xtesting to 0.55.0 81/60681/2
Cédric Ollivier [Tue, 7 Aug 2018 03:54:51 +0000 (05:54 +0200)]
Update Xtesting to 0.55.0

It allows calling one skipped test via run_tests (parallel testing).

Change-Id: I04e5c69f2129e28f1451815938cd5d0f8bbe9e44
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoChange juju_epc cidr 97/60597/1
Cédric Ollivier [Mon, 6 Aug 2018 09:46:52 +0000 (11:46 +0200)]
Change juju_epc cidr

juju cannot bootstrap if cidr already exists which now happens only
if a shared network with the same cidr is defined (it should be
considered as a bug about juju).

By allocation its own cidr, it protects vs remaining rally or tempest
remaining shared networks or vs parallel testing.

juju_epc can already run twice in parallel as it creates a new
project and a private network.

Change-Id: I76c4971d631f763307315478e6cf5a383c91ed36
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMake synchronous Shade calls 77/60577/1
Cédric Ollivier [Sat, 4 Aug 2018 13:10:27 +0000 (15:10 +0200)]
Make synchronous Shade calls

It makes difficult to find the issues (floating ip, boot, ssh
connection, etc...) for a small benefit regarding the current
testcase implementations.

It increases the default floating ip timeout because it has been
reached when running Functest multiple times in parallel. It may
be the root cause when running singlevm vs XCI (in that case,
neutron api and agents are hosted in a nested vm).

Change-Id: Ia97e04902321644c207c59987283754318aee5e5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSetup tempest_smoke images for arm64 61/60561/3
Delia Popescu [Fri, 3 Aug 2018 11:33:37 +0000 (14:33 +0300)]
Setup tempest_smoke images for arm64

Configure the images to be used for tempest_smoke
testcase for ARM

JIRA: ARMBAND-395

Change-Id: Ia13507d70fd05ef541a5154886d52fa388731cee
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
5 years agoMerge "Fix timeout (switch to synchronous calls)"
Cedric Ollivier [Fri, 3 Aug 2018 10:38:54 +0000 (10:38 +0000)]
Merge "Fix timeout (switch to synchronous calls)"

5 years agoProtect VMTP vs cidr conflicts 41/60441/5
Cédric Ollivier [Tue, 31 Jul 2018 14:04:36 +0000 (16:04 +0200)]
Protect VMTP vs cidr conflicts

It now runs vtmp via a new admin member. Else it fails due to cidr
already used.

It only creates a router and both tenant networks are still created
by VMTP.

Change-Id: I05ed41a3b7a01ee97c720176c404929bf8ea97a0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix timeout (switch to synchronous calls) 55/60555/1
Cédric Ollivier [Fri, 3 Aug 2018 10:00:15 +0000 (12:00 +0200)]
Fix timeout (switch to synchronous calls)

It completes "Switch create_server timeout to default value" [1]
which forbids waiting more that 180s (create_server was asynchronous).

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

Change-Id: Icbf9ee48024fe9e10571c2bb7ca895d5828fb561
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix typo (ressources) 53/60553/1
Cédric Ollivier [Fri, 3 Aug 2018 08:31:09 +0000 (10:31 +0200)]
Fix typo (ressources)

Change-Id: Ibe131e0cf02493f0f3a82c1e179848605bd0a292
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoMerge "Fix parse error in tempest_smoke"
Cedric Ollivier [Fri, 3 Aug 2018 05:58:55 +0000 (05:58 +0000)]
Merge "Fix parse error in tempest_smoke"

5 years agoIncrease Cloudify create_server_timeout 45/60545/1
Cédric Ollivier [Fri, 3 Aug 2018 04:19:22 +0000 (06:19 +0200)]
Increase Cloudify create_server_timeout

The timeout has been reached when running multiple vnfs in parallel.
Only few additional seconds seemed required here.

Change-Id: I0d6e38e827c581edb617bb0cc13249645468a2aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix parse error in tempest_smoke 19/60519/2
Delia Popescu [Thu, 2 Aug 2018 12:50:41 +0000 (15:50 +0300)]
Fix parse error in tempest_smoke

Test failes to parse /etc/rally/rally.conf
(RALLY_CONF_FILE) whith inplace=1 keyword argument
for fileinput
One new space is added in second line

JIRA: ARMBAND-395

Change-Id: I8adb333047f9962f4105a6a74e2f8ef83d5745e0
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
5 years agoUpgrade Shaker create_server timeout 05/60505/1
Cédric Ollivier [Thu, 2 Aug 2018 08:26:40 +0000 (10:26 +0200)]
Upgrade Shaker create_server timeout

It ends after a little bit more than 3 minutes in Apex [1].
It increases to 5 minutes like Cloudify.

[1] http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-07-30_11-30-01/functest.log

Change-Id: I8362034107e694ddd5a1e4a1f9e11362100d7cb0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove hw_video_model and hw_firmware_type from metadata 81/60481/1
Delia Popescu [Wed, 1 Aug 2018 13:52:33 +0000 (16:52 +0300)]
Remove hw_video_model and hw_firmware_type from metadata

Starting with the Openstack Queens release,
hw_firmware_type=uefi is implied on AArch64 by default
Using virtio-video, now default in nova, should be used
instead of VGA

JIRA: ARMBAND-388

Change-Id: I393093c5a1a9dd9c8259b3987db22650313cf249
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
5 years agoAdd fallback mechanism if vlan 31/60431/1
Cédric Ollivier [Tue, 31 Jul 2018 11:01:14 +0000 (13:01 +0200)]
Add fallback mechanism if vlan

private_v4 and public_v4 are incorrectly set when vlan is used as
overlay.

JIRA: FUNCTEST-996

Change-Id: I120a247e92e0fd295769b2a0eeb15ce82a0eabc8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoPrint stderr in logs when calling cmd over ssh 29/60429/2
Cédric Ollivier [Tue, 31 Jul 2018 10:25:40 +0000 (12:25 +0200)]
Print stderr in logs when calling cmd over ssh

Change-Id: I152ac898661a0e99a6232df86689c70c468ceaa5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSwitch create_server timeout to default value 23/60423/2
Cédric Ollivier [Tue, 31 Jul 2018 09:01:34 +0000 (11:01 +0200)]
Switch create_server timeout to default value

60s was successfully reached when running all containers (3
containers * 3 branches) in parallel.

It also removes the wait attribute (the current impl will meet
a possible next asynchronous design) which is useless here.

For the time being, only cloudify needs an extra timeout.

Change-Id: Ic7741b4c1a3223be076fb69ef70a3cb6c05456c2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate Xtesting to 0.54.0 79/60379/1
Cédric Ollivier [Mon, 30 Jul 2018 14:25:04 +0000 (16:25 +0200)]
Update Xtesting to 0.54.0

It protects vs uncaught exceptions and then avoids skipping testcases
in that case (see cloudify_ims and juju_epc in [1]).

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console

Change-Id: I8e39f7e742b9fec2e6f6bab542d5f497159f50ac
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDelete alt images before removing the account 63/60363/3
Cédric Ollivier [Mon, 30 Jul 2018 13:50:44 +0000 (15:50 +0200)]
Delete alt images before removing the account

Else it could raise unauthorized exceptions [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console

Change-Id: Ia9b857069f775e2c8ecc5e07cf39b3a1fb7e3540
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoProtect vs exceptions when creating secrets 59/60359/1
Cédric Ollivier [Mon, 30 Jul 2018 13:03:42 +0000 (15:03 +0200)]
Protect vs exceptions when creating secrets

cloudify_ims sometimes faces with exceptions when creating secrets
[1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console

Change-Id: I197748bf97752575dc14650e1e1c382774811cce
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix clearwater test results parsing 41/60341/1
Cédric Ollivier [Mon, 30 Jul 2018 10:45:26 +0000 (12:45 +0200)]
Fix clearwater test results parsing

Before it could extract part of the skipped tests [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console

Change-Id: I7e7564cb7b96705940051fccf0ff1987f34bb962
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow backporting a pylint error 29/60329/1
Cédric Ollivier [Mon, 30 Jul 2018 00:20:10 +0000 (02:20 +0200)]
Allow backporting a pylint error

Change-Id: I2df0964d63c80abbc5c5cc438e1fdd32f24fd52f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix clean() in cloudify ims and router 27/60327/1
Cédric Ollivier [Mon, 30 Jul 2018 00:13:30 +0000 (02:13 +0200)]
Fix clean() in cloudify ims and router

It raised exceptions in both branches [1]

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console

Change-Id: I87b33cedae768f92296efa4570d2a47cd9cdbdf2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRelease floating ips used by juju_epc 19/60319/2
Cédric Ollivier [Sun, 29 Jul 2018 19:48:18 +0000 (21:48 +0200)]
Release floating ips used by juju_epc

It also cleans flavor_alt and image_alt.

Change-Id: I62296075eca75c3c18caac4a3cddeef1fdb26e1b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove VnfOnBoarding 17/60317/2
Cédric Ollivier [Sun, 29 Jul 2018 19:40:20 +0000 (21:40 +0200)]
Remove VnfOnBoarding

All the vnfs are now inherating from scenarios.

Change-Id: I63509102067676ca0676b773db542086caa02d84
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoUpdate juju_epc to leverage on new scenarios 19/60119/3
Cédric Ollivier [Mon, 23 Jul 2018 13:00:14 +0000 (15:00 +0200)]
Update juju_epc to leverage on new scenarios

It avoids duplicating codes across all OPNFV testcases.

It also fixes the issues when starting mongodb [1] by upgrading juju agent.
It stops supporting keystone v2 as the other testcases.

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/lastFailedBuild/console

Change-Id: I06cddddef1121292ffb695dcb73aa79a07c23192
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoLeverage vyos_vrouter on Cloudify 91/59891/9
Cédric Ollivier [Tue, 17 Jul 2018 16:00:37 +0000 (18:00 +0200)]
Leverage vyos_vrouter on Cloudify

It also stop rebooting the VMs.

Change-Id: Ib0f9e1aac1dd8505378b0688930eb41a590a11f1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoStop redirecting output to json files 83/60283/1
Cédric Ollivier [Fri, 27 Jul 2018 12:10:12 +0000 (14:10 +0200)]
Stop redirecting output to json files

Rally may print additional data to console which results in an
invalid json files. The json files are generated via rally instead of
dumping stdout.

It's mandatory to backport the next bugfix [1] in stable/fraser.

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

Change-Id: Ifbd90e685a7b52c70b3110a46e3c7991eddc05f4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoReduce cloudify manager disk size 65/60165/1
Valentin Boucher [Tue, 24 Jul 2018 16:30:24 +0000 (12:30 -0400)]
Reduce cloudify manager disk size

40 Gb is enough

Change-Id: Iae6a72fcf91fda67bbd036f478e344478d48264f
Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
5 years agoMerge "Revert "Temporarily disable Snaps CreateRouterSuccessTests""
Cedric Ollivier [Tue, 24 Jul 2018 16:11:17 +0000 (16:11 +0000)]
Merge "Revert "Temporarily disable Snaps CreateRouterSuccessTests""

5 years agoMerge "New Heat IMS testcase"
Cedric Ollivier [Tue, 24 Jul 2018 09:40:24 +0000 (09:40 +0000)]
Merge "New Heat IMS testcase"

5 years agoProtect vs OS_TENANT_NAME or _ID in shaker 51/60151/1
Cédric Ollivier [Tue, 24 Jul 2018 09:12:25 +0000 (11:12 +0200)]
Protect vs OS_TENANT_NAME or _ID in shaker

It fixes the possible mismatch if both OS_TENANT and OS_PROJECT are
set [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/lastFailedBuild/console

Change-Id: I66b6e3cf30a34aff1234da00cdd6b40da92089e5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDetect admin or Admin role 37/60137/1
Cédric Ollivier [Mon, 23 Jul 2018 20:59:11 +0000 (22:59 +0200)]
Detect admin or Admin role

As Keystone roles are case insensitive, Admin is checked as well.

Change-Id: I28a611add7890c3188a289d1e24c043d88c34ea1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoCreate heat_stack_owner if required 33/60133/4
Cédric Ollivier [Mon, 23 Jul 2018 19:51:40 +0000 (21:51 +0200)]
Create heat_stack_owner if required

It allows testing OpenStack Queens and older [1].
It will be improved in a second change for latest OpenStack releases
(if deprecated).

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/174/console

Change-Id: I6e91e8c45d335aa606370c35b0a03b990e22c165
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoNew Heat IMS testcase 97/59997/6
Valentin Boucher [Thu, 19 Jul 2018 15:35:50 +0000 (11:35 -0400)]
New Heat IMS testcase

In order to validate OpenStack Master deployment
we create this new testcase using OpenStack Heat
as an Orchestrator for  Clearwater VNF

JIRA: FUNCTEST-995

Change-Id: I8b7b74a3753c2d4d4614e9a2798283bd3f99d5d2
Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
5 years agoRevert "Temporarily disable Snaps CreateRouterSuccessTests" 89/60089/1
Cédric Ollivier [Sun, 22 Jul 2018 14:23:52 +0000 (16:23 +0200)]
Revert "Temporarily disable Snaps CreateRouterSuccessTests"

This reverts commit 74c4e99c18d00d80ce7a2c2f0c36e656a842b966.

Change-Id: I6fdfd080e0e3b46e1d65b992e680daefe260add9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRevert "Temporarily disable HOT including OS::Nova::FloatingIPAssociation" 85/60085/1
Cédric Ollivier [Sun, 22 Jul 2018 13:34:20 +0000 (15:34 +0200)]
Revert "Temporarily disable HOT including OS::Nova::FloatingIPAssociation"

This reverts commit 59ba5abb31018282bca796ee0c0652d61192c6bf.

Change-Id: I87a01b828668123dc9d96f5ac7823686ff0fb10e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd secrets operations in cloudify.py 83/60083/1
Cédric Ollivier [Sun, 22 Jul 2018 13:25:07 +0000 (15:25 +0200)]
Add secrets operations in cloudify.py

It tries to prevent race conditions when running cloudify_ims.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/functest/core/singlevm.py", line 411, in run
    if not self.execute():
  File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/cloudify_ims.py", line 120, in execute
    self.cfy_client.secrets.create(k, val)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 86, in create
    response = self.api.put('/secrets/{0}'.format(key), data=data)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 263, in put
    timeout=timeout)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 233, in do_request
    'SSL, but the client does'.format(e)
ConnectionError: ('Connection aborted.', BadStatusLine("''",))

Change-Id: Id2603bbda462b50d3140b6f45894c8810d542e4c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd helper to find string in console 77/60077/1
Cédric Ollivier [Sun, 22 Jul 2018 09:55:31 +0000 (11:55 +0200)]
Add helper to find string in console

It allows checking when cloud-init is finished (see heat_ims).

Change-Id: I951aabff29457d7b7544a809f9fce1f83706035e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSkip Snaps testcases when OpenStack Rocky 69/60069/1
Cédric Ollivier [Sat, 21 Jul 2018 07:42:16 +0000 (09:42 +0200)]
Skip Snaps testcases when OpenStack Rocky

Snaps is testing vs OpenStack Queens following the traditional
release track. Then Snaps testcases must be skipped vs OpenStack
master as deployed by Apex.

Snaps isn't compatible yet with the last Cinder changes (API
microversions) which is out of its current scope [1].

[1] http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-07-19_05-29-02/functest.log

Change-Id: I1e93527d9c87eb11bf7fd0cc9d04597614d32370
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd helpers to detect OpenStack versions 67/60067/1
Cédric Ollivier [Sat, 21 Jul 2018 07:22:39 +0000 (09:22 +0200)]
Add helpers to detect OpenStack versions

It leverages on Nova API Microversions [1].

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

Change-Id: I60abf9089036e56fcbcd6c2b734666ea20875ceb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoIncrease create server timeout for shaker test 49/60049/1
Delia Popescu [Fri, 20 Jul 2018 12:31:24 +0000 (15:31 +0300)]
Increase create server timeout for shaker test

Change-Id: Ie0fdfd2bbd93952bcd35a30c96b7980ffeb0d87c
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
5 years agoMinor change about subnet pool 47/60047/1
Cédric Ollivier [Fri, 20 Jul 2018 11:31:50 +0000 (13:31 +0200)]
Minor change about subnet pool

It reverts the subnet pool to 192.168.120.0/24.
It avoids conflicts with default CPE private subnets.

It also increases cloudify spawning timeout.

Change-Id: I70183cede0690c2cbc74f9c30a38892d829db2c9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAllow overriding the default role 43/60043/1
Cédric Ollivier [Fri, 20 Jul 2018 08:45:20 +0000 (10:45 +0200)]
Allow overriding the default role

It allows testing controllers which implements other RBAC policies.
Defining NEW_USER_ROLE=admin will easily raise side effects for
orchestrators such as Juju and Cloudify.

Change-Id: Ia78a25381aeb8aa81fd1872661629e1c08432b8f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoStop Fuel logics in odl 35/60035/1
Cédric Ollivier [Fri, 20 Jul 2018 08:36:58 +0000 (10:36 +0200)]
Stop Fuel logics in odl

Fuel is setting the right env vars [1].

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

Change-Id: Ieb0ae1887859e0b7d3f77dfb5100a633b6479a37
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoCover cinder testcases 93/59493/8
Delia Popescu [Tue, 3 Jul 2018 13:30:10 +0000 (16:30 +0300)]
Cover cinder testcases

JIRA: FUNCTEST-908

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ie9662877cba89ea96de4403ee2b736c118a044d5
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
5 years agoTemporarily disable test_image_signing tests 65/59965/1
Cédric Ollivier [Wed, 18 Jul 2018 20:41:58 +0000 (22:41 +0200)]
Temporarily disable test_image_signing tests

They don't pass in two different Queens deployments.
The topic will continue upstream.

Change-Id: I43d6b8306aee6934fa1545ec3ed8130bb9b23ee4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRemove logics about Daisy in odl 63/59963/1
Cédric Ollivier [Wed, 18 Jul 2018 20:14:28 +0000 (22:14 +0200)]
Remove logics about Daisy in odl

Daisy is now setting the right env vars [1].

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

Change-Id: If23c0ac0b5ab2f4f4b9515e27d845cb9c4d07ded
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSwitch VMTP_TAG to the new commit id 61/59961/1
Cédric Ollivier [Wed, 18 Jul 2018 18:43:32 +0000 (20:43 +0200)]
Switch VMTP_TAG to the new commit id

The related review has been merged [1].

[1] https://review.openstack.org/#/c/580914/

Change-Id: I64dc2a38b08d02ea653582159d2af83fc7e16e31
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDelete the right dir when building functest-vnf 43/59943/1
Cédric Ollivier [Wed, 18 Jul 2018 14:00:35 +0000 (16:00 +0200)]
Delete the right dir when building functest-vnf

It reduces a lot the size of the docker image.

Change-Id: Ifd577169697b33dfd89594e8dd3afe4aa34ec7f9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoIncrease timeout when creating servers 35/59935/1
Cédric Ollivier [Wed, 18 Jul 2018 13:05:47 +0000 (15:05 +0200)]
Increase timeout when creating servers

It takes times to prepare disk on compute nodes (spawning).
The default value is enough for all cirros VMs but it has to be
increased for all cloudify VMs (4.1G).

Change-Id: I3f1fc0142a73c586e9219a2718bfc467cc48e275
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoForce a GET operations on cloudify API 33/59933/1
Cédric Ollivier [Wed, 18 Jul 2018 12:56:42 +0000 (14:56 +0200)]
Force a GET operations on cloudify API

Cloudify is considered as running by the client but sometimes it
failed when listing secrets right after. It adds that check in
cloudify.py.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/functest/core/singlevm.py", line 391, in run
    if not self.execute():
  File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/cloudify_ims.py", line 119, in execute
    secrets_list = self.cfy_client.secrets.list()
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 113, in list
    response = self.api.get('/secrets', params=params)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 252, in get
    timeout=timeout)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 233, in do_request
    'SSL, but the client does'.format(e)
ConnectionError: ('Connection aborted.', BadStatusLine("''",))

Change-Id: Ie1b25ff529cfbf9f7476821499da369a46126e81
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTypo 09/59909/1
Cédric Ollivier [Wed, 18 Jul 2018 07:27:33 +0000 (09:27 +0200)]
Typo

Change-Id: Ibff3b01c50bfee266d0b99fab5b7baf271d43de4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet filename_alt in tempest 93/59893/5
Cédric Ollivier [Tue, 17 Jul 2018 16:18:04 +0000 (18:18 +0200)]
Set filename_alt in tempest

Change-Id: I9137ee30bd2107ec23ef6cfea92ccfc5f010410d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoLeverage cloudify_ims on Cloudify 81/59881/1
Cédric Ollivier [Tue, 17 Jul 2018 11:19:54 +0000 (13:19 +0200)]
Leverage cloudify_ims on Cloudify

It also defines 2 new methods to avoid duplicating code:
  - TenantNetwork1.get_public_auth_url()
  - VmReady1.publish_image_alt()

Shaker and Tempest are updated as well.

Change-Id: Ie9095c57c580b95f067d5a8275ad71818b4df335
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix typos in trunk-details 55/59855/1
Cédric Ollivier [Mon, 16 Jul 2018 12:30:09 +0000 (14:30 +0200)]
Fix typos in trunk-details

Else neutron_trunk is skipped [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/184/console

Change-Id: I5d63e84414d8fc3af3ef2ac5b4d023fc5e59ef81
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoRename Patrole config fields 45/59845/1
Cédric Ollivier [Mon, 16 Jul 2018 08:01:56 +0000 (10:01 +0200)]
Rename Patrole config fields

Else it conflicts with the new tempest config fields [1].
It makes sense to switch to includes here.

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-master/566/console

Change-Id: If7b3025b4003ea5704c6a3cdeae8cd00f1c5509e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTemporarily disable CreateInstanceSingleNetworkTests 37/59837/1
Cédric Ollivier [Sun, 15 Jul 2018 19:40:53 +0000 (21:40 +0200)]
Temporarily disable CreateInstanceSingleNetworkTests

It can only work if tests are executed via admin (+default domain)
[1].

[1] https://jira.opnfv.org/browse/SNAPS-322

Change-Id: I80dbb46a2197af77fe83ee8768f46bb70b2a810c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDefine env vars for ODL inputs 35/59835/1
Cédric Ollivier [Sun, 15 Jul 2018 13:11:35 +0000 (15:11 +0200)]
Define env vars for ODL inputs

It's linked to "Add default param for ODL password" [1].

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

Change-Id: Ib88d9371a2b6febb5c1af69ffda9b3c5024999e9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoDynamically skip neutron_trunk and barbican 33/59833/2
Cédric Ollivier [Sun, 15 Jul 2018 12:15:45 +0000 (14:15 +0200)]
Dynamically skip neutron_trunk and barbican

It avoids fasly testcases in failure for end users.
It also removes the neutron_trunk class which is now useless (Queens).

Change-Id: I3f5a1ac84a50e061da6eadcc5c9bafb2e99050db
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTypo 31/59831/1
Cédric Ollivier [Sun, 15 Jul 2018 10:43:42 +0000 (12:43 +0200)]
Typo

Change-Id: I55064f83d2a97eaae2a2861d4451ae34e547c40c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoInclude neutron_tempest_plugin in tempest-[smoke,full] 29/59829/1
Cédric Ollivier [Sun, 15 Jul 2018 10:22:06 +0000 (12:22 +0200)]
Include neutron_tempest_plugin in tempest-[smoke,full]

Change-Id: I19f9a6ff2f76a4684bf341b2f22ffc4d09dca1cc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoLeverage on Xtesting 0.53 27/59827/1
Cédric Ollivier [Sun, 15 Jul 2018 10:19:43 +0000 (12:19 +0200)]
Leverage on Xtesting 0.53

It allows dynamically skipping test cases.

Change-Id: Ida82e76478316fce61dd59dd206e1c03943b084a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoSet swift_operator_role if required 19/59819/1
Cédric Ollivier [Sat, 14 Jul 2018 11:37:35 +0000 (13:37 +0200)]
Set swift_operator_role if required

Apex creates member as default role which conflicts with the default
swift_operator_role [1]. It detects the default role in lowercase as
well and write it in rally.conf if required.

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-virtual-suite-master/116/console

Change-Id: Ic4dc98c793207fc32ff35852472742c92db6699c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoTemporarily disable HOT including OS::Nova::FloatingIPAssociation 15/59815/1
Cédric Ollivier [Sat, 14 Jul 2018 03:53:07 +0000 (05:53 +0200)]
Temporarily disable HOT including OS::Nova::FloatingIPAssociation

Change-Id: I31b76c5b3604845367c10f6e5d55c415042f6d47
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoFix components and vnf testcase dependencies 07/59807/1
Cédric Ollivier [Fri, 13 Jul 2018 19:54:41 +0000 (21:54 +0200)]
Fix components and vnf testcase dependencies

It completes "Leverage to Xtesting 0.51" [1].

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

Change-Id: Id36f1d84c305829d14e069b6ec5d056256f42fe1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoForce new project.id when creating new users 87/59787/1
Cédric Ollivier [Fri, 13 Jul 2018 06:45:40 +0000 (08:45 +0200)]
Force new project.id when creating new users

Else it raises side effects when both project.id and project.name are
defined (see Apex [1])

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/148/console

Change-Id: I98665ed55a55fdd02e25d8ad17b78d84548b0ec8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoLeverage to Xtesting 0.51 55/59755/3
Cédric Ollivier [Thu, 12 Jul 2018 12:30:21 +0000 (14:30 +0200)]
Leverage to Xtesting 0.51

It removes ci_loop which has been useless from Docker slicing.
It can filter now on any env var (e.g. CI_LOOP if required by XCI).

Change-Id: Ibd685edf4636bd251c85466e8b4febcd1e20d312
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoProtect vs former interface format 31/59731/1
Cédric Ollivier [Thu, 12 Jul 2018 07:52:21 +0000 (09:52 +0200)]
Protect vs former interface format

Compass still set publicURL [1]

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-fraser/lastFailedBuild/consoleFull

Change-Id: I88c6ca336a7017f97f4c07719156e567d1afb9df
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoHandle certificate in shaker.py 27/59727/1
Cédric Ollivier [Thu, 12 Jul 2018 04:02:25 +0000 (06:02 +0200)]
Handle certificate in shaker.py

http://artifacts.opnfv.org/logs/functest/huawei-virtual2/2018-07-11_18-47-21/functest.log

Change-Id: I9049a06031db2335410828ecb30e763077360bc3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAvoid duplicating tempest section in rally.conf 23/59723/1
Cédric Ollivier [Thu, 12 Jul 2018 03:34:54 +0000 (05:34 +0200)]
Avoid duplicating tempest section in rally.conf

Change-Id: I79598cce2c7dfe0a2e969ddd32735c3eb189fa7a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoReuse the right detected role name 21/59721/1
Cédric Ollivier [Wed, 11 Jul 2018 18:58:04 +0000 (20:58 +0200)]
Reuse the right detected role name

It completes "Try to get Member or member role" [1][2].

[1] https://gerrit.opnfv.org/gerrit/#/c/59661/
[2] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/144/console

Change-Id: Ib38b513906b08d6f85834e03f5415e83b66b733b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
5 years agoAdd tempest section in rally.conf 15/59715/1
Cédric Ollivier [Wed, 11 Jul 2018 18:32:08 +0000 (20:32 +0200)]
Add tempest section in rally.conf

It completes the previous patch [1][2].

[1] https://gerrit.opnfv.org/gerrit/#/c/59681/
[2] https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-master/555/console

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