yardstick.git
6 years agoMerge "don't print exceptions in atexit handler"
Ross Brattain [Thu, 29 Mar 2018 22:52:54 +0000 (22:52 +0000)]
Merge "don't print exceptions in atexit handler"

6 years agoMerge "task: don't hide exceptions in Task"
Ross Brattain [Thu, 29 Mar 2018 22:52:42 +0000 (22:52 +0000)]
Merge "task: don't hide exceptions in Task"

6 years agodon't print exceptions in atexit handler 23/54623/3
Ross Brattain [Thu, 29 Mar 2018 21:02:49 +0000 (14:02 -0700)]
don't print exceptions in atexit handler

atexit handler calls terminate_all after the regular python execution
path, and it looks like the traceback stack is None somehow.

In this context log.debug("", exc_info=True) doesn't work
it prints out NoneType on Python3 and
causes other problems on Python2.7

remove the exc_info=True from the logging call

JIRA: YARDSTICK-1107

Change-Id: Ida0a0ced7ff5e017e2f8608880e3bb531724af95
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoadd new Fraser scenarios 93/54593/1
Ross Brattain [Thu, 29 Mar 2018 06:38:43 +0000 (23:38 -0700)]
add new Fraser scenarios

New scenarios from wiki: https://wiki.opnfv.org/display/SWREL/Fraser+Scenario+Statu

Change-Id: Ifd6e45e73be2bbb99743aa3f4981d22899aab92a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "restore Heat stack failure logs for CI"
Ross Brattain [Wed, 28 Mar 2018 20:04:43 +0000 (20:04 +0000)]
Merge "restore Heat stack failure logs for CI"

6 years agoMerge "Replace neutron create security group rule with shade."
Rex Lee [Wed, 28 Mar 2018 00:15:36 +0000 (00:15 +0000)]
Merge "Replace neutron create security group rule with shade."

6 years agoMerge "Dashboard for TC056"
Rex Lee [Wed, 28 Mar 2018 00:06:16 +0000 (00:06 +0000)]
Merge "Dashboard for TC056"

6 years agotask: don't hide exceptions in Task 61/54461/5
Ross Brattain [Mon, 26 Mar 2018 06:53:18 +0000 (23:53 -0700)]
task: don't hide exceptions in Task

If the Task raised an exception we currently hide it
and replace it with RuntimeError.  This is bad.

If an exception occured, then we don't have a result so
re-raise the original exception.

Or we could log the traceback and raise RuntimeError, but
that doesn't seem to be a good idea.

Sample traceback after re-raising original.  Without this patch the ValueError is only written
to _write_error_data

2018-03-25 22:57:56,511 yardstick.benchmark.contexts.node node.py:85 DEBUG BareMetals: []
2018-03-25 22:57:56,511 yardstick.benchmark.contexts.node node.py:89 DEBUG Env: {}
2018-03-25 22:57:56,511 yardstick.cmd.commands.task task.py:57 INFO Task FAILED
Traceback (most recent call last):
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/cmd/commands/task.py", line 54, in do_start
    result = Task().start(param, **kwargs)
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/benchmark/core/task.py", line 103, in start
    task_args_fnames)
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/benchmark/core/task.py", line 321, in _parse_tasks
    task_args_fnames[i]
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/benchmark/core/task.py", line 558, in parse_task
    context.init(cfg_attrs)
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/benchmark/contexts/heat.py", line 131, in init
    server = Server(name, self, server_attrs)
  File "/home/rbbratta/yardstick-upstream/yardstick/yardstick/benchmark/contexts/model.py", line 210, in __init__
    (name, p))
ValueError: server 'trafficgen_1', placement 'pgrp2' is invalid
2018-03-25 22:57:56,512 yardstick.cmd.commands.task task.py:62 INFO Task FAILED
2018-03-25 22:57:56,662 yardstick.benchmark.runners.base base.py:124 DEBUG Terminating all runners
NoneType

JIRA: YARDSTICK-1102

Change-Id: I7e6fa41fc1d36f6d438a1602ab60cb41ffbee1e9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agorestore Heat stack failure logs for CI 63/54463/6
Ross Brattain [Mon, 26 Mar 2018 06:51:28 +0000 (23:51 -0700)]
restore Heat stack failure logs for CI

We need to see what Heat failures occured
so that we can debug CI failures.

The only way to do this seems to be to use the
private event_utils.get_events function to
query for all failures

Also since we had a failure go ahead and dump the
Heat template that failed.

Sample output:

