chenjiankun [Fri, 14 Jul 2017 03:27:43 +0000 (03:27 +0000)]
Add API(v2) to upload pod file
JIRA: YARDSTICK-723
API: /api/v2/yardstick/pods/action
METHOD: POST
PARAMS:
{
'action': 'upload_pod_file',
'args': {
'file': file,
'environment_id': environment_id
}
}
Change-Id: I5eb065d8b46080a94c989ec9b8217dc54900bd06
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Fri, 14 Jul 2017 01:38:47 +0000 (01:38 +0000)]
Add API(v2) to get openrc info
JIRA: YARDSTICK-721
API: /api/v2/yardstick/environments/openrcs/<openrc_id>
METHOD: GET
Change-Id: I57241381cf50fef0dc4eec3281c01ba106262a5a
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Fri, 14 Jul 2017 01:01:19 +0000 (01:01 +0000)]
Add API(v2) to update openrc
JIRA: YARDSTICK-720
API: /api/v2/yardstick/environments/openrcs/action
METHOD: POST
PARAMS:
{
'action': 'update_openrc',
'args': {
'openrc': {
"EXTERNAL_NETWORK": "ext-net",
"OS_AUTH_URL": "http://192.168.23.51:5000/v3",
"OS_IDENTITY_API_VERSION": "3",
"OS_IMAGE_API_VERSION": "2",
"OS_PASSWORD": "console",
"OS_PROJECT_DOMAIN_NAME": "default",
"OS_PROJECT_NAME": "admin",
"OS_TENANT_NAME": "admin",
"OS_USERNAME": "admin",
"OS_USER_DOMAIN_NAME": "default"
},
'environment_id': environment_id
}
}
Change-Id: Ie9a1614190a01456fd0896f0bdfd05f9d0724fc6
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 13 Jul 2017 09:39:20 +0000 (09:39 +0000)]
Add API(v2) to upload openrc
JIRA: YARDSTICK-719
API: /api/v2/yardstick/environments/openrcs/action
METHOD: POST
PARAMS:
{
'action': 'upload_openrc',
'args': {
'file': file,
'environment_id': environment_id
}
}
Change-Id: If367904a2d0c2d4a192fdc87a8da21ac6549269e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Rex Lee [Fri, 14 Jul 2017 04:01:24 +0000 (04:01 +0000)]
Merge "Add API to delete single environment"
Rex Lee [Fri, 14 Jul 2017 03:59:18 +0000 (03:59 +0000)]
Merge "Add API to get single environment info"
Rex Lee [Fri, 14 Jul 2017 03:56:16 +0000 (03:56 +0000)]
Merge "Add API to get environments"
Ross Brattain [Fri, 14 Jul 2017 03:55:31 +0000 (03:55 +0000)]
Merge "test_monitor_multi: speedup unittests, sleep less"
Ross Brattain [Fri, 14 Jul 2017 03:55:27 +0000 (03:55 +0000)]
Merge "test_storperf: speedup unittest, use time.sleep(0)"
Rex Lee [Fri, 14 Jul 2017 03:53:12 +0000 (03:53 +0000)]
Merge "Add API to create environment"
Ross Brattain [Thu, 13 Jul 2017 21:38:23 +0000 (14:38 -0700)]
test_monitor_multi: speedup unittests, sleep less
Change-Id: I306e8e5525c3722179a5321988cad76190b93951
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 13 Jul 2017 04:04:29 +0000 (21:04 -0700)]
test_storperf: speedup unittest, use time.sleep(0)
Change-Id: I3923d75c1ae7974c7803b0ad6997a5ad0fece11d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 13 Jul 2017 04:09:55 +0000 (21:09 -0700)]
test_vpe_vnf: speedup unittest, mock time
Change-Id: I046fae81c23555573df7d9e2e80995499062cf38
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
chenjiankun [Thu, 13 Jul 2017 08:20:10 +0000 (08:20 +0000)]
Add API to delete single environment
JIRA: YARDSTICK-718
API: /api/v2/yardstick/environments/<environment_id>
METHOD: DELETE
Change-Id: I2e96b0f786440dea46f6b851d3f10f6cc5a0ab40
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 13 Jul 2017 07:24:35 +0000 (07:24 +0000)]
Add API to get single environment info
JIRA: YARDSTICK-717
API: /api/v2/yardstick/environments/<environment_id>
METHOD: GET
Change-Id: I9fe42a48520cc17d0f5416080b3595bd6c269761
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 13 Jul 2017 06:14:43 +0000 (06:14 +0000)]
Add API to get environments
JIRA: YARDSTICK-716
API: /api/v2/yardstick/environments
METHOD: GET
Change-Id: I46b7fb2b143fe76b6a0edbf1ecc8281187b85918
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
rexlee8776 [Thu, 13 Jul 2017 04:02:54 +0000 (12:02 +0800)]
update gitignore to exclude *.DS_Store *.log
Change-Id: Ibd05768eb08336ecfa3f2454ec5548b48944126f
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
chenjiankun [Thu, 13 Jul 2017 02:26:19 +0000 (02:26 +0000)]
Add API to create environment
JIRA: YARDSTICK-715
API: /api/v2/yardstick/environments/action
METHOD: POST
PARAM:
{
'action': 'create_environment'
}
Change-Id: I58086be3c70cdc3c4c93516bcfd53ba725486600
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Thu, 13 Jul 2017 03:19:54 +0000 (03:19 +0000)]
Merge "NSBperf: fix bad sigint handler"
Ross Brattain [Thu, 13 Jul 2017 01:20:03 +0000 (01:20 +0000)]
Merge "test_nstat: decrease sleep time for unittest"
Ross Brattain [Thu, 13 Jul 2017 01:04:03 +0000 (18:04 -0700)]
NSBperf: fix bad sigint handler
This is why we don't do things at module
import time.
when we import this module it makes a bad
sigint handler. Only load signal handlers
at runtime.
Also fix handler to take *args, **kwargs.
Unittest failures:
> time.sleep(0.01)
E TypeError: handler() takes 0 positional arguments but 2 were given
Change-Id: I4296a4bdef0e5f4d58b0503dcbc834f3bef0feeb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 13 Jul 2017 00:53:17 +0000 (17:53 -0700)]
test_nstat: decrease sleep time for unittest
there is no reason to sleep for a whole
minute during unittest
Change-Id: I206229bcaa7a50af1859f7b04e521955bb6217d4
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
chenjiankun [Wed, 12 Jul 2017 10:45:17 +0000 (10:45 +0000)]
Change endpoint to url in API
There are come conflict with new architecture.
Also it is more proper to use url as endpoint.
Change-Id: Idce331e36d85d0720bbf3255dca29ba6022e18b2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Wed, 12 Apr 2017 04:56:15 +0000 (21:56 -0700)]
constants: default SERVER_IP to 127.0.0.1
When running unittest while connected to P2P VPN,
their is no default route, so we get None.
Instead of using None, default to 127.0.0.1
Not sure why this was renamed to SERVER_IP either,
what do we use this value for?
Still getting py.test unittest failures all the time.
The problem is we lookup influxdb.ip but SERVER_IP is None,
so the lookup fails.
INFLUXDB_IP = get_param('influxdb.ip', SERVER_IP)
SERVER_IP can't ever be None
Change-Id: Iedb09dc541137f7cdc6ef8d26dd312807985bfa8
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Jing Lu [Wed, 12 Jul 2017 02:54:02 +0000 (02:54 +0000)]
Merge "Yardstick api database v2 model"
chenjiankun [Tue, 11 Jul 2017 09:44:48 +0000 (09:44 +0000)]
Yardstick api database v2 model
JIRA: YARDSTICK-713
We have api v2 for gui, and they are all based on the database model.
Change-Id: I51b127588b0b84316acff8acf4a7886339646060
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Rex Lee [Wed, 12 Jul 2017 01:35:03 +0000 (01:35 +0000)]
Merge "Yardstick API architecture improvement"
chenjiankun [Fri, 7 Jul 2017 03:13:36 +0000 (03:13 +0000)]
Yardstick API architecture improvement
JIRA: YARDSTICK-710
Since we have the plan to upload api v2 and gui.
We need to add put and delete method.
So the architecture need to be improved.
Change-Id: Ie20a79c26ef6c581897ce4e63980fa2895b162d2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Mon, 26 Jun 2017 04:39:00 +0000 (21:39 -0700)]
ipaddress: don't use backport on python 3
JIRA: YARDSTICK-645
Change-Id: I7b6d4222d58c29a0f5d1817fa84351c0f09404f7
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
JingLu5 [Mon, 10 Jul 2017 04:19:08 +0000 (04:19 +0000)]
Change storperf target IP
As compass in master use OpenStack Ansible, the former IP "192.168.200.1" for
Huawei pod-1 has been deprecated.
Change-Id: Ia60885b36abec3455db2aa2939afbe2ef8bd79f5
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Jing Lu [Mon, 10 Jul 2017 02:20:39 +0000 (02:20 +0000)]
Merge "Yardstick install storperf update"
JingLu5 [Wed, 5 Jul 2017 03:49:32 +0000 (03:49 +0000)]
Yardstick install storperf update
JIRA: YARDSTICK-702
Sicnce StorPerf has switched to use docker-compose to start container suite.
The way Yardstick install storperf should also be updated.
Change-Id: Idee05703b8ae5cd03bc214f598f56c8ac05ca755
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Rex Lee [Thu, 6 Jul 2017 12:21:22 +0000 (12:21 +0000)]
Merge "Improvement: delete stack if create stack failed"
Rex Lee [Thu, 6 Jul 2017 12:20:58 +0000 (12:20 +0000)]
Merge "Bugfix: Abnormally stopped background scenario causes test data lost"
Kubi [Thu, 6 Jul 2017 12:14:34 +0000 (12:14 +0000)]
Merge "move flatten dict key to common utils"
JingLu5 [Thu, 6 Jul 2017 08:33:17 +0000 (08:33 +0000)]
Improvement: delete stack if create stack failed
JIRA: YARDSTICK-709
If the stack is CREATE_FAILED during the context deployment, the failed
stack should be deleted.
Change-Id: I35b28ffae0f4d1f3ea9809d21add5d718dae5c9d
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Jing Lu [Thu, 6 Jul 2017 08:19:36 +0000 (08:19 +0000)]
Merge "Add API to update hosts info about SUT"
rexlee8776 [Wed, 5 Jul 2017 02:50:06 +0000 (02:50 +0000)]
move flatten dict key to common utils
So it can easily be used by other testcase to unify result
JIRA: YARDSTICK-702
Change-Id: Id4fde38a9a0c2a87a6c870bdb7b0c8f3a3b371ac
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
rexlee8776 [Tue, 27 Jun 2017 07:27:03 +0000 (07:27 +0000)]
Add API to update hosts info about SUT
JIRA: YARDSTICK-674
For some SUT which use domain name as endpoint and AUTH_URL, yardstick
restAPI should support to add "ip domain_name" info into /etc/hosts so
that it can use the ip_address to access the SUT.
api: /yardstick/env/action
description: update hosts info for domain name
method: POST
parameters:
{
"action": "update_hosts",
"args": {"opnfv.org": "1.1.1.1",
"openstack.org": "2.2.2.2"
}
}
Change-Id: Iee1defaf069ebcb0328a37a659024eabac297482
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Jing Lu [Thu, 6 Jul 2017 03:59:15 +0000 (03:59 +0000)]
Merge "Blacklist TC011 from suites with ODL"
Kubi [Thu, 6 Jul 2017 03:58:40 +0000 (03:58 +0000)]
Merge "Bugfix: test case constraint not work if "INSTALLER_TYPE" and "NODE_NAME" absent"
Kubi [Thu, 6 Jul 2017 03:58:19 +0000 (03:58 +0000)]
Merge "show actual exceptions in task.py"
Kubi [Wed, 5 Jul 2017 02:59:40 +0000 (02:59 +0000)]
Merge "unify pod keywork so api can easily used"
Kubi [Wed, 5 Jul 2017 02:58:30 +0000 (02:58 +0000)]
Merge "Use "OS_INSECURE" variable as the insecure mode indicator"
JingLu5 [Tue, 4 Jul 2017 07:44:52 +0000 (07:44 +0000)]
Bugfix: test case constraint not work if "INSTALLER_TYPE" and "NODE_NAME" absent
Change-Id: Idffc07c28fabda590b58c9501f388099f84f06b2
Signed-off-by: JingLu5 <lvjing5@huawei.com>
JingLu5 [Mon, 3 Jul 2017 10:34:53 +0000 (10:34 +0000)]
support segmentation_id for vlan provider network
If a network specified in the test case is a vlan provider network, new attribute "segmentation_id" can be used to specify the desired vlan tag in the test case network section:
networks:
test-net:
cidr: '192.168.1.0/24'
provider: "vlan"
physical_network: 'physnet1'
segmentation_id: "1000"
If the "segmentation_id" attribute is absent, a random vlan tag will be allocated to the network.
Change-Id: Ic53852447a3c1bd8feb9ebd42d35f1ade3684be1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
JingLu5 [Tue, 4 Jul 2017 05:59:52 +0000 (05:59 +0000)]
Bugfix: Abnormally stopped background scenario causes test data lost
Change-Id: I19b8d1c1c6becf4335537d585046cbd59cab5935
Signed-off-by: JingLu5 <lvjing5@huawei.com>
chenjiankun [Tue, 4 Jul 2017 03:16:55 +0000 (03:16 +0000)]
Bugfix: background scenario can't not update result
JIRA: YARDSTICK-700
In this patch:
https://gerrit.opnfv.org/gerrit/#/c/35257/
In yardstick/benchmark/core/task.py
We update background result only when it be stopped abnormally.
We need move it out of 'if' statement.
Change-Id: I25b76e160273a87da66098565a16e4a143cec11f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Alexandru Nemes [Tue, 16 May 2017 12:50:27 +0000 (15:50 +0300)]
Yardstick: Aarch64 jenkins slave support
Change-Id: I2d58c38d75fc1fe036769340e9fb02932f543510
Signed-off-by: Alexandru Nemes <alexandru.nemes@enea.com>
Alexandru Nemes [Tue, 27 Jun 2017 11:05:07 +0000 (14:05 +0300)]
Blacklist TC011 from suites with ODL
In deployments with ODL, security groups behave badly because of an
IPv6 rule that causes IPv4 packets to be incorrectly routed.
This is described in:
https://jira.opnfv.org/browse/ARMBAND-61
As a consequence, Yardstick TC011 fails because iperf cannot
create a connection.
The proposed solution is to temporarily comment out TC011
from test suites with ODL.
As mentioned here, security groups support for IPv6 is partial:
artifacts.opnfv.org/ipv6/docs/gapanalysis/gap-analysis-odl-boron.html
On nosdn deployments this issue is not reproducing and the test runs ok.
JIRA: ARMBAND-269
Change-Id: Id5fede27262c21d777ec8e9988941643d16f9417
Signed-off-by: Alexandru Nemes <alexandru.nemes@enea.com>
JingLu5 [Mon, 3 Jul 2017 04:16:14 +0000 (04:16 +0000)]
Bugfix: amend the CLI to build yardstick-image manually
Change-Id: I8fbf0d6383375660c05e55d36fb0d2f91e1d8de8
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Jing Lu [Mon, 3 Jul 2017 01:58:44 +0000 (01:58 +0000)]
Merge "Set TEST_DB_URL for storperf"
rexlee8776 [Fri, 30 Jun 2017 02:02:01 +0000 (02:02 +0000)]
unify pod keywork so api can easily used
JIRA: YARDSTICK-695
Change-Id: I826cb2ea07949b1eaae4df4cb77175ec8f5df89b
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Jing Lu [Fri, 30 Jun 2017 06:49:43 +0000 (06:49 +0000)]
Merge "Change prepareYardstickEnv to prepare_env and add log info"
JingLu5 [Fri, 30 Jun 2017 06:27:23 +0000 (06:27 +0000)]
Use "OS_INSECURE" variable as the insecure mode indicator
Now we use "OS_CACERT" as the insecure mode indicator, it is better to use "OS_INSECURE".
Change-Id: I1406193e27510390b4b8fd8f4751d8361560172f
Signed-off-by: JingLu5 <lvjing5@huawei.com>
chenjiankun [Fri, 30 Jun 2017 02:32:55 +0000 (02:32 +0000)]
Change prepareYardstickEnv to prepare_env and add log info
JIRA: YARDSTICK-697
Currently the action in env like prepareYardstickEnv,
createGrafanaContainer, createInfluxDBContainer, this is not python style.
So I do some change:
prepareYardstickEnv->prepare_env
createGrafanaContainer->create_grafana
createInfluxDBContainer->create_influxdb
And also add some log info in env_action.
Change-Id: Ia91576b975f3de76b96e312779fda4911e7cac24
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 29 Jun 2017 03:38:04 +0000 (03:38 +0000)]
Add API to show test case documentation
JIRA: YARDSTICK-694
We need API to show test case documentation.
API: /yardstick/testcases/<testcase_name>/docs
method: GET
example:
http://192.168.131.2:8888/yardstick/testcases/opnfv_yardstick_tc002/docs
Change-Id: Ib8d591f0ff5f91c4d0a740539727ec73ddd86249
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jing Lu [Fri, 30 Jun 2017 02:00:32 +0000 (02:00 +0000)]
Merge "Bugfix: remove test.dbf file in recovery script"
zshi [Fri, 30 Jun 2017 01:40:58 +0000 (09:40 +0800)]
Bugfix: remove test.dbf file in recovery script
JIRA: YARDSTICK-696
Change-Id: I09b73079ff828c43040723794115bb07f74242e8
Signed-off-by: zshi <zshi@redhat.com>
Ross Brattain [Wed, 1 Mar 2017 00:36:57 +0000 (16:36 -0800)]
show actual exceptions in task.py
Change-Id: I40bf255ccb844ffa0a151752579b552a285f5e18
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Rex Lee [Thu, 29 Jun 2017 12:07:27 +0000 (12:07 +0000)]
Merge "Call core code directly in the API of run test case"
chenjiankun [Mon, 26 Jun 2017 09:46:24 +0000 (09:46 +0000)]
Call core code directly in the API of run test case
JIRA: YARDSTICK-688
We need to call core code directly in the API of runTestCase.
It would be more stable.
Change-Id: I431a85ded7cd3b20da0462f947c25d91bb99decd
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 29 Jun 2017 02:42:56 +0000 (02:42 +0000)]
Add API to update pod yaml file
JIRA: YARDSTICK-693
Apart from API to upload pod yaml file, we also need API to update pod
file.
API: /yardstick/env/action
method: POST
param:
{
'action': 'update_pod_file',
'args': {
'pod': { pod content }
}
}
Change-Id: I0ba168612ccc2e43c531e4b9253cf72e5c745297
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Rex Lee [Tue, 27 Jun 2017 07:20:33 +0000 (07:20 +0000)]
Merge "Add API to update hosts info about SUT"
JingLu5 [Tue, 27 Jun 2017 03:34:49 +0000 (03:34 +0000)]
Set TEST_DB_URL for storperf
JIRA: YARDSTICK-692
add the URL for the test results DB to the storperd_admin-rc
TEST_DB_URL=http://testresults.opnfv.org/test/api/v1
Also, add metadata JSON to the POST to /job API when creating the job:
Change-Id: Ib950f759d80e707bc49d9015bc120d985051f131
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Ross Brattain [Mon, 26 Jun 2017 08:53:27 +0000 (08:53 +0000)]
Merge "increase line length to 99"
JingLu5 [Mon, 26 Jun 2017 03:18:56 +0000 (03:18 +0000)]
Bugfix: remove double quote around SECURE variable
JIRA: YARDSTICK-689
This patch remove the double quote around the SECURE varibale as it may cause the fowllowing error:
$ openstack "${SECURE}" image list
openstack: ' image list' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
access token create
address scope create
address scope delete
address scope list
address scope set
address scope show
aggregate add host
aggregate create
...
Change-Id: Ibb22e85b3dd89b0e3b62821bd5ebe4f155886ffc
Signed-off-by: JingLu5 <lvjing5@huawei.com>
rexlee8776 [Mon, 5 Jun 2017 20:31:02 +0000 (20:31 +0000)]
Add API to update hosts info about SUT
JIRA: YARDSTICK-674
For some SUT which use domain name as endpoint and AUTH_URL, yardstick
restAPI should support to add "ip domain_name" info into /etc/hosts so
that it can use the ip_address to access the SUT.
api: /yardstick/env/action
description: update hosts info for domain name
method: POST
parameters:
{
"action": "update_hosts",
"args": {"opnfv.org": "1.1.1.1",
"openstack.org": "2.2.2.2"
}
}
Change-Id: Iaca9c846f02b1d53e2408d6a21f9201b599717d4
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Jing Lu [Sat, 24 Jun 2017 09:17:51 +0000 (09:17 +0000)]
Merge "Yardstick output format unified"
chenjiankun [Thu, 22 Jun 2017 13:00:40 +0000 (13:00 +0000)]
Add API to upload pod.yaml file
JIRA: YARDSTICK-687
We need a API to upload a pod.yaml file to /etc/yardstick/pod.yaml.
API: /yardstick/env/action
method: POST
param:
{
'action': 'upload_pod_file',
'file': file object
}
Change-Id: I3d25df364da10aaf34f995e948e1704235a40f6f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jing Lu [Sat, 24 Jun 2017 03:09:21 +0000 (03:09 +0000)]
Merge "Improve Yardstick user-guide"
chenjiankun [Tue, 16 May 2017 01:59:06 +0000 (01:59 +0000)]
Add API to update openrc variable
JIRA: YARDSTICK-651
Currently we source openrc variable manually or use yardstick env
prepare to get openrc file.
We need API to update the openrc variable.
api: /yardstick/env/action
description: source environment variable
method: POST
parameters:
{
'action': 'update_openrc',
'args':{
'openrc': {
'OS_USERNAME': 'admin',
'OS_PASSWORD': 'console',
'OS_TENANT_NAME': 'admin',
'OS_AUTH_URL': 'http://192.168.131.222:5000/v2.0',
'EXTERNAL_NETWORK': 'ext-net'
}
}
}
Change-Id: I680a7249116c8ff0c1a9e7d5089538d935240c80
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Fri, 23 Jun 2017 04:11:24 +0000 (04:11 +0000)]
Merge "improve git code with devstack functions"
JingLu5 [Fri, 23 Jun 2017 03:13:04 +0000 (03:13 +0000)]
Improve Yardstick user-guide
This patch adds a short description on how to use the "yardstick env prepare"
command in a Non-OPNFV installer environtment.
Change-Id: Idf54bf5318499d2b129a1445e0758e351945e755
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Ross Brattain [Thu, 22 Jun 2017 20:51:25 +0000 (20:51 +0000)]
Merge "auto restart influxdb and grafana support"
Ross Brattain [Thu, 22 Jun 2017 05:49:25 +0000 (22:49 -0700)]
improve git code with devstack functions
if we aren't re-cloning we still need to make sure
we update the branch/tag/commit to the version from the remote
so we need to fetch and then checkout again
it is more complicated. Dockerfile does a shallow
clone, so we don't get all the remote ref information.
To clone a random remote commit id we have to unshallow
Change-Id: If15f504b6ff2cfdfc8894fd3b37e687a19616714
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 22 Jun 2017 15:10:21 +0000 (15:10 +0000)]
Merge "Acquire NSB specific data from Heat."
Kubi [Thu, 22 Jun 2017 13:07:01 +0000 (13:07 +0000)]
Merge "HA testcase improvement"
Kubi [Thu, 22 Jun 2017 12:58:45 +0000 (12:58 +0000)]
Merge "bugfix: storperf timeout in ci"
JingLu5 [Wed, 21 Jun 2017 10:07:41 +0000 (10:07 +0000)]
HA testcase improvement
This patch improve HA test case in the following aspects:
1. the "GeneralHA" type now will check if the target service process in the controller node.
2. support ignore server certificate
3. add debug log for recovering service failed
4. improve method to kill keystone process
Change-Id: I9ae7ab54391fe41d5d7f3e4951a7ac2e3ba75968
Signed-off-by: JingLu5 <lvjing5@huawei.com>
rexlee8776 [Thu, 22 Jun 2017 12:14:38 +0000 (12:14 +0000)]
auto restart influxdb and grafana support
JIRA: YARDSTICK-686
Change-Id: If486df4d825f9d0b03eeaa77716cc2855e2f1bd0
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
rexlee8776 [Mon, 19 Jun 2017 06:53:12 +0000 (06:53 +0000)]
bugfix: storperf timeout in ci
JIRA: YARDSTICK-680
Change-Id: Ie405187b8ab085a9e4f40a7e7e7e661c94e83630
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
chenjiankun [Wed, 24 May 2017 07:22:51 +0000 (07:22 +0000)]
Yardstick output format unified
JIRA: YARDSTICK-658
Currently the yardstick have three dispatcher: file, influxdb, mongodb.
(influxdb using API to get result and mongodb using testAPI to get result)
But their output format is different. It is hard to use.
In this patch, make all dispatchers using the same data source.
And make the output format of file and influxdb unified.
As for mongodb, since it is related to testAPI, so I make it push data
every test case.
The unified output format is:
http://paste.openstack.org/show/610125/
Change-Id: I854ac4f03e6f904469b07b0c924c7d850545ae5b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Thu, 22 Jun 2017 04:17:11 +0000 (04:17 +0000)]
Merge "update requirements.txt for OpenStack Ocata"
Ross Brattain [Thu, 22 Jun 2017 02:16:39 +0000 (02:16 +0000)]
Merge "ping: don't split if target_vm is a dict"
Ross Brattain [Thu, 22 Jun 2017 01:51:45 +0000 (01:51 +0000)]
Merge "cleanup: remove fuel plugin since fuel@opnfv uses mcp"
Jing Lu [Thu, 22 Jun 2017 01:50:00 +0000 (01:50 +0000)]
Merge "temp freeze releng version for stable/danube workaround"
Ross Brattain [Thu, 22 Jun 2017 01:00:22 +0000 (18:00 -0700)]
increase line length to 99
When line length is 79 I have to spend too much
time manually wrapping my code into unreadable junk
I can't use expressive tuple unpacking and I start
shortening variables and other bad tricks to decrease
the line length.
We have too many levels of indent to manage with 79
class:
def:
if:
for:
etc.
Change-Id: Ib2ce9cf887f9880c46815822c8d0e1a7806e53ca
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Wed, 21 Jun 2017 09:24:38 +0000 (09:24 +0000)]
Merge "heat: use dict literal in init_template"
Ross Brattain [Tue, 20 Jun 2017 15:29:28 +0000 (08:29 -0700)]
temp freeze releng version for stable/danube workaround
releng doesn't have a branch, so we need to freeze
the releng version.
There is an issue with releng fetch_os_creds.sh change
/home/opnfv/repos/releng/utils/fetch_os_creds.sh: line 75: BRANCH:
unbound variable
So we need to revert back to commit before this change
Change-Id: Ie8b0f68879a873aab584aa32b576d8b5ba602a13
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Mon, 22 May 2017 08:08:39 +0000 (01:08 -0700)]
ping: don't split if target_vm is a dict
If we run sample/ping-hot.yaml, it will encounter an AttributeError, log
see below:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/runners/duration.py",
line 69, in _worker_process
method(data)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/networking/ping.py",
line 94, in run
target_vm_name = target_vm.split('.')[0]
AttributeError: 'dict' object has no attribute 'split'
Because here host and target will be a dict
JIRA: YARDSTICK-561
Change-Id: I4b7628bf20050d6d516a80efe3785f750d27c05e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Edward MacGillivray [Mon, 12 Jun 2017 18:06:45 +0000 (11:06 -0700)]
Acquire NSB specific data from Heat.
First we add mac_address, subnet_cidr to Heat template outputs
Then we convert those into a form for NSB and add vld_id.
NSB also requires PCI Bus ID, kernel driver
and dpdk_port_num. We get this by ssh-ing
into instance and dumping sysfs
We also need to fix allow for ssh key auth,
and implement relative path file loading
so NSB can find all its YAML files
JIRA: YARDSTICK-580
Change history:
don't hide heat create tracebacks we need tracebacks for debug
vnf_generic: add task_path to scenario so we can load relative paths
for vnf_generic we want to be able to load yaml relative to the
task path
For example:
traffic_profile: ../../traffic_profiles/fixed.yaml
topology: ping_tg_topology.yaml # TODO: look in relative path where the tc.yaml is found
These need to be relative to samples/vnf_samples/nsut/ping/tc_ping_heat_context.yaml
Add a scenario["task_path"] entry
heat: log actual exception
vnf_generic: replace list with set and iterate over values()
some general refactors to remove redundact lookups and
type conversions
heat: provide mac_address, device_id and network_id from outputs
We may need more information to dynamically
determine test topology.
Towards this end return more info in the heat template.
We can return mac_address, device_id and network_id.
Once we have this info we can add it to the context_cfg
as an interfaces dict.
add sample vnf ping multi-network test
this test requires 3 network, one for mgmt
and the other two for NSB traffic tests
We have to make sure we don't use DPDK
on mgmt interface because DPDK unbinds
the driver
heat: convert networks to OrderedDict
so we can lookups networks as well as
iterate over them in consisitent order
heat: and vld_id to networks for vnf_generic
vnf_generic uses vld_id Virtual Link Descriptor ID
to identify interfaces
Add the key to the networks dict
and store in Networks object
implement relative path file loading in vnf_generic
in multiple places we need to load a file
relative to the task path, so add
open_relative_file_path
and modify load_vnf_model to include the scenario_cfg
parameter so we have access to task_path
DRAFT: heat timeout support
Heat stack in CI job failed due to some Nova issue.
But then apparently yardstick kept running and took 180mins to timeout
https://build.opnfv.org/ci/view/bottlenecks/job/bottlenecks-compass-posca_stress_ping-baremetal-daily-master/16/console
We can add a Heat create timeout and fail faster if there is an error.
The question is how long should we wait for a Heat stack to deploy. We
can set a default and allow override in the heat context config, if
users make complicated stacks
heat: get netmask and gateway from heat outputs
we have do some tricky business with finding
the subnet cidr and converting it into netmask
vnf_generic: get vpci, driver and dpdk_port_num
use a big old find command to dump all the sysfs
netdev info nicely. This was re-used from autotest FCoE tests.
r"""find /sys/devices/pci* -type d -name net -exec sh -c '{ grep -sH ^ \
+$1/ifindex $1/address $1/operstate $1/device/vendor $1/device/device \
+$1/device/subsystem_vendor $1/device/subsystem_device ; \
+printf "%s/driver:" $1 ; basename $(readlink -s $1/device/driver); } \
+' sh \{\}/* \;
This finds all PCI devices that are network devices, then
dumps all the relevant info using /bin/sh.
Then we parse this into a 'netdevs' dict inside the node_dict
and also convert into VNF fields we need.
vnf_generic: set node name for kpis
node is a dict, so we have to use node_name
vnfdgen: we CANNOT use TaskTemplate.render
because it does not allow for missing variables, we need to allow
password for key_filename to be undefined
remove default ssh password hack, once rendering is fixed
add new example tc_external_ping_heat_context
Change-Id: If1fe0c1a2ab0a5be17e40790a66f28f706fa44d6
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Edward MacGillivray <edward.s.macgillivray@intel.com>
Alexandru Nemes [Mon, 19 Jun 2017 09:04:56 +0000 (12:04 +0300)]
Configure Yardstick flavor to give more RAM to ARM instances
Yardstick TC005 fails with errors that indicate low memory conditions:
"fio: error while loading shared libraries:
librbd.so.1: cannot map zero-fill pages"
Changing the yardstick flavor to give 1024MB of RAM instead of 512MB
made this test case work.
JIRA: ARMBAND-275
Change-Id: I2193802082c28edb20004964d2df3780eb5eccb7
Signed-off-by: Alexandru Nemes <alexandru.nemes@enea.com>
Ross Brattain [Mon, 13 Feb 2017 19:31:49 +0000 (11:31 -0800)]
heat: use dict literal in init_template
prefer dict literals when possible over increment assignment.
Change-Id: Ia40bbc04eed61feb036a1e9ec3b3110b03c095e1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Guo Ruijing [Fri, 16 Jun 2017 01:10:19 +0000 (18:10 -0700)]
cleanup: remove fuel plugin since fuel@opnfv uses mcp
Change-Id: Ic9fb9db5c5af517cec1e60740ce5a8fe0572c5bf
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Ross Brattain [Thu, 8 Jun 2017 09:58:42 +0000 (09:58 +0000)]
Merge "Fix configuration error in TC025"
Ross Brattain [Thu, 8 Jun 2017 09:56:02 +0000 (09:56 +0000)]
Merge "Adapt lmbench scripts for aarch64 nodes"
chenjiankun [Wed, 7 Jun 2017 12:33:31 +0000 (12:33 +0000)]
Bugfix: load_image will move image file if image already exist in /home/opnfv/images
JIRA: YARDSTICK-678
Currently if yardstick-image exist in /home/opnfv/images, load_image.sh
script will not build image, but this script will remove it. We should not
remove the image file which user offer.
Change-Id: I74ff6717606ff1dd9eacde4142e62d3923394baa
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
tjuyinkanglin [Tue, 23 May 2017 06:05:14 +0000 (14:05 +0800)]
Fix configuration error in TC025
JIRA: YARDSTICK-647
Change-Id: Idc2a87d20a631c37f151cc945de155ef8855e9c3
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Alexandru Nemes [Fri, 2 Jun 2017 10:26:30 +0000 (13:26 +0300)]
Adapt lmbench scripts for aarch64 nodes
LMBench shell scripts were invoking x86_64 executables.
This made them fail when executed on aarch64 nodes.
Added architecture detection and proper command call.
JIRA: ARMBAND-268
Change-Id: I8c9e87158631f7f5479adc2fda9558f9f7e54406
Signed-off-by: Alexandru Nemes <alexandru.nemes@enea.com>