functest.git
8 years agoBugfix add "fi" at the end of the if-else statement in run_tests.sh 55/9755/1
jose.lausuch [Wed, 10 Feb 2016 20:39:54 +0000 (21:39 +0100)]
Bugfix add "fi" at the end of the if-else statement in run_tests.sh

Change-Id: I14945cf335803936043ab71dff93250577bc6601
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 188aef4912beee7a8eb87272de1500a1bded99f0)

8 years agoAdd -n|--no-clean flag to vPing,Tempest,Rally,vIMS scripts 43/9743/1
jose.lausuch [Wed, 10 Feb 2016 17:14:52 +0000 (18:14 +0100)]
Add -n|--no-clean flag to vPing,Tempest,Rally,vIMS scripts

Use --no-clean flag in run_tests.sh to tell the test scripts to cleanup
or not the resources

Change-Id: I597eca5199e1eaf16b1f03a223222d33e4adf170
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit abc81e24d33b9bf8d2f8fb05dc5f5f57443abe93)

8 years agoRename the vPing scripts proplery and adapt documentation 33/9733/1
jose.lausuch [Wed, 10 Feb 2016 13:38:08 +0000 (14:38 +0100)]
Rename the vPing scripts proplery and adapt documentation

Change-Id: Idb498eb7cefd938006661f42f1bf1772395d9d47
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoDoc updates 21/9721/1
jose.lausuch [Tue, 9 Feb 2016 17:29:01 +0000 (18:29 +0100)]
Doc updates

- Some clarifications, rephrasing
- Remove more statements related to the DB
- Add more info for vPing
- Add more info about clean defaults

Change-Id: I12e97443852dc38a23bda589945ca0333a37e410
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit e637e75435587014cb99edbc57e79970095d0464)

8 years agoCreate Rally summary report also for verbose mode 13/9713/1
jose.lausuch [Wed, 10 Feb 2016 11:42:26 +0000 (12:42 +0100)]
Create Rally summary report also for verbose mode

Also:
- Fix percentage format of summary
- Get the percentage from the row 'total'

JIRA: FUNCTEST-134

Change-Id: Ifb45523921b4096c3242578cf4ddc6b084e8bbb2
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 945aff5ef35837170fc09953b83cfb6081a1edad)

8 years agoPush rally summary results into DB 09/9709/1
Morgan Richomme [Wed, 10 Feb 2016 10:51:37 +0000 (11:51 +0100)]
Push rally summary results into DB

json produced by Rally are pushed to rally_details

Change-Id: I2f057093307cb395f5c5ffd42c3d228b05133a09
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 96f4bbb9aef2b4d3a8bda16b82a06157c110d2e9)

8 years agoRemove obsolete public network definitions 43/9643/1
Juha Kosonen [Tue, 9 Feb 2016 14:04:17 +0000 (14:04 +0000)]
Remove obsolete public network definitions

Use functest_utils.py routines in run_rally-cert.py to retrive external
network name instead of static definition in config_functest.yaml. Also
change the network name and id setting in task arguments.

Change-Id: Iced9e9a28e79d6ac6ddd2f9f593481949f5fc8a0
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 41eaec87fe939a8511dc6c0ec63976b53cbf5578)

8 years agoCreate Rally output summary at the end of the tests 41/9641/1
jose.lausuch [Tue, 9 Feb 2016 15:27:55 +0000 (16:27 +0100)]
Create Rally output summary at the end of the tests

Added template to start pushing results to DB

JIRA: FUNCTEST-134

Change-Id: Ibc04eae8478827146947df2bcf3460b8c7ef0bc7
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 76ee625343b28868ca7c6c6108ee974bb57dbea8)

8 years agodoctor: adds logger 13/9613/1
Ryota MIBU [Tue, 9 Feb 2016 08:48:28 +0000 (17:48 +0900)]
doctor: adds logger

Change-Id: Idc9c0f17049b9e6d2d7a0b8dc2bf35778d3c29dd
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
(cherry picked from commit fc19da3f029594b4e0a72bfe11b66d0ed76f0ff4)

8 years agoupdate doc 11/9611/1
Morgan Richomme [Mon, 8 Feb 2016 17:35:18 +0000 (18:35 +0100)]
update doc
- update external test cases
- add chapter on push to DB

Change-Id: I10cd5c9583233604c8b8595f173c690f45124789
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 6ab2ccb7071f1d4925f25344d4b4a29d0525d935)

8 years agoUsed sed instead of crudini for updating regex 89/9589/1
Viktor Tikkanen [Mon, 8 Feb 2016 17:40:22 +0000 (19:40 +0200)]
Used sed instead of crudini for updating regex

It seems that crudini has limitations regarding quotation marks
so sed tool is used instead in order to replace ssh_user_regex
parameter into tempest.conf file.

Change-Id: I8587b3e6b0c15930407ab90bf05f00086348edf6
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
(cherry picked from commit 8d7f1158885ca2d880811747b07f34ab50d2031d)

8 years agoMerge "enable doctor test scenario" into stable/brahmaputra
Morgan Richomme [Mon, 8 Feb 2016 10:59:38 +0000 (10:59 +0000)]
Merge "enable doctor test scenario" into stable/brahmaputra

8 years agoenable doctor test scenario 09/9509/1
Ryota MIBU [Mon, 8 Feb 2016 10:41:53 +0000 (19:41 +0900)]
enable doctor test scenario