2018-03-25 23:50:08,765 [INFO] yardstick.orchestrator.heat heat.py:629 Creating stack 'yardstick-460ed969' START
2018-03-25 23:50:21,932 [ERROR] yardstick.orchestrator.heat heat.py:644 Resource CREATE failed: BadRequest: resources.yardstick-460ed969-xe1: Invalid input for operation: physical_network 'nosuch' unknown for flat provider network.
Neutron server returns request_ids: ['req-6f981f1e-a9e2-4114-af84-1ee528aed51b']
2018-03-25 23:50:21,933 [ERROR] yardstick.orchestrator.heat heat.py:644 BadRequest: resources.yardstick-460ed969-xe1: Invalid input for operation: physical_network 'nosuch' unknown for flat provider network.
Neutron server returns request_ids: ['req-6f981f1e-a9e2-4114-af84-1ee528aed51b']
2018-03-25 23:50:21,972 [ERROR] yardstick.orchestrator.heat heat.py:645 {'description': '\n'
                'All referred generated resources are prefixed with the '
                'template\n'
                'name (i.e. yardstick-460ed969).\n',
 'heat_template_version': '2013-05-23',
 'outputs': {'trafficgen_1.yardstick-460ed969': {'description': 'VM UUID',
                                                 'value': {'get_resource': 'trafficgen_1.yardstick-460ed969'}},
             'trafficgen_1.yardstick-460ed969-fip': {'description': 'floating '
                                                                    'ip '
JIRA: YARDSTICK-998

Change-Id: Ia8f4e5ba7e280fb9086519680d5ee90a2b442e6b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Improve "Libvirt.virsh_destroy_vm" function"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:47:54 +0000 (16:47 +0000)]
Merge "Improve "Libvirt.virsh_destroy_vm" function"

6 years agoMerge "Improve "Libvirt.virsh_create_vm" function"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:47:50 +0000 (16:47 +0000)]
Merge "Improve "Libvirt.virsh_create_vm" function"

6 years agoMerge "Improve NSB Standalone XML generation"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:47:45 +0000 (16:47 +0000)]
Merge "Improve NSB Standalone XML generation"

6 years agoMerge "Improve OVS-DPDK setup process"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:47:33 +0000 (16:47 +0000)]
Merge "Improve OVS-DPDK setup process"

6 years agoMerge "Improve OVS-DPDK boot process"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:47:26 +0000 (16:47 +0000)]
Merge "Improve OVS-DPDK boot process"

6 years agoReplace neutron create security group rule with shade. 89/53789/6
Shobhi Jain [Wed, 14 Mar 2018 11:53:06 +0000 (11:53 +0000)]
Replace neutron create security group rule with shade.

Rename create_secgroup_rule with create_security_group_rule.
Function create_security_group_rule now uses shade client.

JIRA: YARDSTICK-890

Change-Id: Ie0ebac67a281e55dc95c0e3e33ba43de80aba9ec
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoMerge "Replace neutron floating ip deletion with shade."
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:46:41 +0000 (16:46 +0000)]
Merge "Replace neutron floating ip deletion with shade."

6 years agoMerge "Replace neutron floating ip creation with shade."
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:46:31 +0000 (16:46 +0000)]
Merge "Replace neutron floating ip creation with shade."

6 years agoMerge "Replace neutron router interface deletion with shade."
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 16:46:22 +0000 (16:46 +0000)]
Merge "Replace neutron router interface deletion with shade."

6 years agoReplace neutron floating ip deletion with shade. 23/53423/11
Shobhi Jain [Tue, 27 Feb 2018 13:19:00 +0000 (13:19 +0000)]
Replace neutron floating ip deletion with shade.

Function delete_floating_ip now uses shade client.

JIRA: YARDSTICK-890

Change-Id: I960630926b664266afbe7be00bb1352243b41be0
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoMerge "env: validate installer_ip from environment"
Rodolfo Alonso Hernandez [Tue, 27 Mar 2018 12:48:37 +0000 (12:48 +0000)]
Merge "env: validate installer_ip from environment"

6 years agoMerge "Install RabitMQ for RPC messaging between processes"
Rodolfo Alonso Hernandez [Mon, 26 Mar 2018 07:29:46 +0000 (07:29 +0000)]
Merge "Install RabitMQ for RPC messaging between processes"

6 years agoMerge "Test case spec for SDN controller resilience in non-HA config"
Ross Brattain [Sat, 24 Mar 2018 01:46:03 +0000 (01:46 +0000)]
Merge "Test case spec for SDN controller resilience in non-HA config"

6 years agoMerge "ansible: disable Extra cloud image kernel stub"
Ross Brattain [Sat, 24 Mar 2018 01:31:05 +0000 (01:31 +0000)]
Merge "ansible: disable Extra cloud image kernel stub"

6 years agoMerge "use basename to delete yardstick image loop devices"
Ross Brattain [Sat, 24 Mar 2018 00:04:18 +0000 (00:04 +0000)]
Merge "use basename to delete yardstick image loop devices"

6 years agoMerge "TC042 bug fix"
Ross Brattain [Fri, 23 Mar 2018 21:51:18 +0000 (21:51 +0000)]
Merge "TC042 bug fix"

6 years agoMerge "Test case description and configuration file for yardstick_tc090:Control Node...
Ross Brattain [Fri, 23 Mar 2018 21:45:43 +0000 (21:45 +0000)]
Merge "Test case description and configuration file for yardstick_tc090:Control Node Openstack Service High Availability - Database Instances"

6 years agouse basename to delete yardstick image loop devices 09/54409/3
Ross Brattain [Fri, 23 Mar 2018 18:35:20 +0000 (11:35 -0700)]
use basename to delete yardstick image loop devices

