yardstick.git
6 years agoMerge changes from topic '35521'
Rex Lee [Wed, 26 Jul 2017 00:42:51 +0000 (00:42 +0000)]
Merge changes from topic '35521'

* changes:
  Setup OVS-DPDK Standalone Context
  Adding new SRIOV Standalone Context

6 years agoMerge "vnfdgen: replace yaml.load with yaml.safe_load"
Rex Lee [Wed, 26 Jul 2017 00:41:58 +0000 (00:41 +0000)]
Merge "vnfdgen: replace yaml.load with yaml.safe_load"

6 years agoMerge "Add intermediate variable for HA test"
Rex Lee [Wed, 26 Jul 2017 00:41:29 +0000 (00:41 +0000)]
Merge "Add intermediate variable for HA test"

6 years agoMerge "update storperf installation in Yardstick"
Jing Lu [Tue, 25 Jul 2017 09:48:00 +0000 (09:48 +0000)]
Merge "update storperf installation in Yardstick"

6 years agoMerge "support more parameters in iperf3 testcase"
Jing Lu [Tue, 25 Jul 2017 09:38:37 +0000 (09:38 +0000)]
Merge "support more parameters in iperf3 testcase"

6 years agoupdate storperf installation in Yardstick 57/38057/2
JingLu5 [Tue, 25 Jul 2017 09:14:54 +0000 (09:14 +0000)]
update storperf installation in Yardstick

Storper has updated its installaion step.
The former used "nginx.conf" is not required any more.

Change-Id: I9edd57ae7cffd3a95990844e6b775616d09132f1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agosupport more parameters in iperf3 testcase 95/37895/5
Ace Lee [Fri, 21 Jul 2017 03:02:04 +0000 (03:02 +0000)]
support more parameters in iperf3 testcase

JIRA: YARDSTICK-755

The parameters that iperf3 testcase support now maybe insufficient in some usecase.
The test case should support parameters such as: windows size and length of buffer.
This work is about adding more parameters that can be specified in options section in the YAML file.

Change-Id: Ibc81cd1bbbc6fdd492aa67bd3acee7cd310c87ef
Signed-off-by: Ace Lee <liyin11@huawei.com>
6 years agoAdd intermediate variable for HA test 07/35307/7
qiujuan [Thu, 25 May 2017 05:18:28 +0000 (13:18 +0800)]
Add intermediate variable for HA test

JIRA: YARDSTICK-397

Change-Id: I3489893caa5b8194b63cb844325ec0b2c554aecc
Signed-off-by: qiujuan <juan_qiu@tongji.edu.cn>
6 years agoMerge "yardstick env influxdb/grafana cmd support centos"
Rex Lee [Tue, 25 Jul 2017 02:43:26 +0000 (02:43 +0000)]
Merge "yardstick env influxdb/grafana cmd support centos"

6 years agoMerge "Add multiqueue support"
Ross Brattain [Tue, 25 Jul 2017 00:47:03 +0000 (00:47 +0000)]
Merge "Add multiqueue support"

6 years agovnfdgen: replace yaml.load with yaml.safe_load 15/38015/1
Ross Brattain [Sun, 23 Jul 2017 03:12:14 +0000 (20:12 -0700)]
vnfdgen: replace yaml.load with yaml.safe_load

JIRA: YARDSTICK-760

Change-Id: I145c948c1f08562e12877f5d0fe7e797e9d989f9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoSetup OVS-DPDK Standalone Context 21/35521/3
Bindya Narayan [Tue, 30 May 2017 09:39:10 +0000 (15:09 +0530)]
Setup OVS-DPDK Standalone Context

This patch performs following tasks
- getting dpdk_nic_bind path
- setup ovs,dpdk ports,vhostuserports,
- creation of vm,
- apache2 licence
- test cases for ovsdpdk
- Changes to standalone context - update unit test cases

Change-Id: I54e4062eb440b8677625e4abe6e0579d9fd54d41
Signed-off-by: Bindya N <bindya.narayan@intel.com>
6 years agoAdding new SRIOV Standalone Context 55/29555/12
Neha Vadnere [Mon, 24 Apr 2017 18:47:44 +0000 (00:17 +0530)]
Adding new SRIOV Standalone Context

This patch adds new SRIOV context to run VNFs with
 - random uuid generation,
 - mac address generation,
 - getting dpdk_nic_bind path,
 - ssh key based authentication,
 - printing log messages,
 - added apache2 licence

JIRA: YARDSTICK-480