Change-Id: If0e050e979d886fff436daa384a97a651a56aaa5
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
(cherry picked from commit f91f448317ea36ce5c790bcac345dfdcefbe1fb7)

8 years agoAdded configuration of ssh_user_regex parameter 07/9507/1
Viktor Tikkanen [Mon, 8 Feb 2016 10:42:32 +0000 (12:42 +0200)]
Added configuration of ssh_user_regex parameter

Some Rally versions don't set correctly SSH user name into
tempest.conf file so that e.g. test_server_basicops test case
of Tempest suite fails with "Please login as 'cirros' user,
not as root" error. This change ensures that correct SSH user
info will be used for Cirros images created by Rally.

Change-Id: I90dcad0024f2034ef3ed20d2c6981e675213558d
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
(cherry picked from commit 04cf934e24b0f7e0c53125711b4e98c14d54f049)

8 years agoReduce the number of iterations to ten in rally scenarios 27/9427/1
Juha Kosonen [Fri, 5 Feb 2016 16:01:47 +0000 (16:01 +0000)]
Reduce the number of iterations to ten in rally scenarios

Change-Id: Ibefc3f5eeb57ff6a1daa0be26f482ed0376a0d40
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 01608c214878c19c9f01c60e1b08e106a5d684cf)

8 years agoupdate user guide 99/9399/1
Morgan Richomme [Thu, 4 Feb 2016 17:34:36 +0000 (18:34 +0100)]
update user guide
- change vIMS logs
- add Promise logs
- modify section on OpenStack audit (now dynamic)
- minor reformating of tables
- typos
- add troubleshooting section on vPing and vPing_userdata

JIRA: FUNCTEST-113

Change-Id: Ib29c4d5e2c4f10f64de764491fc536495b39ea3d
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit c348fa9a9dcd8fd4fb4d83b36d441e3c949af390)

8 years agoImport request python module for promise test case 75/9275/1
jose.lausuch [Thu, 4 Feb 2016 14:25:38 +0000 (15:25 +0100)]
Import request python module for promise test case

Change-Id: I437766fe1c595a60a82af3c49a5eb29974e0da33
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit b0e19118c80d694820dd75c53001e0b9563061a9)

8 years agoFix success status parsing of rally results 53/9253/1
Juha Kosonen [Wed, 3 Feb 2016 15:53:49 +0000 (15:53 +0000)]
Fix success status parsing of rally results

Change-Id: I6053bce6cc919af7ac34a16843b2583e45f01ac2
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 5cf9b7fe8f380f6315e656527b90778c2d91a95c)

8 years agoUse python json parser to get the results form the Promise json report 37/9237/1
jose.lausuch [Wed, 3 Feb 2016 15:17:04 +0000 (16:17 +0100)]
Use python json parser to get the results form the Promise json report

JIRA: FUNCTEST-68

Also, add sleep to let the promise instances terminate,
otherwise, clean_openstack will detect them while they
are still being removed and will fail.

Change-Id: I7a5543143758483eb1d7e06dbe4922e9f1e05cfb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 75149a9d278b5a969606ad182fff580c08e37d6c)

8 years agobug fix: get installer using functest_utils 87/9187/1
Morgan Richomme [Wed, 3 Feb 2016 10:36:58 +0000 (11:36 +0100)]
bug fix: get installer using functest_utils

JIRA: FUNCTEST-68

Change-Id: I0b4847f28ca77e171ca525b301b7bfa6cf366e94
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit a6a3af39986e61f5f7c9094befec41fd753610d5)

8 years agoFIX:use 'info' after sourcing the common.sh 21/9121/2
grakiss [Wed, 3 Feb 2016 03:33:57 +0000 (22:33 -0500)]
FIX:use 'info' after sourcing the common.sh

Change-Id: I0572375d79983791970ece0d31ed2e3d7df8cfc3
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
(cherry picked from commit 778325ba0b725ab524ffb1944140e3e555dcfd5d)

8 years agoFIX: sleep 3 second to release create_venv.sh from chmod command 29/9129/1
grakiss [Wed, 3 Feb 2016 08:09:41 +0000 (03:09 -0500)]
FIX: sleep 3 second to release create_venv.sh from chmod command

sometimes vIMS failed to create venv for "Text file busy",it should
be a side effect of last command "chmod +x ..."

Change-Id: I6a94b644e89988efa92afc46e9fbdeb8564db89e
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
8 years agoShow Promise results output and push results to DB 25/9125/1
jose.lausuch [Tue, 2 Feb 2016 18:35:43 +0000 (19:35 +0100)]
Show Promise results output and push results to DB

JIRA: FUNCTEST-68

Change-Id: Iecb1becee1fc788a7c854227a8c3ea2252898eba
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 17baf4a83e8b9962281ed230e75c362047c34487)

8 years agoConsider volumes and floatingips as defaults in clean_openstack 23/9123/1
jose.lausuch [Tue, 2 Feb 2016 18:05:56 +0000 (19:05 +0100)]
Consider volumes and floatingips as defaults in clean_openstack

Change-Id: I3ffc864768a7c474ee1063eecee1e2085de807b5
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 16038f444c1e80006e13b72cb0597976a0b2f92e)

