yardstick.git
7 years agoMerge "Add more parameters in iperf3 taml"
Jing Lu [Tue, 1 Aug 2017 03:34:07 +0000 (03:34 +0000)]
Merge "Add more parameters in iperf3 taml"

7 years agocover.sh: delete .testrepository before running coverage 95/38495/1
Ross Brattain [Tue, 1 Aug 2017 02:34:16 +0000 (19:34 -0700)]
cover.sh: delete .testrepository before running coverage

When running py27 and py3 test ran into problems
with .testrepository already exists, but testr
thinking it was corrupt

running testr
No repository found in /home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master. Create one by running "testr init".
error: testr failed (3)

The fix seems to be to delete .testrepository before
running testr coverage

Change-Id: Ib8cd3ab9d3384935380ac29ce365439c6464adc3
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "Bugfix: yardstick always report 'PASS' to DB"
Rex Lee [Tue, 1 Aug 2017 02:18:33 +0000 (02:18 +0000)]
Merge "Bugfix: yardstick always report 'PASS' to DB"

7 years agoMerge "Add yardstick logo in GUI"
Rex Lee [Tue, 1 Aug 2017 02:17:22 +0000 (02:17 +0000)]
Merge "Add yardstick logo in GUI"

7 years agoMerge "Add container ping VM test case"
Jing Lu [Tue, 1 Aug 2017 02:02:57 +0000 (02:02 +0000)]
Merge "Add container ping VM test case"

7 years agoAdd yardstick logo in GUI 95/38395/3
chenjiankun [Mon, 31 Jul 2017 03:05:36 +0000 (03:05 +0000)]
Add yardstick logo in GUI

JIRA: YARDSTICK-767

We have yardstick logo in opnfv community.
We have the demand to display it in yardstick GUI.

Change-Id: Ief5807c918754e679e95ae1d1f3a769ab2d6d4b2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoMerge "add opnfv_os-odl-sfc-ha_daily.yaml test suite"
Jing Lu [Tue, 1 Aug 2017 01:09:31 +0000 (01:09 +0000)]
Merge "add opnfv_os-odl-sfc-ha_daily.yaml test suite"

7 years agoMerge "run_tests: don't write python bytecode"
Ross Brattain [Mon, 31 Jul 2017 21:26:15 +0000 (21:26 +0000)]
Merge "run_tests: don't write python bytecode"

7 years agocover: another 'db type could not be determined' workaround 83/38483/1
Ross Brattain [Mon, 31 Jul 2017 21:13:58 +0000 (14:13 -0700)]
cover: another 'db type could not be determined' workaround

Change-Id: Ib94ff2dfc86725e5367908296b5160f9565442b8
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agorun_tests: don't write python bytecode 79/38479/1
Ross Brattain [Mon, 31 Jul 2017 20:36:28 +0000 (13:36 -0700)]
run_tests: don't write python bytecode

we usually disable .pyc generate during unittests

Change-Id: I7d7af7c6d188f5a592d24aa90322edb217ffd8ba
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "NSBperf: don't exit during import time"
Ross Brattain [Mon, 31 Jul 2017 18:50:53 +0000 (18:50 +0000)]
Merge "NSBperf: don't exit during import time"

7 years agocover.sh: workaround 'db type could not be determined' bug 71/38471/1
Ross Brattain [Mon, 31 Jul 2017 18:37:04 +0000 (11:37 -0700)]
cover.sh: workaround 'db type could not be determined' bug

https://bugs.launchpad.net/testrepository/+bug/1229445

rm -f .testrepository/times.dbm

remove that file before running testr

Change-Id: I178efefebe600a65d1a28beb9b01f7dfecaa4d00
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoNSBperf: don't exit during import time 69/38469/1
Ross Brattain [Mon, 31 Jul 2017 18:38:08 +0000 (11:38 -0700)]
NSBperf: don't exit during import time

This was breaking testr unittests.

Don't do this like this during import time,
only do them in if __name__ sections, otherwise
when anything else tries to import this module
it exists.

Change-Id: Ia17f5e1a5cbe07ab287d3b95e96489b8a6248170
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoadd opnfv_os-odl-sfc-ha_daily.yaml test suite 31/38431/2
JingLu5 [Mon, 31 Jul 2017 10:11:03 +0000 (10:11 +0000)]
add opnfv_os-odl-sfc-ha_daily.yaml test suite

Change-Id: I56961d143bdd723f4e957a4c02ba4127ccddadb3
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoMerge "Testing live migration using qemu"
Rex Lee [Mon, 31 Jul 2017 06:10:06 +0000 (06:10 +0000)]
Merge "Testing live migration using qemu"

7 years agoAdd container ping VM test case 01/38401/1
chenjiankun [Mon, 31 Jul 2017 04:53:17 +0000 (04:53 +0000)]
Add container ping VM test case

JIRA: YARDSTICK-769