Change-Id: Ic8317eb9e7e4ecf270091c18be4782d1299ff087
Signed-off-by: Neha Vadnere <neha.r.vadnere@intel.com>
Signed-off-by: Bindya N <bindya.narayan@intel.com>
6 years agoBugfix: missing license in api directory 83/37983/1
chenjiankun [Mon, 24 Jul 2017 07:09:44 +0000 (07:09 +0000)]
Bugfix: missing license in api directory

JIRA: YARDSTICK-759

In api directory, there are many files missing license header.
We need to add it.

Change-Id: Ia46cf207295007d4eb7fbf0d3319611f256c36bc
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Open storperf testcase to huawei-pod2"
Jing Lu [Mon, 24 Jul 2017 06:55:28 +0000 (06:55 +0000)]
Merge "Open storperf testcase to huawei-pod2"

6 years agoMerge "base: remove redudant ip_to_convert"
Ross Brattain [Mon, 24 Jul 2017 05:39:21 +0000 (05:39 +0000)]
Merge "base: remove redudant ip_to_convert"

6 years agoMerge "Improvement: support more parameters in fio testcase"
Rex Lee [Mon, 24 Jul 2017 02:18:41 +0000 (02:18 +0000)]
Merge "Improvement: support more parameters in fio testcase"

6 years agoMerge "HA testcase containerized Compass support"
Jing Lu [Mon, 24 Jul 2017 02:03:52 +0000 (02:03 +0000)]
Merge "HA testcase containerized Compass support"

6 years agoMerge "heat: port_security_enabled, allowed_address_pairs, disable gateway_ip"
Ross Brattain [Fri, 21 Jul 2017 22:06:05 +0000 (22:06 +0000)]
Merge "heat: port_security_enabled, allowed_address_pairs, disable gateway_ip"

6 years agoAdd API(v2) to get all task info 97/37897/1
chenjiankun [Fri, 21 Jul 2017 03:18:02 +0000 (03:18 +0000)]
Add API(v2) to get all task info

JIRA: YARDSTICK-754

API: /api/v2/yardstick/tasks
METHOD: GET

Change-Id: I556b0880674d78d67e0a556c4d95f902131cd027
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Add API(v2) to run task"
Jing Lu [Fri, 21 Jul 2017 03:01:26 +0000 (03:01 +0000)]
Merge "Add API(v2) to run task"

6 years agoMerge "Add API(v2) to get all images"
Jing Lu [Fri, 21 Jul 2017 03:01:16 +0000 (03:01 +0000)]
Merge "Add API(v2) to get all images"

6 years agoMerge "Add API(v2) to load images"
Jing Lu [Fri, 21 Jul 2017 03:01:10 +0000 (03:01 +0000)]
Merge "Add API(v2) to load images"

6 years agoAdd API(v2) to run task 17/37817/2
chenjiankun [Thu, 20 Jul 2017 03:12:05 +0000 (03:12 +0000)]
Add API(v2) to run task

JIRA: YARDSTICK-741

API: /api/v2/yardstick/tasks/<task_id>
METHOD: PUT
PARAMS:
{
    'action': 'run'
}

Change-Id: Ia5340c6ff45e3e7e70ab4597c39476138e7016f2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get all images 93/37893/1
chenjiankun [Fri, 21 Jul 2017 02:30:24 +0000 (02:30 +0000)]
Add API(v2) to get all images

JIRA: YARDSTICK-752

API: /api/v2/yardstick/images
METHOD: GET

Change-Id: I7b0bba85d875575ee684cc42cad977af91d6f84e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Add API(v2) to add suite to task"
Rex Lee [Fri, 21 Jul 2017 02:29:32 +0000 (02:29 +0000)]
Merge "Add API(v2) to add suite to task"

6 years agoAdd API(v2) to load images 85/37885/1
chenjiankun [Fri, 21 Jul 2017 02:09:03 +0000 (02:09 +0000)]
Add API(v2) to load images

JIRA: YARDSTICK-751

API: /api/v2/yardstick/images/action
METHOD: POST
PARAMS:
{
    'action': 'load_image'
}

Change-Id: I9554f35c679ae2a861c7922080aa54a1ffc5bac7
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to add suite to task 11/37811/2
chenjiankun [Thu, 20 Jul 2017 01:56:24 +0000 (01:56 +0000)]
Add API(v2) to add suite to task

JIRA: YARDSTICK-740

API: /api/v2/yardstick/tasks/<task_id>
METHOD: PUT
PARAMS:
{
    'action': 'add_suite',
    'args': {
        'suite_name': 'opnfv_smoke',
        'suite_content': suite_content
    }
}

Change-Id: I1f81c45f143b2fea636cb87f60f2f394bf1380b1
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Add API(v2) to delete certain test suite"
Rex Lee [Fri, 21 Jul 2017 01:16:10 +0000 (01:16 +0000)]
Merge "Add API(v2) to delete certain test suite"