8 years agoCreate security groups with ICMP and SSH rules for vPing tests 71/9071/1
jose.lausuch [Tue, 2 Feb 2016 16:49:57 +0000 (17:49 +0100)]
Create security groups with ICMP and SSH rules for vPing tests

JIRA: FUNCTEST-133

Some installers don't allow icmp and TCP port 22 (SSH)
in the default security group. To avoid any dependency
with the installer, vPing will create its own security
group with those rules and delete it afterwards.

Change-Id: I6f31f21c240d80eed8bead638af51aa7e1e92aad
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit ab3413a15aeb3b3669da94fa383ec07212eeb915)

8 years agobug fix to run tempest and minor display error in run_test.sh 69/9069/1
Morgan Richomme [Tue, 2 Feb 2016 17:09:25 +0000 (18:09 +0100)]
bug fix to run tempest and minor display error in run_test.sh

Change-Id: Ic30bdd1c514aa8dcab37ba91de2f8879729a80a2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 86c95df05ef125218f392748a177d2f9aa79848f)

8 years agoReport vPing timeouts to the DB with duration = 0 and test status=NOK 37/9037/1
jose.lausuch [Tue, 2 Feb 2016 12:59:56 +0000 (13:59 +0100)]
Report vPing timeouts to the DB with duration = 0 and test status=NOK

JIRA: FUNCTEST-132

Change-Id: Ida0c485504fd07db29b0c33ac59da6944da303a9
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 5bb53025a593bbda834ef6ad325faba5aa073f7f)

8 years agoRemove error message if instance is not found 29/9029/1
jose.lausuch [Tue, 2 Feb 2016 10:32:52 +0000 (11:32 +0100)]
Remove error message if instance is not found

Reason: vping calls this function until the VMs are deleted,
when that happens, it throws an exception and returns None,
which is fine, but the message error on the output is a
bit confusing if you don't know the context.

Change-Id: I8a4c408197d3c83151fb15a12387575d9fe1d553
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 7dd58acc208727aaed83807f065dedcc899b0137)

8 years agoSmall improvements with output messages 21/9021/1
jose.lausuch [Tue, 2 Feb 2016 10:25:19 +0000 (11:25 +0100)]
Small improvements with output messages

Change-Id: I4c274df30bc3123bef23d5423a1762a07dd93e68
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit ac0d556e54a09b5a3470b20384ac58f7ed383202)

8 years agoUse openstack client to avoid keystone deprecation warnings 17/9017/1
jose.lausuch [Tue, 2 Feb 2016 09:34:06 +0000 (10:34 +0100)]
Use openstack client to avoid keystone deprecation warnings

Change-Id: Ib82b3f20d0c23fc67201c7159e3b3a6de5c201cf
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 906b3b2f7e85f1269d009684b1a557a6c19e96bc)

8 years agoUse generate_defaults instead of os_defaults fixed parameters 09/9009/1
jose.lausuch [Mon, 1 Feb 2016 17:08:56 +0000 (18:08 +0100)]
Use generate_defaults instead of os_defaults fixed parameters

JIRA: FUNCTEST-131

Running generate_defaults.py in prepare_env.sh (before running any test)
will create a file with the CURRENT OpenStack objects in
the deployment. After each test, the cleanup script will take into
consideration those parameters instead of the specified in
os_defaults.yaml

Keep os_defaults.yaml for the moment

Change-Id: I5f38fef47f0a6d79407d1d582b1e7d3713503e07
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 47635924e6def36be3c44a047d91018e47a439eb)

8 years agoUse promise-flavor if exists and don't try to create it again 31/8931/1
jose.lausuch [Mon, 1 Feb 2016 17:29:24 +0000 (18:29 +0100)]
Use promise-flavor if exists and don't try to create it again

Change-Id: I02ba76acb02f9785d13ca9bcd61ebe1290fa1cd7
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 81d7877b7f124f393c929e3a862e64125218e945)

8 years agoAdd script to generate the OpenStack defaults 25/8925/1
jose.lausuch [Mon, 1 Feb 2016 15:55:59 +0000 (16:55 +0100)]
Add script to generate the OpenStack defaults

JIRA: FUNCTEST-131

It checks the existing Openstack objects in the current
deployment (i.e. when the script is executed) and it will
create a yaml file to be used afterwards by clean_openstack.

This way, a user can generate the defaults when needed if there
are things that are not meant to be deleted without fear of
using clean_openstack.

Change-Id: Iacf204bdd14f591df21b3f243d27199ead2404b0
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 954907ac2995cfc158d5e363829af7c776be5f90)

8 years agoEnable all rally outputs in verbose mode 09/8909/1
Juha Kosonen [Mon, 1 Feb 2016 14:47:41 +0000 (14:47 +0000)]
Enable all rally outputs in verbose mode

In verbose mode the complete output of rally tests is shown.

Change-Id: I315c89b270312b13b3630b97cc24e5f529952645
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit e75f34706a8d72ee440d7f94363d4909a02f5293)

8 years agoAdding structure to pull content into central docs. 85/8885/1
ChristopherPrice [Fri, 29 Jan 2016 19:08:03 +0000 (20:08 +0100)]
Adding structure to pull content into central docs.

Including minor fixes and corrections.

Change-Id: I7c4bd9ca4f5fb35aeb2350096520c66b11aecbe8
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
(cherry picked from commit 63c77f27ec173fc3684ed980e82a4a7ed97beb6b)