the full path probably isn't matching, so just grep
for the basename

JIRA: YARDSTICK-1096
JIRA: YARDSTICK-1054

Change-Id: I403a7f51310c0856fae0f79d115ba0786b7c417c
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Added scale-up documentation"
Emma Foley [Fri, 23 Mar 2018 18:13:54 +0000 (18:13 +0000)]
Merge "Added scale-up documentation"

6 years agoMerge "Bugfix: 'module' object has no attribute 'UnsupportedExtension'"
Jack Chan [Fri, 23 Mar 2018 09:18:17 +0000 (09:18 +0000)]
Merge "Bugfix: 'module' object has no attribute 'UnsupportedExtension'"

6 years agoMerge "Add "Scenario" class wait methods for runners"
Rodolfo Alonso Hernandez [Fri, 23 Mar 2018 09:05:56 +0000 (09:05 +0000)]
Merge "Add "Scenario" class wait methods for runners"

6 years agoMerge "Make "Scenario" class abstract"
Rodolfo Alonso Hernandez [Fri, 23 Mar 2018 08:36:29 +0000 (08:36 +0000)]
Merge "Make "Scenario" class abstract"

6 years agoBugfix: 'module' object has no attribute 'UnsupportedExtension' 85/54385/1
chenjiankun [Fri, 23 Mar 2018 07:08:07 +0000 (07:08 +0000)]
Bugfix: 'module' object has no attribute 'UnsupportedExtension'

JIRA: YARDSTICK-1100