6 years agoMerge "Add API(v2) to get certain test suite info"
Rex Lee [Fri, 21 Jul 2017 01:15:58 +0000 (01:15 +0000)]
Merge "Add API(v2) to get certain test suite info"

6 years agoMerge "Add API(v2) to get all test suite"
Rex Lee [Fri, 21 Jul 2017 01:15:28 +0000 (01:15 +0000)]
Merge "Add API(v2) to get all test suite"

6 years agoMerge "Add API(v2) to create test suite"
Rex Lee [Fri, 21 Jul 2017 01:15:05 +0000 (01:15 +0000)]
Merge "Add API(v2) to create test suite"

6 years agoMerge "Add API to delete certain test case"
Rex Lee [Fri, 21 Jul 2017 01:14:50 +0000 (01:14 +0000)]
Merge "Add API to delete certain test case"

6 years agoMerge "Add API(v2) to get certain test case info"
Rex Lee [Fri, 21 Jul 2017 01:14:35 +0000 (01:14 +0000)]
Merge "Add API(v2) to get certain test case info"

6 years agoMerge "Add API(v2) to get all test case info"
Rex Lee [Fri, 21 Jul 2017 01:14:24 +0000 (01:14 +0000)]
Merge "Add API(v2) to get all test case info"

6 years agoMerge "Add API(v2) to upload test case"
Rex Lee [Fri, 21 Jul 2017 01:14:10 +0000 (01:14 +0000)]
Merge "Add API(v2) to upload test case"

6 years agoMerge "Add API(v2) to add case to task"
Rex Lee [Fri, 21 Jul 2017 01:11:49 +0000 (01:11 +0000)]
Merge "Add API(v2) to add case to task"

6 years agoMerge "Add API(v2) to delete certain task"
Jing Lu [Fri, 21 Jul 2017 01:10:35 +0000 (01:10 +0000)]
Merge "Add API(v2) to delete certain task"

6 years agoMerge "Add API(v2) to get certain task info"
Rex Lee [Fri, 21 Jul 2017 01:07:34 +0000 (01:07 +0000)]
Merge "Add API(v2) to get certain task info"

6 years agoMerge "Add API(v2) to add environment to task"
Rex Lee [Fri, 21 Jul 2017 01:07:18 +0000 (01:07 +0000)]
Merge "Add API(v2) to add environment to task"

6 years agoMerge "Add API(v2) to create task"
Rex Lee [Fri, 21 Jul 2017 01:05:44 +0000 (01:05 +0000)]
Merge "Add API(v2) to create task"

6 years agoMerge "Add API(v2) to delete certain project"
Rex Lee [Fri, 21 Jul 2017 01:04:25 +0000 (01:04 +0000)]
Merge "Add API(v2) to delete certain project"

6 years agoMerge changes from topics 'get_project', 'get_projects'
Rex Lee [Fri, 21 Jul 2017 01:03:42 +0000 (01:03 +0000)]
Merge changes from topics 'get_project', 'get_projects'

* changes:
  Add API(V2) to get certain project info
  Add API(v2) to get all projects info

6 years agoMerge "Add API(v2) to create project"
Rex Lee [Fri, 21 Jul 2017 01:02:08 +0000 (01:02 +0000)]
Merge "Add API(v2) to create project"

6 years agoAdd multiqueue support 65/33265/16
Jing Zhang [Tue, 11 Apr 2017 14:52:30 +0000 (10:52 -0400)]
Add multiqueue support

Problem:
Neither OVS nor SRIOV multi-queue is not supported. Guest VM lacks tuning to reach high throughput.
Solution:
(1) Build SRIOV multi-queue capable guest image by recompiling the igxbevf driver (make CFLAGS_EXTRA=-DIXGBE_ENABLE_VF_MQ install).
(2) Change pktgen to send on multiple queues.
(3) Add tuning in guest VM (Disable irqbalance and setup vNIC interrupt affinity to vCPUs)

Update 1: Takes care comments plus adds unit test cases
Update 2: Jenkins reports code coverage 81%, local reports 96%, add more unit test cases
Update 3: Manually rebased to adapt to SSH.from_node()
Update 4: Takes care comments for vnic_type, vnic_name

Change-Id: Ieb15381c653b13697487d095efa4be6c3c49fa42
JIRA: YARDSTICK-619
Signed-off-by: Jing Zhang <jing.c.zhang@nokia.com>
6 years agoImprovement: support more parameters in fio testcase 41/37841/1
JingLu5 [Thu, 20 Jul 2017 08:00:28 +0000 (08:00 +0000)]
Improvement: support more parameters in fio testcase

JIRA: YARDSTICK-750