8 years agouse scenario instead of git info in version field of the test results 83/8883/1
Morgan Richomme [Mon, 1 Feb 2016 08:51:28 +0000 (09:51 +0100)]
use scenario instead of git info in version field of the test results

Change-Id: Ie80cc39e64d0fe70981623229560aa145df95c50
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 86728ad2ccfbea4a733b664aaafff0fcc22c4b0e)

8 years agoMerge "Add aodh default user for apex" into stable/brahmaputra
Morgan Richomme [Mon, 1 Feb 2016 13:49:38 +0000 (13:49 +0000)]
Merge "Add aodh default user for apex" into stable/brahmaputra

8 years agoAdd testcases results to DB 81/8881/1
lanqinglong [Mon, 1 Feb 2016 09:54:47 +0000 (17:54 +0800)]
Add testcases results to DB

Change-Id: Iada89aa690f6b3f1d041328b641620ceb0279912
(cherry picked from commit 817f19d6c668176d9e62ab4a3523585fcdd92b01)

8 years agoReplace openstack single clients by python-openstackcclient 79/8879/1
jose.lausuch [Mon, 1 Feb 2016 09:57:45 +0000 (10:57 +0100)]
Replace openstack single clients by python-openstackcclient

Some projects like Promise need to use the openstack cli directly.
This requirement will also install automatically the following dependent clients:
python-cinderclient (1.5.0)
python-glanceclient (1.2.0)
python-keystoneclient (2.1.1)
python-neutronclient (4.0.0)
python-novaclient (3.2.0)
python-openstackclient (2.0.0)

Change-Id: I6836b8765364b30ae877ec4d1e8d88c8927b030d
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit ff89aea46827ac2fc81429354ad28dfbb4c57fe3)

8 years agoExport private net OS_TEST_NETWORK for Promise tests 77/8877/1
jose.lausuch [Mon, 1 Feb 2016 12:57:33 +0000 (13:57 +0100)]
Export private net OS_TEST_NETWORK for Promise tests

Change-Id: Ie2e83a049a98f8e63245c3b992ff379fd353a0be
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit cc8dd9e8092cc68484d8ad3422c97762658271e8)

8 years agoAdd aodh default user for apex 47/8847/1
jose.lausuch [Mon, 1 Feb 2016 09:29:18 +0000 (10:29 +0100)]
Add aodh default user for apex

Noticed here:
https://build.opnfv.org/ci/view/functest/job/functest-apex-opnfv-jump-1-daily-master/lastBuild/consoleFull

Change-Id: I508f8c2d6e19ba2ee5e633a3ed323693b06a6692
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 2eeb7cb050bf1a52358eb526eaad48870efcb46c)

8 years agofix the bug of onos test report 87/8787/1
lanqinglong [Fri, 29 Jan 2016 12:05:46 +0000 (20:05 +0800)]
fix the bug of onos test report

Change-Id: I34a068f991b89af6c65c895c7e9e604eac5dadf6
(cherry picked from commit 38cb5f334a2acc034b9757eba68561d134da79fa)

8 years agoCopy tempest.conf to results dir to be uploaded to artifacts 71/8771/1
jose.lausuch [Fri, 29 Jan 2016 23:46:21 +0000 (00:46 +0100)]
Copy tempest.conf to results dir to be uploaded to artifacts

Change-Id: I9cfe566c085dc45410a03650a9cf2a84de004d19
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit aa02e0de645a6af39baed4abed3667a112b09c42)

8 years agoCreate stdout and stderr files for Tempest results 97/8597/1
jose.lausuch [Fri, 29 Jan 2016 16:03:41 +0000 (17:03 +0100)]
Create stdout and stderr files for Tempest results

Change-Id: Ibd45dd628dc64db16af28102276f5523f55fcaf4
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit c04286e7e407ebfc383f1e69ae1b7c3e015b9971)

8 years agoAdd promise section from patch 8361 of Gerald 95/8595/1
Morgan Richomme [Fri, 29 Jan 2016 16:20:22 +0000 (17:20 +0100)]
Add promise section from patch 8361 of Gerald

Change-Id: I106239377020cedafa64ba58cbc765fd9dab7d61
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 1b268ef0cbf5324dffcd5c23ca2c36549ee2833a)

8 years agoEditorials 91/8591/1
Gerald Kunzmann [Fri, 29 Jan 2016 11:15:26 +0000 (12:15 +0100)]
Editorials

Addressing the doc8 warnings.
Fixes also the wrong image file path.
Some more bug fixing on indentation.
Addressing severe title level inconsistencies.

Change-Id: I9ca235205056bf78c8f370055d05b6c6b3b7367d
Signed-off-by: Gerald Kunzmann <kunzmann@docomolab-euro.com>
(cherry picked from commit 1f5d8a36ce871b32aaf4a44102d4e11a67f074cf)

8 years agobugfix: self.logger 79/8579/1
boucherv [Fri, 29 Jan 2016 15:23:44 +0000 (16:23 +0100)]
bugfix: self.logger

Change-Id: I6e9b3a833f590831cddac83e00a6b8809410d2cb
Signed-off-by: boucherv <valentin.boucher@orange.com>
(cherry picked from commit feecd6ccf9231ffdb82ac6bb2b1dcbb8389e457c)

