summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-08-02Add modify output file functionliyin2-8/+8
JIRA: BOTTLENECK-176 Add function which could modify outfile name. Also a bug fix about yardstick docker version should be danube.3.1 Change-Id: I0e0bb5b26cae44358311d17932c698505560974c Signed-off-by: liyin <liyin11@huawei.com>
2017-08-02Merge "Add yardstick danube3.1 support."Yu Yang (Gabriel)1-1/+1
2017-08-02Add yardstick danube3.1 support.Ace Lee1-1/+1
JIRA: BOTTLENECK-173 This patch will add a result handle for Yardstick danube This is only for bottlenecks danube to use. This will change time to 2 min to wait for Yardstick result back Change-Id: Icbd9d89f3e3816df947eaf6f70a12c86f74a2812 Signed-off-by: Ace Lee <liyin11@huawei.com>
2017-08-02Bottlenecks testcase rebuildAce Lee1-2/+8
JIRA: BOTTLENECK-175 After this patch, Bottlenecks will try to find the stress of the openstack system. we try to create 20 stacks one time. And 20 stacks the other time. we will try to find if openstack will pass threshhold twice. This patch only affact latest version Change-Id: I6146cf5c6fe0ac4968337cc36e07f715b64191d0 Signed-off-by: Ace Lee <liyin11@huawei.com>
2017-08-01Bottlenecks Https supportAce Lee1-15/+8
JIRA: BOTTLENECK-174 Bottlenecks Https Support After this patch, you could use https method to run Bottlenecks Motion that if you want to use https, you need to write down the cacert at Bottlenecks /tmp/ dir Change-Id: I86fda57c76179d52e7d4c06c7289e2fcc15a4bc0 Signed-off-by: Ace Lee <liyin11@huawei.com>
2017-07-20Bug fix: Bottlenecks sometimes deadlockAce Lee1-1/+1
JIRA: BOTTLENECK-173 This patch will change the way to call multithreading. And change some encoding error about Yardstick config Change-Id: I04803bff6acaad1089d180b104652049f1f0a485 Signed-off-by: Ace Lee <liyin11@huawei.com>
2017-07-18Bug fix: fit Yardstick 3.1 version.liyin1-1/+11
JIRA: BOTTLENECK-173 This patch will add a file to create some yardstick conf, Yardstick will use this file to manage output file type. Change-Id: I1d265af9f0b9b5132dc63c4d6d95d5bc194c7ff6 Signed-off-by: liyin <liyin11@huawei.com>
2017-07-17Bug fix of Bottlenecks can't use CLIliyin1-1/+1
JIRA: BOTTLENECK-171 Bug fix of Bottlenecks can't use CLI to start test. Some docker-compose function delete to fit elk docker support. After this patch you could use bottlenecks testcase run posca_factor_ping to start this test. you also need to put the rc file to bottlenecks docker. Change-Id: I340e31185a499c81f9595a902df89d8f0ddf0cd3 Signed-off-by: liyin <liyin11@huawei.com>
2017-07-14Add frame support of elk one docker supportliyin4-18/+77
JIRA: BOTTLENECK-171 Add support of Bottlenecks docker frame refact, After this patch we will provide the ability of several installer. Add Yardstick_TAG to adjust yardstick docker version Change-Id: Ib431f8acf4a76b59f9d5e8783bcc7d2e5be208ae Signed-off-by: liyin <liyin11@huawei.com>
2017-07-12Add docker container manage functionliyin1-0/+91
JIRA: BOTTLENECK-171 This patch will add a file to create some function, Bottlenecks will use those function to manage docker. for example: docker ip address , create docker ,remove docker. Change-Id: I60e70ed9c6c7805e85b183ea3b19295fce68f657 Signed-off-by: liyin <liyin11@huawei.com>
2017-05-25Add reporting to MongoDByuyang1-1/+1
JIRA: BOTTLENECK-158 Add reporting function to community MongoDB Change-Id: Idebc191b20ad238dbdd129ce38131b79e7133e35 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-05-10Delete testcase of rubbos and vstf.liyin21-963/+0
JIRA:BOTTLENECK-167 This patch will delete vstf and rubbos testcase code. Include some testcase config file, if there will be someone who want to use this testcase maybe B or C version code will contain those testcase. if you use the D version code to run this two testcase we will info you that: Rubbos testsuite is not updating anymore. This entrance for running Rubbos within Bottlenecks is no longer supported. Change-Id: I04e4042ff3998b3696df2ed47a9ffab6f1620ec3 Signed-off-by: liyin <liyin11@huawei.com>
2017-04-11Fix code style issues for specificed pathyuyang1-3/+9
JIRA: BOTTLENECK-100 Fix code syle issues for the path flake8 specified before flake8 check merged into CI pipeline. Change-Id: Iee59bada206fafd4740023e90d08a4b4a7a030db Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-03-28bugfix: fix bugs for running 'teststory run'yuyang1-1/+1
JIRA: BOTTLENECK-144 utils/parser.py:56 has incorrect var:cls which cause pass more var to testcase_read function. Change-Id: I2d4b93f95d19a205e537515529746f6d9e13fe2c Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-03-09Add liscense to file headersyuyang23-2110/+9
JIRA: BOTTLENECK-133 Some Yaml, XML and __init__.py file do not have liscense headers. This patch is to add headers to those files or delete those are deprecated. Change-Id: Ie059b1f1879eb420eec171f96985247510c74642 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-02-21quota limit for posca_stress_pingliyin2-2/+78
JIRA:BOTTLENECK-140 Those code will update an action of quota. Before out test begin we will make quota no limit. so we could do stress test. Those quota limit will change openstack forever. maybe will create damage for openstack. Change-Id: I0a6a06c6c303589881cb2ab7b754213ecf1a845f Signed-off-by: liyin <liyin11@huawei.com>
2017-02-20stress_test_dashboard_codeliyin1-2/+19
JIRA:BOTTLENECK-138 Those codes will create dashboard for stress test. And we have fixed a bug, that we will increace env prepare in this patch besides: we also add some code of how to yardstick api. Change-Id: I64bb249ee0df9fe37e998a784ba346719bf25197 Signed-off-by: liyin <liyin11@huawei.com>
2017-02-17stress test of ping testcaseliyin1-1/+1
JIRA:BOTTLENECK-136 those code will add a new testcase: posca_stress_ping This will use docker python client to realize the fountion of calling yardstick to test. And yardstick will create several VM pairs to test. Because of the limites of quotas, we now create 2,5,10 VM pairs. Change-Id: I096250c547cd598c7c632a884b31d81c2be125f8 Signed-off-by: liyin <liyin11@huawei.com>
2017-02-14Dashboard and output file code reconstructionliyin1-0/+15
JIRA:BOTTLENECK-134 Those code will change the way to create dashboard. And dashboard as a spare function to show data. And we add log system to dashboard creation. The output file is created anyway. Change-Id: Ia3c4d5a8ada27005702e3eed08757f61610da22f Signed-off-by: liyin <liyin11@huawei.com>
2017-02-09Add POSCA jenkins job supportyuyang1-2/+1
JIRA: BOTTLENECK-128 This patch is to make the POSCA testsuite could be built automatically for OPNFV CI job. Change-Id: I21d7fd553ce3591aea3391a33fe0a7b8579b57d4 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2017-02-09Log_dir bug fix&Add function of test_ip initliyin2-3/+14
JIRA:BOTTLENECK-129 This patch fix the error of log_dir can't be found. And change several thing: 1.Add if config don't have test_ip, it will use local:8888 as test ip. 2.Fix the bug in setup.py. 3.Add parser init to logger file. Change-Id: I808c69e2b2ff3c04f271cc7f3e14e1ab406a4d1b Signed-off-by: liyin <liyin11@huawei.com>
2017-02-07Bottlenecks stack config parser.liyin2-3/+213
JIRA:BOTTLENECK-126 realize the function of parsering stack config. include the function all the jira mationed. it's important for stack creating. this patch also include manager.py. This file modify some file such like template intial. Change-Id: Iaa6fdbde6bf9cb1ff9875d47268440dfe70ecc49 Signed-off-by: liyin <liyin11@huawei.com>
2017-02-07Merge "Bottlenecks POSCA testing code reconstruction"Yu Yang (Gabriel)4-9/+173
2017-02-07Bottlenecks POSCA testing code reconstructionliyin4-9/+173
JIRA:BOTTLENECK-103 This is the foundation of adding stack samples. This code change a lot code. but it's a basic. Those code will be changed in the furture. Change-Id: I8d5bbb9cc401b1aaac54ec4dffc4c005a42d17ac Signed-off-by: liyin <liyin11@huawei.com>
2017-01-20bottlenecks ssh to VM by pythonliyin2-0/+354
JIRA:BOTTLENECK-127 This file is a copy of yardstick. This file have been tested. All function could be used in bottlenecks VM. This include some function about how to excute commonds to VM. This will be used in Bottlenecks functional testing. Change-Id: I123a6753d0b7855948ae9bf7bedc245f90c4a3b6 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-17Modify utils/ code into PEP8 styleliyin3-4/+3
JIRA: BOTTLENECK-100 Modify all the code in the utils folder into PEP8 style. Using more standard way to realize our function. Change-Id: Ie75c57f7fdd2a9d03849c3cb240918a6779d6be9 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-17Merge "Bottlenecks stack environment prepare"Yu Yang (Gabriel)6-200/+141
2017-01-17Merge "bottlenecks create stack image"Yu Yang (Gabriel)2-0/+215
2017-01-13bottlenecks create stack imageliyin2-0/+215
JIRA:BOTTLENECK-125 This code incloud the actions below: 1)download unbuntu image. 2)modify this image bu mount it. 3)pack all files into a new image. those two files are copied from yardstick and slightly modified. Change-Id: I99c1ab266202767717906aed544d7e96cfeaa1a3 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-12Merge "Modify utils/ code into PEP8 style"Yu Yang (Gabriel)8-16/+26
2017-01-12Modify utils/ code into PEP8 styleliyin8-16/+26
JIRA: BOTTLENECK-100 Modify all the code in the utils folder into PEP8 style. Using more standard way to realize our function. Change-Id: I965c507390adcb4404d33710f783b22241542890 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-12Bottlenecks stack environment prepareliyin6-200/+141
JIRA: BOTTLENECK-124 This code is for Bottlenecks to have a common way to prepare stack environment. those action are divided into three part: fetch os file, source file and adding ext-net to source file. those function also need change other file like fetch_os_creds.sh. And add some config to config file. remove parser file logging function. This code is relying on the patch: Modify utils/ code into PEP8 style Change-Id: I54405776b6dc3f5fb939e511c96963a9c1624938 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-10Bottlenecks frame support parser configliyin1-0/+56
JIRA: BOTTLENECK-123 This code is for Bottlenecks to have a common way to parser config. those config are divided into three part: common config, test config and stack config. those function could build a frame of config read. we will modify it after a few times. Change-Id: I7d3ddc2c8af3043dc9cd89b519e506eca6a03514 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-09Merge "Bottlenecks frame support log information"Yu Yang (Gabriel)1-0/+59
2017-01-09Bottlenecks frame support log informationliyin1-0/+59
JIRA: BOTTLENECK-122 This code is for Bottlenecks to have a common way to export log information the way to use it is: xxx = Logger.(__name__).getLogger() xxx.info('xxxxxx') It will only out info if you don't set DEBUG=true. the default log file located '/tmp/bottlenecks.log' we will add configuring log file function when config funtion complate. Change-Id: I11cdc8a27f657736c3ec0e0bc1195f0ce0a2fce4 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-09Merge "Bottlenecks frame support stack create"Yu Yang (Gabriel)2-0/+16
2017-01-04Bottlenecks frame support stack createliyin2-0/+16
JIRA: BOTTLENECK-120 add the common.py,manager.py,template.py, could use the function import utils.infra_setup.heat.x then the code could import the package. Change-Id: I7bbd115bd13d87c4f43b7e4bb35e6a6bf8465bc8 Signed-off-by: liyin <liyin11@huawei.com>
2017-01-04bottlenecks openstack Newton supportliyin4-580/+329
JIRA: BOTTLENECK-119 Change the file of template.py manager.py and common.py file This change helps Bottlenecks project support Newton. template.py support stack operation. manager.py support nova and glance operation. common.py support some operations of openstack Newton. Change-Id: Ibee110a2b7918c80b2651bb86a9fb7160414e842 Signed-off-by: liyin <liyin11@huawei.com>
2016-10-01autopep8 fix for flake8yuyang9-50/+88
JIRA: BOTTLENECK-101 Using autopep8 to fix the python style scanned by flake8 Change-Id: I74bf28ed4d999dac3dd36e9101f099c9853a49b6 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
2016-09-21delete private key for securityMatthewLi3-97/+1
Change-Id: Ibb53a25d912fd96c93b25e39ee8da8b0977cf071 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-06-13bugfix for image cleanup and python script calling by subprocess shellMatthewLi1-63/+0
JIRA: BOTTLENECK-70 log is shown in https://build.opnfv.org/ci/view/bottlenecks/job/bottlenecks-compass-vstf-virtual-daily-master/9/console and https://build.opnfv.org/ci/view/bottlenecks/job/bottlenecks-compass-vstf-virtual-daily-master/10/console for image names, we use bottlenecks_<suite name>_<option> for vstf_collector.py, it is used for transfer test result to community dashboard, it works for B release, for C release, we should adapt it later, now we only fix its path error. Change-Id: Iad2bf39837d02aa1e5ea8a323411d98082135882 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-06-12bugfix for vstf stack nameMatthewLi2-4/+4
JIRA: BOTTLENECK-70 Change-Id: I768be0a0b30df266f6f130bf616d6d808cf1849c Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-05-10inject dns_alt_names into puppet.confwangyaoguang2-0/+2
There were cert issues when puppet agents use old hostname 'rubbos-control'. This can be eliminated by adding dns-alt_names in puppet.conf JIRA: BOTTLENECK-75 Change-Id: Id483ca2792b8faef6ab87788371e60ce8e390b5e Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-28install puppet service when creating OS instanceswangyaoguang2-0/+27
JIRA: BOTTLENECKS-73 Change-Id: I2500c6c81aa154cb8b025e3b425c4362fa798a18 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-26read rubbos parameters from a config filewangyaoguang1-1/+0
JIRA: BOTTLENECK-68 Change-Id: I0387532f2e8f1d4f03689a42efa7fe745a303eb8 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-20Merge "remove deprecated tools"Jun Li6-203/+0
2016-04-19remove deprecated toolswangyaoguang6-203/+0
This tool is not general enough, and it will be replaced. JIAR: BOTTLENECK-57 Change-Id: I9121f40883090adcfab3b2157aee9212f8964d38 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-19Add a common tool for creating libvirt vms w/o puppetwangyaoguang8-0/+424
1.It requires two argumets, input config and output folder. 2.It can bring libvirt vms with puppet and trusted ssh keys. 3.It can also bring normal libvirt vms. JIRA: BOTTLENECK-57 Change-Id: I47fd61c328b45d03b4d0daf25fd9e4fe79303f88 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-15improve data processing script for rubboswangyaoguang2-22/+69
JIRA: BOTTLENECK-63 Change-Id: Iddcb8f354fcf916b3057f677a1f7b0149b727f33 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
2016-04-08add unittest for basic heat api management and template creation functionsMatthewLi5-0/+1000
JIRA: BOTTLENECK-58 Change-Id: Ie563f3f5e42f43bc9ac379b56bed23f33d96791d Signed-off-by: MatthewLi <matthew.lijun@huawei.com>