The parameters that fio testcase support now maybe insufficient in some usecase.
The test case should support parameters such as: rwmixwrite, size, direct and numjobs.
This work is about add more parameters that can be specified in options section
in the YAML file.

Change-Id: Icccf024dc78d82bc453480f3baafb8aaa5c19538
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoAdd API(v2) to delete certain test suite 35/37835/1
chenjiankun [Thu, 20 Jul 2017 05:12:06 +0000 (05:12 +0000)]
Add API(v2) to delete certain test suite

JIRA: YARDSTICK-749

API: /api/v2/yardstick/testsuites/<suite_name>
METHOD: DELETE

Change-Id: Idfb5086ab3ac9e7ea6f9512ee5c7f02090d554c0
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoHA testcase containerized Compass support 45/37245/12
JingLu5 [Wed, 12 Jul 2017 07:35:30 +0000 (07:35 +0000)]
HA testcase containerized Compass support

Compass will be containerized in Euphrates release.
This work is about support HA testcase in a containerized environment.

Change-Id: Ibb668c81f046d6400293f8cd58181b9f20aeebe3
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoAdd API(v2) to get certain test suite info 33/37833/1
chenjiankun [Thu, 20 Jul 2017 04:19:29 +0000 (04:19 +0000)]
Add API(v2) to get certain test suite info

JIRA: YARDSTICK-748

API: /api/v2/yardstick/testsuites/<suite_name>
METHOD: GET

Change-Id: I0d60ddedff4f76504ebd2e61257bf1b9cad3b923
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get all test suite 31/37831/1
chenjiankun [Thu, 20 Jul 2017 04:13:14 +0000 (04:13 +0000)]
Add API(v2) to get all test suite

JIRA: YARDSTICK-747

API: /api/v2/yardstick/testsuites
METHOD: GET

Change-Id: I2375b6d2ea54704f5a2328cc8110058af038e777
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to create test suite 29/37829/1
chenjiankun [Thu, 20 Jul 2017 04:04:40 +0000 (04:04 +0000)]
Add API(v2) to create test suite

JIRA: YARDSTICK-746

API: /api/v2/yardstick/testsuites/action
METHOD: POST
PARAMS:
{
    'action': 'create_suite',
    'args': {
        'name': 'case_name',
        'testcases': [
            'opnfv_yardstick_tc002'
        ]
    }
}

Change-Id: I7e07c599e64e7eedda274c72344e394f5535f055
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API to delete certain test case 25/37825/1
chenjiankun [Thu, 20 Jul 2017 03:52:34 +0000 (03:52 +0000)]
Add API to delete certain test case

JIRA: YARDSTICK-745

API: /api/v2/yardstick/testcases/<case_name>
METHOD: DELETE

Change-Id: Ic75ee60abfc00d20328ee45b9830dea1fe464482
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get certain test case info 23/37823/1
chenjiankun [Thu, 20 Jul 2017 03:46:17 +0000 (03:46 +0000)]
Add API(v2) to get certain test case info

JIRA: YARDSTICK-744

API: /api/v2/yardstick/testcases
METHOD: GET

Change-Id: I4b1867f713bce2f9f2342ecec8540b08b0bb3456
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get all test case info 21/37821/1
chenjiankun [Thu, 20 Jul 2017 03:36:38 +0000 (03:36 +0000)]
Add API(v2) to get all test case info

JIRA: YARDSTICK-743

API: /api/v2/yardstick/testcases
METHOD: GET

Change-Id: Iced97206cb4c5f68ee8a5729af937e8d45ca6e87
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to upload test case 19/37819/1
chenjiankun [Thu, 20 Jul 2017 03:30:58 +0000 (03:30 +0000)]
Add API(v2) to upload test case

JIRA: YARDSTICK-742

API: /api/v2/yardstick/testcases/action
METHOD: POST
PARAMS:
{
   'action': 'upload_case',
    'args': {
        'file': file
    }
}

Change-Id: Id305e72a24ec28295ac4bae5e5b9ad83eb2c1e34
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to add case to task 79/37779/2
chenjiankun [Wed, 19 Jul 2017 10:19:13 +0000 (10:19 +0000)]
Add API(v2) to add case to task

JIRA: YARDSTICK-739

API: /api/v2/yardstick/tasks/<task_id>
METHOD: PUT
PARAMS:
{
    'action': 'add_case',
    'args': {
        'case_name': 'opnfv_yardstick_tc002',
        'case_content': case_content
    }
}