8 years agoMerge "Add some error result in result db api" into stable/brahmaputra
boucherv [Fri, 29 Jan 2016 13:18:48 +0000 (13:18 +0000)]
Merge "Add some error result in result db api" into stable/brahmaputra

8 years agoChange scenario start/result messages in run_rally-cert.py 61/8461/1
Juha Kosonen [Fri, 29 Jan 2016 10:26:06 +0000 (10:26 +0000)]
Change scenario start/result messages in run_rally-cert.py

Change-Id: I2f5d4f327ab88b6855569d920a275ec801eb0311
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 358ea20ea921db3d2f4ed0d0d22c92a2b534ce3a)

8 years agoAdd some error result in result db api 57/8457/1
boucherv [Thu, 28 Jan 2016 15:30:47 +0000 (16:30 +0100)]
Add some error result in result db api

Change-Id: I1c5f9bc51c04e321ace8c0ee0312be28d321910f
Signed-off-by: boucherv <valentin.boucher@orange.com>
(cherry picked from commit 9ec86196a8e96fea966beef08c01b9c9822a9bc4)

8 years agoAdd scenario name to Rally result message 11/8411/1
Juha Kosonen [Thu, 28 Jan 2016 21:40:15 +0000 (21:40 +0000)]
Add scenario name to Rally result message

Change-Id: I1eb6604c9ad658b65cc47c8d7d0f47717078a9fe
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit c269353e4027a2f8d690fc4a03315ebc93301ba7)

8 years agoChanged to use $(repos_dir) and removed # 09/8409/1
Stuart Mackie [Thu, 28 Jan 2016 17:32:14 +0000 (09:32 -0800)]
Changed to use $(repos_dir) and removed #

Change-Id: I6e4004aad2d55309b520647eee59608ee7fa66d7
Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
(cherry picked from commit abfd2e7b94e4028e8ac032a5282f648b9dac08ec)

8 years agoUpdate doc 07/8407/1
Morgan Richomme [Wed, 20 Jan 2016 14:27:13 +0000 (15:27 +0100)]
Update doc

Change-Id: I415f090e38fa382e0c768758b4b82dd3a7c9294f
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 7c5cfcf8085174066c35cfc39c4b6745a5819ecd)

8 years agoSmall typos fixes in functest_utils.py 51/8351/1
jose.lausuch [Thu, 28 Jan 2016 14:48:17 +0000 (15:48 +0100)]
Small typos fixes in functest_utils.py

Change-Id: I9fdb1efe11ce62c460f380ba1087ed9fc83611ef
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 87880013c9030fdacf477c0b977a8e06f9afbbdf)

8 years agoChange to logger.error when there is an error in clean_openstack 41/8341/1
jose.lausuch [Thu, 28 Jan 2016 16:11:32 +0000 (17:11 +0100)]
Change to logger.error when there is an error in clean_openstack

Change-Id: I753ded0cbbd9982dfa81ff734ae1f1fdeea6f268
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 899f54d9123f6cdc349807dc7fc17fdbc58d2394)

8 years agoRefactor functest_utils.py 13/8313/1
Juha Kosonen [Thu, 28 Jan 2016 12:32:36 +0000 (12:32 +0000)]
Refactor functest_utils.py

The order of volume type related functions and the error handling changed
to conform general approach used in functest_utils.py.

Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 09f1b2201aaee2c3deee5936c819089bcc86692b)

Change-Id: I1461380ae0c579e5557bf4bfec4ec68f2766ee40

8 years agochange for get joid onos ip 75/8275/1
lanqinglong [Thu, 28 Jan 2016 10:06:07 +0000 (18:06 +0800)]
change for get joid onos ip
(cherry picked from commit 03ec0a88e72ed6c2fdc2995d0c93d2c61f847ae3)

Change-Id: Ic6d420d855615ddf53de707c19771fffaba47bbf

8 years agoFollow change in joid use SDN_CONTROLLER_IP env var instead of ODL_CONTROLLER_IP 69/8269/1
Morgan Richomme [Thu, 28 Jan 2016 09:00:12 +0000 (10:00 +0100)]
Follow change in joid use SDN_CONTROLLER_IP env var instead of ODL_CONTROLLER_IP

Change-Id: I298cfdfe880c52a18580eb607294cf4c7f353e71
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 73f040dd4998cadfbaa7b0706a441ae6ce6f6ffc)

8 years agoMerge "Fix promise test output" into stable/brahmaputra
jose.lausuch [Thu, 28 Jan 2016 08:16:51 +0000 (08:16 +0000)]
Merge "Fix promise test output" into stable/brahmaputra

8 years agoReduce Rally output 51/8251/1
jose.lausuch [Thu, 28 Jan 2016 00:08:59 +0000 (01:08 +0100)]
Reduce Rally output

This patch intends to reduce the output of Rally test,
showing only the important information of the tests,
which is the scenario name and the table with results.
Showing the scenario json/yaml is unnecessary since it is
already in the repo.

Change-Id: Iff0ba3fed17212bb4a695c4155747c8aaf683da3
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit b0365d10fda5018721d012602077dddda948a6d9)

8 years agoVolume type management moved from run_tests.sh to run_rally-cert.py 49/8249/1
Juha Kosonen [Wed, 27 Jan 2016 23:56:46 +0000 (23:56 +0000)]
Volume type management moved from run_tests.sh to run_rally-cert.py