This Error occur when run kuberntes test case:
The Key is the pyopenssl dependency, it seems
YARDSTICK-1032(https://jira.opnfv.org/browse/YARDSTICK-1032) encounter
the same problem. Downgrade requests from 2.18.2 to 2.11.1 would solve
this problem.

Here it is the error log:
Traceback (most recent call last):
    File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
        func(*targs, **kargs)
        File
    "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py",
        line 301, in atexit_handler
        context.undeploy()
        File
        "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/kubernetes.py",
        line 63, in undeploy
        self._delete_ssh_key()
        File
        "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/kubernetes.py",
        line 133, in _delete_ssh_key
        k8s_utils.delete_config_map(self.ssh_key)
        File
        "/home/opnfv/repos/yardstick/yardstick/common/kubernetes_utils.py",
        line 179, in delete_config_map
        **kwargs)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py",
        line 9059, in delete_namespaced_config_map
        (data) =
    self.delete_namespaced_config_map_with_http_info(name,
                        namespace, body, **kwargs)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py",
        line 9159, in delete_namespaced_config_map_with_http_info
        collection_formats=collection_formats)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
        line 321, in call_api
        _return_http_data_only, collection_formats,
        _preload_content,
            _request_timeout)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
        line 155, in __call_api
        _request_timeout=_request_timeout)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
        line 387, in request
        body=body)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py",
        line 256, in DELETE
        body=body)
        File
        "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py",
        line 166, in request
        headers=headers)
        File
    "/usr/local/lib/python2.7/dist-packages/urllib3/request.py",
        line 66, in request
        **urlopen_kw)
        File
    "/usr/local/lib/python2.7/dist-packages/urllib3/request.py",
        line 87, in request_encode_url
        return self.urlopen(method, url, **extra_kw)
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py",
        line 321, in urlopen
        response = conn.urlopen(method, u.request_uri, **kw)
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
        line 601, in urlopen
        chunked=chunked)
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
        line 346, in _make_request
        self._validate_conn(conn)
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
        line 850, in _validate_conn
        conn.connect()
        File
    "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
        line 337, in connect
        cert = self.sock.getpeercert()
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py",
        line 348, in getpeercert
        'subjectAltName': get_subj_alt_name(x509)
        File
        "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py",
        line 202, in get_subj_alt_name
        except (x509.DuplicateExtension, x509.UnsupportedExtension,
                AttributeError: 'module' object has no attribute 'UnsupportedExtension'

Change-Id: I444dde829c91defb475e045aea094d74fc43e75b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "dump CI failures with kpartx and no /dev/loop devices"
Ross Brattain [Fri, 23 Mar 2018 01:41:12 +0000 (01:41 +0000)]
Merge "dump CI failures with kpartx and no /dev/loop devices"

6 years agoAdded scale-up documentation 13/53513/7
Chornyi, TarasX [Mon, 12 Mar 2018 08:22:14 +0000 (10:22 +0200)]
Added scale-up documentation

Change-Id: I65770a4a879d890c75a2e5774579794fb9b591f6
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoMerge "Make Sample VNF hugepages size configurable"
Ross Brattain [Thu, 22 Mar 2018 13:40:46 +0000 (13:40 +0000)]
Merge "Make Sample VNF hugepages size configurable"

6 years agodump CI failures with kpartx and no /dev/loop devices 75/54175/3
Ross Brattain [Tue, 20 Mar 2018 07:58:32 +0000 (00:58 -0700)]
dump CI failures with kpartx and no /dev/loop devices

CI is failing due to unable to find loop device for kpartx

"cmd": [
    "kpartx",
    "-l",
    "/tmp/workspace/yardstick/yardstick-xenial-server.raw"
]

"stderr": "mount: could not find any device /dev/loop#Bad address\ncan't set up loop",

This error occurs when kpartx can't find any loop devices to use

https://build.opnfv.org/ci/job/yardstick-compass-virtual-daily-master/3261/console

JIRA: YARDSTICK-1054
JIRA: YARDSTICK-1096

Change-Id: Ib6131ce29c4f9e81386eb5471dd6107825798620
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "update ci pod in the test suite according to Fraser"
Rex Lee [Thu, 22 Mar 2018 12:40:14 +0000 (12:40 +0000)]
Merge "update ci pod in the test suite according to Fraser"

6 years agoMerge "Bugfix: Error when using API(v1) to run test suite"
Rex Lee [Thu, 22 Mar 2018 12:37:28 +0000 (12:37 +0000)]
Merge "Bugfix: Error when using API(v1) to run test suite"

6 years agoAdd k8-nosdn-stor4nfv-ha/noha scenario 11/54311/1
chenjiankun [Thu, 22 Mar 2018 12:15:43 +0000 (12:15 +0000)]
Add k8-nosdn-stor4nfv-ha/noha scenario

JIRA: YARDSTICK-1090

We have k8-nosdn-stor4nfv-ha/noha scenario in compass,
so we need to add this files to trigger it.

Change-Id: I79709c53b8542434f7324ad907fa95b4855839d3
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoBugfix: Error when using API(v1) to run test suite 77/54177/5
chenjiankun [Tue, 20 Mar 2018 09:05:31 +0000 (09:05 +0000)]
Bugfix: Error when using API(v1) to run test suite

JIRA: YARDSTICK-1098

The reason is missing TasksHandler parameter to run test suite.

Change-Id: I9dd45caa87d0e39afbf7485443a6e566317f5cea
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoupdate ci pod in the test suite according to Fraser 81/54281/3
rexlee8776 [Thu, 22 Mar 2018 04:07:35 +0000 (04:07 +0000)]
update ci pod in the test suite according to Fraser

Change-Id: I999b44cc4e0ec1029c6efca224e691298a007689
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "fix Dummy test context name"
Jing Lu [Thu, 22 Mar 2018 08:51:50 +0000 (08:51 +0000)]
Merge "fix Dummy test context name"

6 years agoMerge "Running Test Case in Latest Yardstick Docker Image shows Error"
Jack Chan [Thu, 22 Mar 2018 08:23:00 +0000 (08:23 +0000)]
Merge "Running Test Case in Latest Yardstick Docker Image shows Error"

6 years agoMerge "Test case description and configuration file for yardstick_tc091:Control Node...
Rex Lee [Thu, 22 Mar 2018 08:15:48 +0000 (08:15 +0000)]
Merge "Test case description and configuration file for yardstick_tc091:Control Node Openstack Service High Availability - Heat Api"

6 years agofix Dummy test context name 87/54287/1
rexlee8776 [Thu, 22 Mar 2018 07:41:42 +0000 (07:41 +0000)]
fix Dummy test context name

more dummy test fix base on I0ccb7e9fabdf6bc2890d2e4763f53baee06c87b2

Since I1447fb5ed447691eaeb0a97f928c0b3333799d07, the context name is
a mandatory parameter for every context.

JIRA: YARDSTICK-886

Change-Id: I10ee6bcc0507fa90b6e99261a98a96655fc66947
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "Add k8-nosdn-stor4nfv-ha/noha scenario"
Jack Chan [Thu, 22 Mar 2018 02:11:04 +0000 (02:11 +0000)]
Merge "Add k8-nosdn-stor4nfv-ha/noha scenario"

6 years agoInstall RabitMQ for RPC messaging between processes 97/53597/7
Rodolfo Alonso Hernandez [Mon, 12 Mar 2018 17:03:30 +0000 (17:03 +0000)]
Install RabitMQ for RPC messaging between processes

In NetworkServices Tescases, the TGs (traffic generators) run the traffic in
a separate process. In order to synchronize the traffic injection and the
runner interval loops, an RPC server is needed to publish/subscribe events.

RabbitMQ is a well supported MQ in Linux (used in OpenStack or collectd)
and supported by Python implemented projects like oslo.messaging [1].

RabbitMQ default configuration:
- Port: 5672
- User/password: yardstick/yardstick

[1]https://github.com/openstack/oslo.messaging

JIRA: YARDSTICK-1068

Change-Id: I15db294ee430fb38e574a59b9ce1bf0f8b651a67
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd "Scenario" class wait methods for runners 71/53571/8
Rodolfo Alonso Hernandez [Mon, 12 Mar 2018 14:14:57 +0000 (14:14 +0000)]
Add "Scenario" class wait methods for runners

"Duration" and "Iteration" runners execute a passive wait during the
execution of the work process. This wait time is done at the end of
the scenario "run" method execution.

This patch adds a pre-run and post-run wait period, which will
depends on the Scenario executed. The wait time will be always the
same, but the execution order (pre-wait time, run method, post-wait
time) will depends on the Scenario.

By default, any Scenario will execute the "run" method and them will
wait the specified time.

NetworkServicesTestCase Scenario will wait the specified time and them
will execute the "run" method to retrieve the KPIs.

JIRA: YARDSTICK-1067

Change-Id: I6ad6bfc6978815b6b2d4df63f2ac2f8815fb5b8a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMake "Scenario" class abstract 35/53535/6
Rodolfo Alonso Hernandez [Mon, 12 Mar 2018 12:44:52 +0000 (12:44 +0000)]
Make "Scenario" class abstract

All scenario child classes must implement "run" method.

JIRA: YARDSTICK-1065

Change-Id: I35b78e380620967b49cd8cd23777a1aee6dfd140
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoImprove "Libvirt.virsh_destroy_vm" function 95/50695/17
Rodolfo Alonso Hernandez [Tue, 16 Jan 2018 11:19:05 +0000 (11:19 +0000)]
Improve "Libvirt.virsh_destroy_vm" function

Read the command exit code and log a warning in case the VM destroy
process went wrong.

JIRA: YARDSTICK-943

Change-Id: I2750b8d4a8f67af081c1988510cf5aca848a2cf1
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoImprove NSB Standalone XML generation 53/50653/19
Rodolfo Alonso Hernandez [Mon, 15 Jan 2018 14:25:46 +0000 (14:25 +0000)]
Improve NSB Standalone XML generation

Delayed the generation of the XML file until the last step. The
following functions will return a XML string insted:
- Libvirt.build_vm_xml
- SriovContext._enable_interfaces
- OvsDpdkContext._enable_interfaces

The XML file will be written just before copying the file to the
compute hosting the VMs.

JIRA: YARDSTICK-939

Change-Id: Icc80f4741903bbe335db4ebccab395b72fa87e82
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoImprove OVS-DPDK setup process 51/50551/20
Rodolfo Alonso Hernandez [Sat, 13 Jan 2018 11:16:34 +0000 (11:16 +0000)]
Improve OVS-DPDK setup process

Improved OVS-DPDK setup process:
- Added log string for each command executed.
- Removed unnecessary 'kill' command.
- Check if commands are executed correctly.

JIRA: YARDSTICK-922

Change-Id: I09fba96ffa39cde1e000a3c4382d474219c99985
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoImprove "Libvirt.virsh_create_vm" function 91/50691/15
Rodolfo Alonso Hernandez [Tue, 16 Jan 2018 11:03:17 +0000 (11:03 +0000)]
Improve "Libvirt.virsh_create_vm" function

Read the command exit code and raise an exception in case the VM boot
process went wrong.

JIRA: YARDSTICK-941

Change-Id: Ibabaae8983213a33799ad00fa4d9541bbabea857
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoImprove OVS-DPDK boot process 49/50449/18
Rodolfo Alonso Hernandez [Wed, 10 Jan 2018 19:42:57 +0000 (19:42 +0000)]
Improve OVS-DPDK boot process

Check if hugepages are present in the system.
Check if every command executed during the boot up process
exits correctly.

JIRA: YARDSTICK-917

Change-Id: Ic0c8a72199ad80e3a65488cc88d0692863751284
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Offline support for bottlenecks project"
Rex Lee [Wed, 21 Mar 2018 08:51:37 +0000 (08:51 +0000)]
Merge "Offline support for bottlenecks project"

6 years agoMerge "Enforce pip version during installation"
Rex Lee [Wed, 21 Mar 2018 08:18:24 +0000 (08:18 +0000)]
Merge "Enforce pip version during installation"

6 years agoMerge "Replace neutron router creation with shade."
Rex Lee [Wed, 21 Mar 2018 08:13:02 +0000 (08:13 +0000)]
Merge "Replace neutron router creation with shade."

6 years agoTC042 bug fix 65/54065/7
liyin [Sun, 18 Mar 2018 14:51:19 +0000 (14:51 +0000)]
TC042 bug fix

JIRA:YARDSTICK-786

yardstick DPDK image have problems to build.
We will fix this by using nsb image
the pktgen DPDK testcase will use sampleVNF image

Change-Id: I24b7b6a9acfe21ec956fa9c4ee7ebe7ae1787dbb
Signed-off-by: liyin <liyin11@huawei.com>
6 years agoOffline support for bottlenecks project 91/53291/4
liyin [Thu, 8 Mar 2018 17:54:07 +0000 (17:54 +0000)]
Offline support for bottlenecks project

JIRA: YARDSTICK-1053

Those three yaml files are for bottlenecks support offiline flavor
The ssh time out problem will fix in changing the duration time

Change-Id: Ifd317404a820d0446ffab5070211e48def1a0d2f
Signed-off-by: liyin <liyin11@huawei.com>
6 years agoAdd k8-nosdn-stor4nfv-ha/noha scenario 31/54231/1
chenjiankun [Wed, 21 Mar 2018 02:30:02 +0000 (02:30 +0000)]
Add k8-nosdn-stor4nfv-ha/noha scenario

JIRA: YARDSTICK-1090

We have k8-nosdn-stor4nfv-ha/noha scenario in compass,
so we need to add this files to trigger it.

Change-Id: Iefa3a83407bff7d3c1de1959f35b6d8e5eecd145
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoBugfix: update test case base on node parameters in ci 79/54179/4
rexlee8776 [Tue, 20 Mar 2018 09:14:16 +0000 (09:14 +0000)]
Bugfix: update test case base on node parameters in ci

JIRA: YARDSTICK-1082

Change-Id: I00080d0317a54b73a6cd571198e9446962c11b5a
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "Fix for datasource field value"
Rex Lee [Wed, 21 Mar 2018 01:45:10 +0000 (01:45 +0000)]
Merge "Fix for datasource field value"

6 years agoMerge "Fix retrieving "options" section in "scenario""
Ross Brattain [Tue, 20 Mar 2018 23:04:07 +0000 (23:04 +0000)]
Merge "Fix retrieving "options" section in "scenario""

6 years agoMerge "Add "YARDSTICK_REPO_DIR" into tests path"
Ross Brattain [Tue, 20 Mar 2018 23:01:36 +0000 (23:01 +0000)]
Merge "Add "YARDSTICK_REPO_DIR" into tests path"

6 years agoMerge "Modify the Docker diff file for ARM64"
Ross Brattain [Tue, 20 Mar 2018 23:00:03 +0000 (23:00 +0000)]
Merge "Modify the Docker diff file for ARM64"

6 years agoenv: validate installer_ip from environment 59/53359/2
Ross Brattain [Thu, 8 Mar 2018 22:45:06 +0000 (14:45 -0800)]
env: validate installer_ip from environment

validate installer_ip is proper IPv4 address in case of user error

Change-Id: Ib01916bc85ec411c159af1564f5142177f464047
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoFix for datasource field value 13/54213/1
Mika Rautakumpu [Tue, 20 Mar 2018 17:33:15 +0000 (19:33 +0200)]
Fix for datasource field value

This is fix for grafana dashboard templates
where variable "${DS_YARDSTICK}" is replaced
by "yardstick".

JIRA: YARDSTICK-1089

Change-Id: I0647d5bfd772a2d9ffa18bac59cdbbb39c8ec0ab
Signed-off-by: Mika Rautakumpu <mika.rautakumpu@nokia.com>
6 years agoReplace neutron floating ip creation with shade. 63/52663/18
Shobhi Jain [Fri, 23 Feb 2018 14:59:09 +0000 (14:59 +0000)]
Replace neutron floating ip creation with shade.

Function create_floating_ip now uses shade client instead of neutron
client.

JIRA: YARDSTICK-890

Change-Id: I3defd691dad998cebf98442b52f0555b176f1af4
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoReplace neutron router interface deletion with shade. 55/52455/14
Shobhi Jain [Wed, 21 Feb 2018 16:13:16 +0000 (16:13 +0000)]
Replace neutron router interface deletion with shade.

Function remove_interface_router now uses shade client instead of neutron
client.

JIRA: YARDSTICK-890

Change-Id: I6bd36e35a339cce64dfa8b69c1e7b56cd70af956
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoReplace neutron router creation with shade. 09/52409/25
Shobhi Jain [Wed, 21 Feb 2018 14:45:21 +0000 (14:45 +0000)]
Replace neutron router creation with shade.

Function create_neutron_router now uses shade client instead of neutron
client.

JIRA: YARDSTICK-890

Change-Id: I819d26f4edb3af5e50f777e8ddbadf4d24820b7f
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoEnforce pip version during installation 03/54203/3
Rodolfo Alonso Hernandez [Tue, 20 Mar 2018 14:26:09 +0000 (14:26 +0000)]
Enforce pip version during installation

Currently there is a reported problem in pip library [1]. To avoid this
problem, the pip version should be enforced during the installation.

[1]https://github.com/pypa/pip/issues/5079

JIRA: YARDSTICK-1087

Change-Id: I2ee28749f146cd3b0e1bf4ed92b51cbe6db8b2f3
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd "YARDSTICK_REPO_DIR" into tests path 99/54199/2
ting wu [Tue, 20 Mar 2018 13:17:28 +0000 (14:17 +0100)]
Add "YARDSTICK_REPO_DIR" into tests path

In the CI flow, script "load_images.sh",
variable ${YARDSTICK_REPO_DIR} needs to be added
in front of tests path to avoid the error:

sed: can't read tests/opnfv/test_cases/*:
No such file or directory

This fix is specific to arm64

JIRA: YARDSTICK-1086

Change-Id: If19b295233bb7313226dae70df016ad236bed2ac
Signed-off-by: ting wu <ting.wu@enea.com>
6 years agoMerge "update scenario test cases according to gating release"
Emma Foley [Tue, 20 Mar 2018 13:24:11 +0000 (13:24 +0000)]
Merge "update scenario test cases according to gating release"

6 years agoMerge "Bugfix: sutie -> suite in documentation"
Emma Foley [Tue, 20 Mar 2018 13:18:39 +0000 (13:18 +0000)]
Merge "Bugfix: sutie -> suite in documentation"

6 years agoDashboard for TC056 81/54181/2
Mika Rautakumpu [Tue, 20 Mar 2018 09:22:55 +0000 (11:22 +0200)]
Dashboard for TC056

This is dashboard for Yardstick test case TC056.

JIRA: YARDSTICK-1085

Change-Id: I8bf2149f8dd9081022deb280101815cb1dd417ec
Signed-off-by: Mika Rautakumpu <mika.rautakumpu@nokia.com>
6 years agoRunning Test Case in Latest Yardstick Docker Image shows Error 71/54171/1
chenjiankun [Tue, 20 Mar 2018 08:11:39 +0000 (08:11 +0000)]
Running Test Case in Latest Yardstick Docker Image shows Error

JIRA: YARDSTICK-1080

This bug will only occur in kubernetes test case.
In openstack, we use 'stack_name.context', but some kubernetes
resources(pod, etc) do not support this format. So we use
'name-context'.

Change-Id: I87d61c027d55449914bc283672eb98be3d3fe22f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoupdate scenario test cases according to gating release 57/54157/1
rexlee8776 [Tue, 20 Mar 2018 06:30:30 +0000 (06:30 +0000)]
update scenario test cases according to gating release

JIRA: YARDSTICK-1046

Change-Id: I12223876d1cf1f3e45152f6b7996b75a66b16fe6
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoyardstick image: use growpart instead of parted 27/53727/7
Ross Brattain [Tue, 13 Mar 2018 22:10:42 +0000 (15:10 -0700)]
yardstick image: use growpart instead of parted

parted doesn't handle growing GPT partition correctly, so switch to
growpart

see https://github.com/opnfv/fuel/blob/master/mcp/scripts/lib.sh#L133

for example

If the yardstick image uses GPT then parted complains about the GPT
table

The warning is "Warning: Not all of the space available to
DEVICE appears to be used, you can fix the GPT to use all
of the space (an extra 500 blocks) or continue with the
current setting?"

The backup GPT table is not at the end of the
disk, as it should be. This might mean that
another operating system believes the disk is
smaller. Fix, by moving the backup to the end
(and removing the old backup)?

echo 'f' to fix the GPT table

Instead use growpart

JIRA: YARDSTICK-1058

Change-Id: Ib0e90feef1e3766408b4f742036f2a48af942f32
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoBugfix: sutie -> suite in documentation 77/54077/2
chenjiankun [Mon, 19 Mar 2018 07:24:02 +0000 (07:24 +0000)]
Bugfix: sutie -> suite in documentation

Change-Id: Ia898a7a6d95e74b16cfc754b615cccfd9c5380ad
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoBugfix: storperf fails on ci when install plugin 71/54071/3
rexlee8776 [Mon, 19 Mar 2018 03:57:09 +0000 (03:57 +0000)]
Bugfix: storperf fails on ci when install plugin

JIRA: YARDSTICK-1060

Change-Id: I6356bf16c547a1bd15f83f3ff6390822b7980f28
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agotemp unblock unittests 83/54083/2
Ross Brattain [Mon, 19 Mar 2018 08:22:57 +0000 (01:22 -0700)]
temp unblock unittests

======================================================================
ERROR: common.test_packages (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: common.test_packages
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/tests/unit/common/test_packages.py", line 17, in <module>
    from pip.operations import freeze
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/__init__.py", line 45, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/download.py", line 40, in <module>
    from pip._vendor import requests, six
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/_vendor/requests/__init__.py", line 98, in <module>
    from . import packages
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/_vendor/requests/packages.py", line 12, in <module>
    sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod]
KeyError: 'pip._vendor.urllib3.contrib'

 File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/tests/unit/common/test_packages.py", line 16, in <module>
    from pip import exceptions as pip_exceptions

======================================================================
ERROR: common.test_packages (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: common.test_packages
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/tests/unit/common/test_packages.py", line 16, in <module>
    from pip import exceptions as pip_exceptions
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/__init__.py", line 45, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/download.py", line 40, in <module>
    from pip._vendor import requests, six
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/_vendor/requests/__init__.py", line 98, in <module>
    from . import packages
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/pip/_vendor/requests/packages.py", line 12, in <module>
    sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod]
KeyError: 'pip._vendor.urllib3.packages.backports.makefile'

Change-Id: I43b1edc23cebe0db97b6b56a551acd376986dfea
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Add ODL noHA testcase"
Ross Brattain [Fri, 16 Mar 2018 20:39:55 +0000 (20:39 +0000)]
Merge "Add ODL noHA testcase"

6 years agoMerge "Improve ansible code for network xml creation"
Rodolfo Alonso Hernandez [Fri, 16 Mar 2018 17:21:03 +0000 (17:21 +0000)]
Merge "Improve ansible code for network xml creation"

6 years agoMerge "NSB userguide: run TC in heat context & sriov ports"
Rodolfo Alonso Hernandez [Fri, 16 Mar 2018 17:20:43 +0000 (17:20 +0000)]
Merge "NSB userguide: run TC in heat context & sriov ports"

6 years agoMerge "NSB PROX L3FWD Dropping packets"
Abhijit Sinha [Fri, 16 Mar 2018 17:19:20 +0000 (17:19 +0000)]
Merge "NSB PROX L3FWD Dropping packets"

6 years agoMerge "Replace assert statements in tests"
Abhijit Sinha [Fri, 16 Mar 2018 17:17:47 +0000 (17:17 +0000)]
Merge "Replace assert statements in tests"

6 years agoNSB userguide: run TC in heat context & sriov ports 05/52405/4
Mytnyk, Volodymyr [Wed, 21 Feb 2018 14:08:16 +0000 (14:08 +0000)]
NSB userguide: run TC in heat context & sriov ports

Add section that describeds steps to be able to run
sample vFW TC in heat context with sriov ports
confiured in the OpenStack.

JIRA: YARDSTICK-1022

Change-Id: I764933e26ca7cb10aa1094901ec3304156054333
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
6 years agoMerge "Supporting user config task parameters in GUI"
Jack Chan [Fri, 16 Mar 2018 09:01:07 +0000 (09:01 +0000)]
Merge "Supporting user config task parameters in GUI"

6 years agoMerge "Update API documentation"
Jack Chan [Fri, 16 Mar 2018 09:00:55 +0000 (09:00 +0000)]
Merge "Update API documentation"

6 years agoMerge "Add SUT page in GUI"
Jack Chan [Fri, 16 Mar 2018 09:00:21 +0000 (09:00 +0000)]
Merge "Add SUT page in GUI"

6 years agoMerge "Create API to get SUT information"
Jack Chan [Fri, 16 Mar 2018 09:00:05 +0000 (09:00 +0000)]
Merge "Create API to get SUT information"

6 years agoMerge "testcase start service script fail on centos env"
Jing Lu [Fri, 16 Mar 2018 08:45:29 +0000 (08:45 +0000)]
Merge "testcase start service script fail on centos env"

6 years agoAdd SUT page in GUI 23/53923/1
chenjiankun [Fri, 16 Mar 2018 02:44:42 +0000 (02:44 +0000)]
Add SUT page in GUI

JIRA: YARDSTICK-1076

We need to show SUT information in GUI.

Change-Id: I885773894fc9f6aa5975b39383af1fdf1b88b8bb
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoTest case description and configuration file for yardstick_tc090:Control 59/53159/2
tjuyinkanglin [Tue, 6 Mar 2018 12:07:05 +0000 (20:07 +0800)]
Test case description and configuration file for yardstick_tc090:Control
Node Openstack Service High Availability - Database Instances

JIRA: YARDSTICK-960

Change-Id: Ibe47a9b4d1f095971857fcbaee57a3c7f64f9911
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
6 years agoTest case description and configuration file for yardstick_tc091:Control 47/53147/3
tjuyinkanglin [Tue, 6 Mar 2018 07:30:40 +0000 (15:30 +0800)]
Test case description and configuration file for yardstick_tc091:Control
Node Openstack Service High Availability - Heat Api

JIRA: YARDSTICK-961

Change-Id: I49fc2b2d8fc4fa090a74f1838f5ac386e39eaf49
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
6 years agoNSB PROX L3FWD Dropping packets 27/52827/5
DanielMartinBuckley [Wed, 28 Feb 2018 13:56:53 +0000 (13:56 +0000)]
NSB PROX L3FWD Dropping packets

JIRA: YARDSTICK-1037

NSB PROX L3FWD was incorrect. The routing table (ipv4.lua) was incorrect.
Also a specific ipv4 for 2 port configuration is required.

Change-Id: I3a5fd1ea1d1ddf74cbdd6a5d9e7ced42d3c1d6e9
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
6 years agoMerge "support for Bottlenecks soak throughputs"
Jing Lu [Thu, 15 Mar 2018 08:40:19 +0000 (08:40 +0000)]
Merge "support for Bottlenecks soak throughputs"

6 years agoCreate API to get SUT information 69/53769/6
chenjiankun [Wed, 14 Mar 2018 09:41:01 +0000 (09:41 +0000)]
Create API to get SUT information

JIRA: YARDSTICK-1072

We need to show SUT information in GUI.

Change-Id: I40bcd513f3c6a443c82764687637ac5258b99584
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoUpdate API documentation 49/53649/2
chenjiankun [Tue, 13 Mar 2018 08:24:56 +0000 (08:24 +0000)]
Update API documentation

JIRA: YARDSTICK-1070

Our current API documentation is out-of-date.
We need to update it.

Change-Id: If5133c0350a91affb8d3f856d23b23a9903c8620
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agosupport for Bottlenecks soak throughputs 49/53149/4
Yang Yu [Tue, 6 Mar 2018 08:50:33 +0000 (16:50 +0800)]
support for Bottlenecks soak throughputs

JIRA: YARDSTICK-1049

Changes:
1. NetperfNode -> Netperf, it seems that yardstick-image has not
correctly complied Netperf since cpuutil is not available,
resulting that LOCAL_CPU_UTIL=-1 for the output. Will create
another JIRA ticket for this.

Change-Id: I26a85f4aafcc5d5e1eda3e04272ecf3b059238fc
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>