Change-Id: I53e71e3d662399b08029ed417b5873a4775ca32d
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoheat: port_security_enabled, allowed_address_pairs, disable gateway_ip 43/37643/7
Ross Brattain [Wed, 5 Jul 2017 08:36:47 +0000 (01:36 -0700)]
heat: port_security_enabled, allowed_address_pairs, disable gateway_ip

    xe0:
      cidr: '10.0.2.0/24'
      vld_id: public
      allowed_address_pairs:
        - ip_address:
            '0.0.0.0/0'
    xe1:
      cidr: '10.0.3.0/24'
      vld_id: private
      allowed_address_pairs:
        - ip_address:
            '0.0.0.0/0'

We need to disable gateways on data plane interfaces
With TGs and VFNs we probably don't need gateway on data interfaces

Change-Id: I276a7d591a0a3ff03877c4f525303fc2874de683
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoAdd API(v2) to delete certain task 75/37775/2
chenjiankun [Wed, 19 Jul 2017 10:01:05 +0000 (10:01 +0000)]
Add API(v2) to delete certain task

JIRA: YARDSTICK-738

API: /api/v2/yardstick/tasks/<task_id>
METHOD: DELETE

Change-Id: I28215d2cae63551455abacc4142cff3c4aaed281
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get certain task info 71/37771/1
chenjiankun [Wed, 19 Jul 2017 09:44:05 +0000 (09:44 +0000)]
Add API(v2) to get certain task info

JIRA: YARDSTICK-737

API: /api/v2/yardstick/tasks/<task_id>
METHOD: GET

Change-Id: Ia360f4bba05e196e07c9eb339061ccfbf5df8137
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to add environment to task 67/37767/1
chenjiankun [Wed, 19 Jul 2017 09:33:04 +0000 (09:33 +0000)]
Add API(v2) to add environment to task

JIRA: YARDSTICK-736

API: /api/v2/yardstick/tasks/<task_id>
METHOD: PUT
PARAMS:
{
    'action': 'add_environment',
    'args': {
        'environment_id': environment_id
    }
}

Change-Id: Idc31cb21de882d008202b6395158e9f9aa9244db
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to create task 59/37759/1
chenjiankun [Wed, 19 Jul 2017 08:47:10 +0000 (08:47 +0000)]
Add API(v2) to create task

JIRA: YARDSTICK-735

API: /api/v2/yardstick/tasks/action
METHOD: POST
PARAMS:
{
    'action': 'create_task',
    'args': {
        'name': 'task1',
        'project_id': project_id
    }
}

Change-Id: I1f9c743f32bbcff999e37cf53ebfa96b41c61e5e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Add API(v2) to delete container"
Jing Lu [Wed, 19 Jul 2017 08:18:22 +0000 (08:18 +0000)]
Merge "Add API(v2) to delete container"

6 years agoMerge "Add API(v2) to get container info"
Jing Lu [Wed, 19 Jul 2017 08:18:06 +0000 (08:18 +0000)]
Merge "Add API(v2) to get container info"

6 years agoMerge "Add API(v2) to create grafana"
Jing Lu [Wed, 19 Jul 2017 08:17:49 +0000 (08:17 +0000)]
Merge "Add API(v2) to create grafana"

6 years agoMerge "Add API(v2) to create influxdb"
Jing Lu [Wed, 19 Jul 2017 08:17:38 +0000 (08:17 +0000)]
Merge "Add API(v2) to create influxdb"

6 years agoMerge "Add API(v2) to delete pod"
Jing Lu [Wed, 19 Jul 2017 08:17:25 +0000 (08:17 +0000)]
Merge "Add API(v2) to delete pod"

6 years agoAdd API(v2) to delete certain project 55/37755/1
chenjiankun [Wed, 19 Jul 2017 08:15:31 +0000 (08:15 +0000)]
Add API(v2) to delete certain project

JIRA: YARDSTICK-734

API: /api/v2/yardstick/projects/<project_id>
METHOD: DELETE

Change-Id: I6628ec42aa7c4c6ab073ddc33c119ea1c03b81fe
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(V2) to get certain project info 51/37751/1
chenjiankun [Wed, 19 Jul 2017 08:02:40 +0000 (08:02 +0000)]
Add API(V2) to get certain project info

JIRA: YARDSTICK-733

API: /api/v2/yardstick/projects/<project_id>
METHOD: GET

Change-Id: I20a615af96229aefac6ef86566a7b9c5d42f9633
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get all projects info 35/37735/1
chenjiankun [Wed, 19 Jul 2017 07:21:24 +0000 (07:21 +0000)]
Add API(v2) to get all projects info

JIRA: YARDSTICK-732

API: /api/v2/yardstick/projects
METHOD: GET

Change-Id: Ifd67f11f516270d96c0e80b5b8c76a939583d9e5
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to create project 33/37733/1
chenjiankun [Wed, 19 Jul 2017 06:52:52 +0000 (06:52 +0000)]
Add API(v2) to create project