Change-Id: I80c8b27e041ec5089b816b8515cbc8fa1e8b9eea
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 9922669c3dd92d43c6e387c8077255153c35b71e)

8 years agoFix promise test output 07/8207/1
jose.lausuch [Wed, 27 Jan 2016 23:49:22 +0000 (00:49 +0100)]
Fix promise test output

Change-Id: I12bda2e9953228bd0db1810a8a06bfe2e1644ac8
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 9c6eeae44d8e82fb7af2111784474628ec839a46)

8 years agoBugfix print arguments in functest_utils.py 01/8201/1
jose.lausuch [Wed, 27 Jan 2016 22:59:42 +0000 (23:59 +0100)]
Bugfix print arguments in functest_utils.py

Change-Id: I54c94ad43a88732840c0cf915bae42a0cf476e90
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit fd0e23740a75ef749a75431defba50520d79215a)

8 years agoPrint json result file of Promise testcase 85/8185/1
jose.lausuch [Wed, 27 Jan 2016 14:20:49 +0000 (15:20 +0100)]
Print json result file of Promise testcase

JIRA: FUNCTEST-68

Change-Id: Ib89e84b7f4d6f3cfe990655c941705af1da24bfb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 5c705a0c56af8d622edafa1e99e9806ba627754e)

8 years agoRemove possible message "No handlers could be found for logger paramiko" 81/8181/1
jose.lausuch [Wed, 27 Jan 2016 12:13:56 +0000 (13:13 +0100)]
Remove possible message "No handlers could be found for logger paramiko"

Change-Id: Ib6324b96489551cd88eb1639cb61d38bff898638
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 438a29faf556a9dcc2a304180ce77a32cc748e35)

8 years agoOption to redirect stderr output to a file for Tempest test 79/8179/1
jose.lausuch [Wed, 27 Jan 2016 13:56:39 +0000 (14:56 +0100)]
Option to redirect stderr output to a file for Tempest test

The output when we run Tempest from CI is too long
if there are many tests failing. This patch intends to
show only the test cases that passed/failed within a table.
If troubleshooting is needed, it will be a log file with all
the stderr in it.

Change-Id: If5b0f35463a3dae06a0c177de4dc473bfc4687c5
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 9be6519eca39111295b89e9b3b0d853f95126a72)

8 years agoRefactor functest_utils.py script 77/8177/1
jose.lausuch [Wed, 27 Jan 2016 17:06:19 +0000 (18:06 +0100)]
Refactor functest_utils.py script

JIRA: FUNCTEST-129

Change-Id: Id5202b1830f7efa77fdb8023d4eeb93775168d29
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit b3b50bef3d0ee76decca7810fbccdbac13ab892c)

8 years agoFUNCTEST-128 39/8139/1
CNlukai [Wed, 27 Jan 2016 10:18:15 +0000 (18:18 +0800)]
FUNCTEST-128
Modify the ssh output match

Change-Id: Ic21823781aa77bdc216dac4c048cd04884516a53
Signed-off-by: CNlukai <lukai1@huawei.com>
(cherry picked from commit 77e92f96dd56659d14d496d86d3814ea69fb2b3d)

8 years agoMerge "bug fix bad var affection when running ODL" into stable/brahmaputra
Morgan Richomme [Wed, 27 Jan 2016 09:54:54 +0000 (09:54 +0000)]
Merge "bug fix bad var affection when running ODL" into stable/brahmaputra

8 years agoFUNCTEST-127 25/8125/1
CNlukai [Wed, 27 Jan 2016 04:02:29 +0000 (12:02 +0800)]
FUNCTEST-127
FIx the condition judgment of vping

Change-Id: I58abace66fb73e0531affc651194473718dfacd5
Signed-off-by: CNlukai <lukai1@huawei.com>
(cherry picked from commit ecc77fad440a63627755e7ff042a98f34f3e9b75)

8 years agobug fix bad var affection when running ODL 21/8121/1
Morgan Richomme [Wed, 27 Jan 2016 09:26:36 +0000 (10:26 +0100)]
bug fix bad var affection when running ODL

Change-Id: I106f01928a2df71d5a46dad2087d767eb5bdf3d2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 5423e53c8c88fcdd62197671ac7e101bb952c783)

8 years agotypo fix on odl 17/8117/1
Morgan Richomme [Wed, 27 Jan 2016 08:56:18 +0000 (09:56 +0100)]
typo fix on odl

Change-Id: If761b7c38f38d3f2c691eab36b797ca7ce7ccb49
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 39724bcf9aef79aa8136863bd07a701b8df14489)

8 years agoAdd timeout in paramiko ssh command 65/8065/1
jose.lausuch [Tue, 26 Jan 2016 15:16:24 +0000 (16:16 +0100)]
Add timeout in paramiko ssh command

Change-Id: I7ef30c08a2335400a79b8a7baf91a27e5eea02e1
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit a43fac229e1be8c6af2c72a4be9d9c1c95614d21)

8 years agoAdd bgpvpn and odl_vpnservice in config_yaml 59/8059/1
Morgan Richomme [Tue, 26 Jan 2016 16:03:28 +0000 (17:03 +0100)]
Add bgpvpn and odl_vpnservice in config_yaml

Change-Id: I36f875efbb7a39b5b62937cb19c0e854a3a1e15c
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 7e6dc039febd23ce7a4b2a27e5b8477ebf4d0a91)