This is demand from openretriever project(https://jira.opnfv.org/browse/CONTAINER-19).
Since we have the kubernetes context now and we have first container test case.
We can have a new test case that make container(k8s) ping VM(openstack).

Change-Id: Ia1724130d92d447836529b370510fe1bf1738723
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoBugfix: yardstick always report 'PASS' to DB 97/38397/1
chenjiankun [Mon, 31 Jul 2017 03:33:00 +0000 (03:33 +0000)]
Bugfix: yardstick always report 'PASS' to DB

JIRA: YARDSTICK-768

Now yardstick will not stop if test case failed,
so that we can run the rest test case in the suite.

CI judge task status by the cmd return code. In this way,
the 'yardstick task start' cmd will always return 0.
So we will always report 'PASS' to DB.

In this patch I add a judgement in cmd, if the status is not 'PASS', we
will raise a RuntimeError.

Change-Id: I655424dd9cd3782869986963a17b24acfb340345
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoAdd more parameters in iperf3 taml 93/38393/1
Ace Lee [Mon, 31 Jul 2017 02:50:01 +0000 (02:50 +0000)]
Add more parameters in iperf3 taml

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 in testcase yaml file

Change-Id: I8c900a4a8909d97543cf837a02c76a6aee19f439
Signed-off-by: Ace Lee <liyin11@huawei.com>
7 years agoAdd spec cpu2006 test case 27/38327/8
JingLu5 [Thu, 27 Jul 2017 07:56:02 +0000 (07:56 +0000)]
Add spec cpu2006 test case

JIRA: YARDSTICK-764

This work is about support run SPEC CPU2006 benchmark.

users must get a "cpu2006-1.2.iso" from the SPEC website,
save it under the /home/opnfv/yardstick/yardstick/resources folder
(e.g. /home/opnfv/yardstick/yardstick/resources/cpu2006-1.2.iso),
user may also supply a runspec cfg file
(e.g. /home/opnfv/yardstick/yardstick/resources/files/yardstick_spec_cpu2006.cfg).

Change-Id: If4aecc1c14635a07589555196d2edc8bd37d7bdb
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoHeat: support vnic_type in heat type context 67/37967/7
JingLu5 [Mon, 24 Jul 2017 02:44:26 +0000 (02:44 +0000)]
Heat: support vnic_type in heat type context

JIRA: YARDSTICK-757

Some test scenarios require VM with specific vnic type.
This work is about supporting using different vnic types in heat type context.

context:
  name: demo
  image: cirros-0.3.5
  flavor: yardstick-flavor
  user: cirros

  placement_groups:
    pgrp1:
      policy: "availability"

  servers:
    athena:
      floating_ip: true
      placement: "pgrp1"
    ares:
      placement: "pgrp1"

  networks:
    test:
      cidr: '10.0.1.0/24'
      vnic_type: "normal"

Change-Id: Ia229fda72f47b04288ea107e2d58fd3e8ac91dd9
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoHeat: support create and attach volume in heat type context 61/37961/5
JingLu5 [Mon, 24 Jul 2017 01:39:57 +0000 (01:39 +0000)]
Heat: support create and attach volume in heat type context

JIRA: YARDSTICK-756

Some test scenarios require VM with volume attached.
This work is about supporting create and attach volume in heat type context.

context:
  name: demo
  image: cirros-0.3.5
  flavor: yardstick-flavor
  user: cirros

  placement_groups:
    pgrp1:
      policy: "availability"

  servers:
    athena:
      floating_ip: true
      # per-vm inline volume definition. if no volume size specified, then this
      # volume should be an existing volume in the openstack environment
      volume: yardstick-volume
      placement: "pgrp1"
    ares:
      # per-vm inline volume definition. if volume size is specified, then this
      # volume will be crated and attach to the vm
      volume:
        name: test-volume
        size: 10
      # volume mountpoint is also configurable
      volume_mountpoint: /dev/vdb
      placement: "pgrp1"

  networks:
    test:
      cidr: '10.0.1.0/24'

Change-Id: Ief87b313980a59eac229eb4780d93ffc929ceb66
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agobugfix: enable vlan and physical netwok able to set 77/38377/2
rexlee8776 [Sat, 29 Jul 2017 03:46:02 +0000 (03:46 +0000)]
bugfix: enable vlan and physical netwok able to set

Enable vlan and physical netwok able to set by
parameters for heat context. It won't affect the
original test case, but enable vlan to be set
directly by pass task-args to command:

yardstick -d task start samples/ping.yaml --task-args '{"provider": "vlan"}'

JIRA: YARDSTICK-763

Change-Id: I96f96a61991cceb1506d055867a006d56689a008
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agoMerge "bugfix: enable vlan and physical netwok able to set"
Kubi [Sat, 29 Jul 2017 02:59:44 +0000 (02:59 +0000)]
Merge "bugfix: enable vlan and physical netwok able to set"

7 years agoMerge "Update NSBPerf CLI to adapt to new output format"
Rex Lee [Sat, 29 Jul 2017 02:49:28 +0000 (02:49 +0000)]
Merge "Update NSBPerf CLI to adapt to new output format"

7 years agoMerge "Test Case: OPNFV_YARDSTICK_TC023: VM availability during live migration"
Rex Lee [Fri, 28 Jul 2017 08:29:29 +0000 (08:29 +0000)]
Merge "Test Case: OPNFV_YARDSTICK_TC023: VM availability during live migration"

7 years agobugfix: enable vlan and physical netwok able to set 23/38323/2
rexlee8776 [Fri, 28 Jul 2017 07:46:38 +0000 (07:46 +0000)]
bugfix: enable vlan and physical netwok able to set

enable vlan and physical netwok able to set by
parameters for heat context

this is a sample, if it's ok, i'll copy it to other yaml.
it won't affect the original test case, but enable vlan
 to be set directly by pass task-args to command.

yardstick -d task start samples/ping.yaml --task-args '{"provider": "vlan"}'

JIRA: YARDSTICK-763

Change-Id: Ie35dac4b5e80404558a1eb45d49fa0bb6ab45a98
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agoMerge "leave port_security_enabled undefined by default"
Rex Lee [Fri, 28 Jul 2017 01:12:14 +0000 (01:12 +0000)]
Merge "leave port_security_enabled undefined by default"

7 years agoAdding support for multi-dispatcher 93/36193/6
Deepak S [Mon, 19 Jun 2017 12:19:41 +0000 (12:19 +0000)]
Adding support for multi-dispatcher

JIRA: YARDSTICK-684

This patch adds the support to enable multi-dispatcher of result.

e.g.
[DEFAULT]
debug = False
dispatcher = file, http

Change-Id: Id0e1a1bba14edd899fcf5b275be1f0a091b6db77
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoleave port_security_enabled undefined by default 57/38257/1
Ross Brattain [Thu, 27 Jul 2017 07:36:52 +0000 (00:36 -0700)]
leave port_security_enabled undefined by default

some deployments don't have port security ML2 plugin enabled,
so we have to leave port security undefined by default

RuntimeError: Resource CREATE failed:
 BadRequest: resources.yardstick-TC072-19be2f60-test: Unrecognized attribute(s) 'port_security_enabled'
https://build.opnfv.org/ci/user/narindergupta/my-views/view/joid/job/yardstick-joid-baremetal-daily-master/1276/console

Change-Id: I69178f869f6215f42d90ea4cfb297dad3d799f83
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "Yardstick GUI & GUI deployment"
Jing Lu [Thu, 27 Jul 2017 05:04:36 +0000 (05:04 +0000)]
Merge "Yardstick GUI & GUI deployment"

7 years agoYardstick GUI & GUI deployment 73/37973/5
chenjiankun [Mon, 24 Jul 2017 04:13:56 +0000 (04:13 +0000)]
Yardstick GUI & GUI deployment

JIRA: YARDSTICK-758

As E release plan, we have the need of yardstick GUI.
This patch is GUI front end code and deployment.
The backend code is yardstick API.

Change-Id: Ib15f78bcc50168c7828beff97256e9939c6da809
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoTest Case: OPNFV_YARDSTICK_TC023: VM availability during live migration 31/33431/12
chenjiankun [Mon, 17 Apr 2017 15:49:17 +0000 (15:49 +0000)]
Test Case: OPNFV_YARDSTICK_TC023: VM availability during live migration

JIRA: YARDSTICK-174

This live migration test case is based on share storage, default share
storage is enabled.
This test case will do some config work. And do live migration and
calculate the migration time and downtime.

Change-Id: I6601601edebdd0ac6434ba632b1eba9e9bd4fda0
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agofix sriov/ovs-dpdk unittests on systems with fewer than 10 cores 35/38135/1
Ross Brattain [Wed, 26 Jul 2017 07:58:29 +0000 (00:58 -0700)]
fix sriov/ovs-dpdk unittests on systems with fewer than 10 cores

we need to wrap vcpupin modulo number of cores.

also mock time.sleep

Change-Id: I6433418a99505b469c61c81a9a023d84434fa0ee
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoBugfix: plugin remove command use "JUMP_HOST_IP" if ip is set to local 11/38111/2
JingLu5 [Wed, 26 Jul 2017 01:50:49 +0000 (01:50 +0000)]
Bugfix: plugin remove command use "JUMP_HOST_IP" if ip is set to local

JIRA: YARDSTICK-762

Change-Id: Id4a94ef8bbe578944e3664e5e7c24fdf7478805b
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoMerge "Bugfix: supoort insecure mode in checking openstack environment"
Jing Lu [Wed, 26 Jul 2017 01:39:44 +0000 (01:39 +0000)]
Merge "Bugfix: supoort insecure mode in checking openstack environment"

7 years agoBugfix: supoort insecure mode in checking openstack environment 43/38043/3
JingLu5 [Tue, 25 Jul 2017 03:21:30 +0000 (03:21 +0000)]
Bugfix: supoort insecure mode in checking openstack environment

Change-Id: I18346aa177689bc995eb7d4883f4a66383e827ba
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7 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

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

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

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

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