JIRA: YARDSTICK-731

API: /api/v2/yardstick/projects/action
METHOD: POST
PARAMS:
{
    'action': 'create_project',
    'args': {
        'name': 'project1'
    }
}

Change-Id: I92332dec8dcf3253f0cbf1668332ce5110111d73
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoyardstick env influxdb/grafana cmd support centos 33/37233/3
chenjiankun [Wed, 12 Jul 2017 03:58:58 +0000 (03:58 +0000)]
yardstick env influxdb/grafana cmd support centos

JIRA: YARDSTICK-714

Currently yardstick env influxdb/grafana command do not support centos.
Because we use the gateway ip to get the service of influxdb and grafana.
But in centos, we can not access influxdb/grafana service via gateway ip.
In this patch, I use docker inspect to get the ip of influxdb and grafana.
So these command can support centos.

Change-Id: Ie4abcb8048b92d61bc62777dfc362bb29f354b2b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agobase: remove redudant ip_to_convert 03/37703/1
Ross Brattain [Thu, 18 May 2017 16:16:20 +0000 (09:16 -0700)]
base: remove redudant ip_to_convert

remove extra newline as well

Change-Id: I9038621720c40802aa041bad66007b38070cb26e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "test_base: speedup unittest, wait for queue not empty"
Ross Brattain [Mon, 17 Jul 2017 16:46:04 +0000 (16:46 +0000)]
Merge "test_base: speedup unittest, wait for queue not empty"

6 years agoAdd API(v2) to delete container 05/37605/1
chenjiankun [Mon, 17 Jul 2017 08:15:57 +0000 (08:15 +0000)]
Add API(v2) to delete container

JIRA: YARDSTICK-729

API: /api/v2/yardstick/containers/<container_id>
METHOD: DELETE

Change-Id: I4cda76329edd7b988a357f1fcb2b5041bf48be64
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to get container info 03/37603/1
chenjiankun [Mon, 17 Jul 2017 07:54:46 +0000 (07:54 +0000)]
Add API(v2) to get container info

JIRA: YARDSTICK-728

API: /api/v2/yardstick/containers/<container_id>
METHOD: GET

Change-Id: Iba34e6c6dd84573dc9d5914a584d920678c0de36
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd API(v2) to create grafana 01/37601/1
chenjiankun [Mon, 17 Jul 2017 07:40:09 +0000 (07:40 +0000)]
Add API(v2) to create grafana

JIRA: YARDSTICK-727

API: /api/v2/yardstick/containers/action
METHOD: POST
PARAMS:
{
    'action': 'create_influxdb',
    'args': {
        'environment_id': environment_id
    }
}

Change-Id: I12fc23261ba62df6f923a4d34455ad8b46c4aa8f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoOpen storperf testcase to huawei-pod2 45/37145/5
JingLu5 [Tue, 11 Jul 2017 02:34:41 +0000 (02:34 +0000)]
Open storperf testcase to huawei-pod2

JIRA: YARDSTICK-712

Change-Id: If91c936a3a59580a987cb6762db5d063edf6c9d7
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "attacker_process: fix typo s/envrioment/environment/"
Rex Lee [Mon, 17 Jul 2017 06:18:54 +0000 (06:18 +0000)]
Merge "attacker_process: fix typo s/envrioment/environment/"

6 years agoMerge "test_nstat: speedup unittests, sleep for 0 seconds"
Ross Brattain [Mon, 17 Jul 2017 06:14:57 +0000 (06:14 +0000)]
Merge "test_nstat: speedup unittests, sleep for 0 seconds"

6 years agoAdd API(v2) to create influxdb 85/37585/5
chenjiankun [Mon, 17 Jul 2017 02:10:34 +0000 (02:10 +0000)]
Add API(v2) to create influxdb

JIRA: YARDSTICK-726

API: /api/v2/yardstick/containers/action
METHOD: POST
PARAMS:
{
    'action': 'create_influxdb',
    'args': {
        'environment_id': environment_id
    }
}

Change-Id: I20961fc6ae9918c894de7fabd3f81ca966bd24cd
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "pktgen: speedup unittest, mock time.sleep"
Ross Brattain [Mon, 17 Jul 2017 04:40:11 +0000 (04:40 +0000)]
Merge "pktgen: speedup unittest, mock time.sleep"

6 years agoMerge "tg: speedup unittests, mock time.sleep"
Ross Brattain [Mon, 17 Jul 2017 04:21:49 +0000 (04:21 +0000)]
Merge "tg: speedup unittests, mock time.sleep"