8 years agoAdd more OS defaults for Fuel 8.0 51/8051/1
jose.lausuch [Tue, 26 Jan 2016 14:36:44 +0000 (15:36 +0100)]
Add more OS defaults for Fuel 8.0

Change-Id: I6f569a4fd66020a699702733303ec55c6aeab15d
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 683f459c4e6be7d984b857f6c5c2df7e6c2eae8d)

8 years agoPatch ODL scenario to support joid (different keystone and neutron API IP) 47/8047/1
Morgan Richomme [Tue, 26 Jan 2016 14:03:44 +0000 (15:03 +0100)]
Patch ODL scenario to support joid (different keystone and neutron API IP)

JIRA: FUNCTEST-124

Change-Id: I84834fcb78e652f3b39696f0e17bf54cb5804559
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 1a40722cd446af5416029dc0f3b371a835fa444c)

8 years agoAdd function for Promise libraries pre-install 45/8045/1
jose.lausuch [Tue, 26 Jan 2016 10:34:14 +0000 (11:34 +0100)]
Add function for Promise libraries pre-install

Change-Id: I149f87b9edc40435d32e493f771f58de46e2757f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit c08fa5882b111a65ebcf121b66d5107d481b66fd)

8 years agoMerge "Replace 'No vPing detected' by a better understandable message" into stable...
Morgan Richomme [Tue, 26 Jan 2016 13:32:29 +0000 (13:32 +0000)]
Merge "Replace 'No vPing detected' by a better understandable message" into stable/brahmaputra

8 years agoAllow executing ODL test as many times as wanted on the same env 37/8037/1
jose.lausuch [Tue, 26 Jan 2016 13:18:24 +0000 (14:18 +0100)]
Allow executing ODL test as many times as wanted on the same env

Since the script add some lines to the file called __init__.robot
every time it executes, the next execution will add it again
which is unnecessary and it will fail.
This checks if those lines are already present and does nothing if so.

Change-Id: If4c2e10bcfcac0b7fde38ff213ea4ade4b83e4f1
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 680847c24a64a3f015b308b7c3fc6c9271b945a2)

8 years agoReplace 'No vPing detected' by a better understandable message 35/8035/1
jose.lausuch [Tue, 26 Jan 2016 13:23:10 +0000 (14:23 +0100)]
Replace 'No vPing detected' by a better understandable message

Some people got confused about that message although the test succeded

Change-Id: I9bdbb5545f06e85805f29b3dfca6156da86c3ffb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit c208b3c1104fc210d73eabf6361efbd3ea62e265)

8 years agoAdd whitespace in the vPing2 command 25/8025/1
jose.lausuch [Tue, 26 Jan 2016 12:50:41 +0000 (13:50 +0100)]
Add whitespace in the vPing2 command

Change-Id: I5bf8eb21e5b09238e1281a1cd292444e9cb2df05
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit f4a91d2805ead7991616d7cebdaa607d15f6f60d)

8 years agoAdd missing directories env variables in common.sh 23/8023/1
jose.lausuch [Tue, 26 Jan 2016 11:30:56 +0000 (12:30 +0100)]
Add missing directories env variables in common.sh

Change-Id: I600af261bed89e7fd90687ca44100318722aa91d
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 3eb953d20bbecf56fb91a24d5c1fba7f56a606c3)

8 years agoFix typo in requirements.pip 09/8009/1
jose.lausuch [Tue, 26 Jan 2016 11:03:14 +0000 (12:03 +0100)]
Fix typo in requirements.pip

Change-Id: I59c5514730c5b86723e777f9e2a8d49233e22512
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 4173e2539cbf50f1385a1ce131b6a4af1b5ef29f)

8 years agoUse paramiko library to SSH and SCP the instances in vPing2 03/8003/1
jose.lausuch [Fri, 22 Jan 2016 16:19:35 +0000 (17:19 +0100)]
Use paramiko library to SSH and SCP the instances in vPing2

Change-Id: I584c24fee5eae072c6885967170e5aded5fce172
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit e4b116d2054966e158ac647eea332aba8b84b89f)

8 years agoRemove vPing_userdata and vIMS from onos scenario 01/8001/1
Morgan Richomme [Tue, 26 Jan 2016 10:25:21 +0000 (11:25 +0100)]
Remove vPing_userdata and vIMS from onos scenario

Change-Id: I8e9a8ccf78ae02f94840e440f36ebe7be1245dbb
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 1b0826f0134ad1863453b3e416600818d4b84e12)

8 years agoAdd copy of packages.json to the features path before running npm install 91/7991/1
jose.lausuch [Mon, 25 Jan 2016 20:44:38 +0000 (21:44 +0100)]
Add copy of packages.json to the features path before running npm install

Also, replace REPO_PATH by FUNCTEST_REPO

Change-Id: Ic7a552669888acf5ed9466c4f664fd3b3066eb74
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit e481d1b7ee6b89f9cdbdc3035805a43f4387e346)

8 years agoUse rally cert script 89/7989/1
jose.lausuch [Tue, 26 Jan 2016 09:00:10 +0000 (10:00 +0100)]
Use rally cert script

Change-Id: Ia550e3ca7742db596dd3817841ed31a101adef27
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 4753bf597ebc953c4a381990f570e78dc542bbf0)