6 years agoMerge "test_pktgen_dpdk_throughput: speedup unittest, mock time.sleep()"
Ross Brattain [Mon, 17 Jul 2017 04:20:39 +0000 (04:20 +0000)]
Merge "test_pktgen_dpdk_throughput: speedup unittest, mock time.sleep()"

6 years agotest_nstat: speedup unittests, sleep for 0 seconds 63/37463/3
Ross Brattain [Fri, 14 Jul 2017 05:03:35 +0000 (22:03 -0700)]
test_nstat: speedup unittests, sleep for 0 seconds

Change-Id: I3f961e26fb045ea7501dc3a5b630b3ef94fec3ee
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agotest_heat: ipaddress expects unicode inputs 99/37599/2
Ross Brattain [Mon, 17 Jul 2017 03:46:27 +0000 (20:46 -0700)]
test_heat: ipaddress expects unicode inputs

weird error

E           AddressValueError: '10.20.0.0/15' does not appear to be an IPv4 or IPv6 network. Did you pass in a bytes (str in Python 2) instead of a unicode object?

I guess we need to convert the stack.outputs mock to unicode

FAILED
tests/unit/benchmark/contexts/test_heat.py:137 (HeatContextTestCase.test_add_server_port)
self = <tests.unit.benchmark.contexts.test_heat.HeatContextTestCase testMethod=test_add_server_port>

    def test_add_server_port(self):
        network1 = mock.MagicMock()
        network1.vld_id = 'vld111'
        network2 = mock.MagicMock()
        network2.vld_id = 'vld777'
        self.test_context.name = 'foo'
        self.test_context.stack = mock.MagicMock()
        self.test_context.networks = {
            'a': network1,
            'c': network2,
        }
        self.test_context.stack.outputs = {
            'b': '10.20.30.45',
            'b-subnet_id': 1,
            'foo-a-subnet-cidr': '10.20.0.0/15',
            'foo-a-subnet-gateway_ip': '10.20.30.1',
            'b-mac_address': '00:01',
            'b-device_id': 'dev21',
            'b-network_id': 'net789',
            'd': '40.30.20.15',
            'd-subnet_id': 2,
            'foo-c-subnet-cidr': '40.30.0.0/18',
            'foo-c-subnet-gateway_ip': '40.30.20.254',
            'd-mac_address': '00:10',
            'd-device_id': 'dev43',
            'd-network_id': 'net987',
        }
        server = mock.MagicMock()
        server.ports = OrderedDict([
            ('a', {'stack_name': 'b'}),
            ('c', {'stack_name': 'd'}),
        ])

        expected = {
            "private_ip": '10.20.30.45',
            "subnet_id": 1,
            "subnet_cidr": '10.20.0.0/15',
            "network": '10.20.0.0',
            "netmask": '255.254.0.0',
            "gateway_ip": '10.20.30.1',
            "mac_address": '00:01',
            "device_id": 'dev21',
            "network_id": 'net789',
            "network_name": 'a',
            "local_mac": '00:01',
            "local_ip": '10.20.30.45',
            "vld_id": 'vld111',
        }
>       self.test_context.add_server_port(server)

tests/unit/benchmark/contexts/test_heat.py:186:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
yardstick/benchmark/contexts/heat.py:307: in add_server_port
    network_name, port['stack_name'], self.stack.outputs)
yardstick/benchmark/contexts/heat.py:315: in make_interface_dict
    subnet_ip = ipaddress.ip_network(subnet_cidr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

address = '10.20.0.0/15', strict = True

    def ip_network(address, strict=True):
        """Take an IP string/int and return an object of the correct type.

        Args:
            address: A string or integer, the IP network.  Either IPv4 or
              IPv6 networks may be supplied; integers less than 2**32 will
              be considered to be IPv4 by default.

        Returns:
            An IPv4Network or IPv6Network object.

        Raises:
            ValueError: if the string passed isn't either a v4 or a v6
              address. Or if the network has host bits set.

        """
        try:
            return IPv4Network(address, strict)
        except (AddressValueError, NetmaskValueError):
            pass

        try:
            return IPv6Network(address, strict)
        except (AddressValueError, NetmaskValueError):
            pass

        if isinstance(address, bytes):
            raise AddressValueError(
                '%r does not appear to be an IPv4 or IPv6 network. '
                'Did you pass in a bytes (str in Python 2) instead of'
>               ' a unicode object?' % address)
E           AddressValueError: '10.20.0.0/15' does not appear to be an IPv4 or IPv6 network. Did you pass in a bytes (str in Python 2) instead of a unicode object?

../../yardstick/yardstick_venv/lib/python2.7/site-packages/ipaddress.py:199: AddressValueError

Change-Id: Ie3b087a26a054203573eaa9b13c3e90152bba6a9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "test_tg_rfc2544_trex: speedup unittest, set time.sleep(0)"
Ross Brattain [Mon, 17 Jul 2017 03:56:09 +0000 (03:56 +0000)]
Merge "test_tg_rfc2544_trex: speedup unittest, set time.sleep(0)"

6 years agotest_tg_rfc2544_trex: speedup unittest, set time.sleep(0) 31/37331/4
Ross Brattain [Thu, 13 Jul 2017 04:05:22 +0000 (21:05 -0700)]
test_tg_rfc2544_trex: speedup unittest, set time.sleep(0)

Change-Id: I6fdae629bdbd45cba715a838c41613b914a3abcb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agotest_delete_all_calls_delete: fix delete mock 93/37593/2
Ross Brattain [Mon, 17 Jul 2017 03:31:38 +0000 (20:31 -0700)]
test_delete_all_calls_delete: fix delete mock

we need to mock HeatStack.delete() before
we instantiate otherwise we can't
reach the instantiated objects delete() method

we need to patch the class so we patch all instances

Change-Id: I36f9476dcfb83e2d583c5a9f72dc27fce57258eb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agotest_heat: don't waste 2 seconds in unittest 95/37595/1
Ross Brattain [Fri, 14 Jul 2017 06:05:45 +0000 (23:05 -0700)]
test_heat: don't waste 2 seconds in unittest

remove duration checks and test with sleep 0

Change-Id: I22516cde56ac3a02358ca9c3e652cead10580d76
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Bugfix: kubernetes context do not implement _get_network"
Jing Lu [Mon, 17 Jul 2017 03:15:13 +0000 (03:15 +0000)]
Merge "Bugfix: kubernetes context do not implement _get_network"

6 years agoBugfix: kubernetes context do not implement _get_network 87/37587/2
chenjiankun [Mon, 17 Jul 2017 02:32:47 +0000 (02:32 +0000)]
Bugfix: kubernetes context do not implement _get_network

Since kubernetes context do not implement _get_network,
so when run unit test case, we will get a error:

    TypeError: Can't instantiate abstract class KubernetesContext with
    abstract methods _get_network

Change-Id: Ib56abe7c580ef8a6fc9f52f3fcd566d0fa70e1cc
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "apexlake: speed unittest, mock time.sleep"
Ross Brattain [Mon, 17 Jul 2017 03:09:35 +0000 (03:09 +0000)]
Merge "apexlake: speed unittest, mock time.sleep"

6 years agoMerge "test_attacker_baremetal: don't run local commands"
Ross Brattain [Mon, 17 Jul 2017 03:08:47 +0000 (03:08 +0000)]
Merge "test_attacker_baremetal: don't run local commands"

6 years agoMerge "Kubernetes (k8s) support"
Jing Lu [Mon, 17 Jul 2017 01:58:00 +0000 (01:58 +0000)]
Merge "Kubernetes (k8s) support"

6 years agoMerge "add network info to topology"
Rex Lee [Mon, 17 Jul 2017 01:15:07 +0000 (01:15 +0000)]
Merge "add network info to topology"

6 years agoKubernetes (k8s) support 37/36537/16
chenjiankun [Tue, 27 Jun 2017 03:20:08 +0000 (03:20 +0000)]
Kubernetes (k8s) support

JIRA: YARDSTICK-682

We decide to support k8s in E release.
We need to discuss with openretriver team and then rewrite the ping
test case under k8s as the first step.

Change-Id: I3f81ebca8de5c1f3a8b7d42581cd7342dc320239
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoadd release date 57/37557/1
Ross Brattain [Sat, 15 Jul 2017 04:59:21 +0000 (21:59 -0700)]
add release date

Change-Id: Icf12b7a59144754f65f67ed54a5c455a64c5042f
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoDanube 3.1 release notes 51/36451/4
Ross Brattain [Sun, 25 Jun 2017 22:36:21 +0000 (15:36 -0700)]
Danube 3.1 release notes

Change-Id: I7032dd2348dd7212484a4a3cbd40e1d7698c8668
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoAdd API(v2) to delete pod 85/37485/1
chenjiankun [Fri, 14 Jul 2017 03:54:06 +0000 (03:54 +0000)]
Add API(v2) to delete pod

JIRA: YARDSTICK-725

API: /api/v2/yardstick/pods/<pod_id>
METHOD: DELETE

Change-Id: Ib9e9f9ced455c4ee3b6e1f63d773ea2e3ee906a6
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Initial all url of api v2"
Jing Lu [Fri, 14 Jul 2017 08:38:41 +0000 (08:38 +0000)]
Merge "Initial all url of api v2"