8 years agobugfix: syntax error 55/7955/1
meimei [Tue, 26 Jan 2016 03:27:05 +0000 (11:27 +0800)]
bugfix: syntax error

Change-Id: Ic068cd162e49abe4ce3ce0f184c224b65bfcfb6c
Signed-off-by: meimei <meimei@huawei.com>
8 years agoAdding BGPVPN and VPNSERVICE testcases 03/7903/1
Nikolas Hermanns [Fri, 15 Jan 2016 15:25:50 +0000 (16:25 +0100)]
Adding BGPVPN and VPNSERVICE testcases

This commit add the testcases to the testcase filter
and makes them run able from run_test.sh

Change-Id: I489687f4f011e77da63e3630b0e70f957b3343c5
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
(cherry picked from commit ea4c222b385c93442a8d3cb4c5cf8747c21efdad)

8 years agoAdd support for Promise test cases 67/7867/1
jose.lausuch [Thu, 21 Jan 2016 12:58:48 +0000 (13:58 +0100)]
Add support for Promise test cases

JIRA: FUNCTEST-68

Change-Id: I80f8e587e53c7242f8bfa666f2ac450e73c8294f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 76b49b8c1eefcebe69d798157cb7742152a57155)

8 years agotest db migration 55/7855/1
Morgan Richomme [Mon, 25 Jan 2016 08:10:17 +0000 (09:10 +0100)]
test db migration

Change-Id: Ic1e5de85aac621e7c270869c9e5418e18c581d7a
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit e485cabfc05ad7b91d93ee866e5d656773ab273b)

8 years agoFIX: args of push_result_to_db changed from git_version to version 43/7843/1
grakiss [Mon, 25 Jan 2016 01:05:03 +0000 (09:05 +0800)]
FIX: args of push_result_to_db changed from git_version to version

Change-Id: I00411286d19a8e8c3f659cff8e2f6ce6f8a0ccf9
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
(cherry picked from commit ad7a7a66e37a4cd31f46b2c753e7124ff16766ec)

8 years agobug fix: when running manually a test, get stuck in echo 45/7745/1
Morgan Richomme [Fri, 22 Jan 2016 16:14:27 +0000 (17:14 +0100)]
bug fix: when running manually a test, get stuck in echo

Change-Id: I0fd6c514b913a709289cabe44fed01a7ce5e953e
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 996177900a5114ac48ce9f149773c0ada1efe8c2)

8 years agoRemoved unnecessary references to public subnet cidr 41/7741/1
Juha Kosonen [Fri, 22 Jan 2016 15:48:39 +0000 (15:48 +0000)]
Removed unnecessary references to public subnet cidr

Change-Id: I9961fcdd9fca6ae98f4c1b38c7eae119447132e4
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit b8a2d3f517a2c599b603da491229527278b0e87d)

8 years agoPut scenario in version field on the Test DB (rather that git indication) 27/7727/1
Morgan Richomme [Fri, 22 Jan 2016 14:17:42 +0000 (15:17 +0100)]
Put scenario in version field on the Test DB (rather that git indication)

Change-Id: I22f7ff3841d7fca637e400d92926d2e1b1755371
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 59063638116508f7ce4f7612def938bb9eb0e938)

8 years agoAdded --no-clean option for run_tests.sh 17/7717/1
Viktor Tikkanen [Fri, 22 Jan 2016 10:25:41 +0000 (12:25 +0200)]
Added --no-clean option for run_tests.sh

Previously all the OpenStack resources (networks, VMs etc.)
created by user were deleted after executing tempest, vims
and rally test cases with run_tests.sh script.

New --no-clean option can be used for preserving resources
created by user so that the tests can be run also in setups
with deployed stacks.

Change-Id: I8c9505acf955c54b2b837d8ca916dc729c97bbca
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
(cherry picked from commit dce18f616c5c0bf019f72c68c872570f26d2978b)

8 years agoMerge "modify onos functest to suit joid CI" into stable/brahmaputra
Morgan Richomme [Fri, 22 Jan 2016 08:47:20 +0000 (08:47 +0000)]
Merge "modify onos functest to suit joid CI" into stable/brahmaputra

8 years agomodify onos functest to suit joid CI 97/7697/1
lanqinglong [Fri, 22 Jan 2016 02:35:41 +0000 (10:35 +0800)]
modify onos functest to suit joid CI

Change-Id: Ib73d80e06042c849f8f627b252b28c2fb95a283d
(cherry picked from commit cc0375241d59e2c010e6c9e04040187478dc5533)

8 years agoPush ODL results to DB 95/7695/1
Morgan Richomme [Thu, 21 Jan 2016 16:29:09 +0000 (17:29 +0100)]
Push ODL results to DB

JIRA: FUNCTEST-57

Change-Id: I8e998382aff0cc60e82338c27d234abe6be5c505
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 3883923445f5d11e2939865e08438f10f18bc6a9)

8 years agoAdd control to redirect rally stderr 97/7597/1
Juha Kosonen [Thu, 21 Jan 2016 08:26:47 +0000 (08:26 +0000)]
Add control to redirect rally stderr

By default rally stderr output is suppressed. Option --verbose enables
the output by redirecting it to stdout.

Change-Id: I2fd372b2a5cd70095969ef926bc9675dde4f98f6
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit c2fcca7373e4b65d4eec221e020bc49c9e443a70)