summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2018-03-05Allow monit config script to use custom hostnameagardner1-7/+12
we need to use this script for connecting labs.opnfv.org machines to the sandbox.opnfv.org adds optional -l swtich Change-Id: I620c963841a2ff39a8c08565cb474f7fdb833c74 Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-03-05Add start delay to monit for jnlp daemonagardner1-2/+8
delay the first check by 4-minutes This is a better solution thant check process every 2 cycles check process every 2 cycles delays initial startup by 2 cycles delay check gives the script time to spawn, as the wget slave.jar takes some time from china. Change-Id: I8066e5b65efc41aaa67ee0f6ab8ee2c1aa86a67c Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-28[Functest] Run k8s tests on JoidLinda Wang1-2/+4
Change-Id: I43ba42b2181b7f89a3f551a12eed4ab42d89cbee Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-02-23Fix naming for ansible build server stuffagardner2-1/+1
Botched that last change Change-Id: If44039052332738a575d62c57faae95462b489a8 Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-23include vars was mis named - build server ansibleagardner1-1/+1
fix name Change-Id: I0b58dbad8bb0618623e44ffa4049fccdd80b5547 Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-23Fix slave monitor job.agardner1-55/+46
must be run on the same builder each time. output goes to /tmp/ its just a textfile per slave. hasetbin stopped working, so I turend off the silly graphs. Change-Id: I7300710c338f74e5426ab3cd2e2707ac2553f982 Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-21Move generation of artifacts.opnfv.org to jenkinsagardner1-0/+162
Move generation of artifacts.opnfv.org/index.html and sub pages into a jenkins job. Script was run on cron on master previously. run on lf-build2 Run job once per hour (it takes a long time to run) Block if job is already running Change-Id: Icc03cac61a802e036e4af8a9b9e3a244e147abea Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-16jenkins-jnlp-connect.sh takes time to launchagardner1-2/+2
wget --timestamping https://build.opnfv.org/ci/jnlpJars/slave.jar && true this takes time, especially from china. Tell monit to back off while waiting for the pid file to be created Change-Id: I02327323d50d0a4a8b379535d8da84a20348ba6f Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-05Ansible Playbook to install build server depsagardner7-0/+248
This playbook has been tested in centos and ubuntu on Arm and x86_64 first: install ansible then: ansible-playbook -i inventory.ini main.yml What it does: installs on centos or ubuntu arm or x86_64 installs system deps with the package manager. and python libs with pip. installs docker https://download.docker.com installs docker-compose from distribution repo Change-Id: I3853cd04d0e6c7270ea068b9e1fba1a240a0652e Signed-off-by: agardner <agardner@linuxfoundation.org>
2018-02-01[Functest] Run k8s tests on CompassLinda Wang1-0/+63
Change-Id: I8e88ab0598f43be8d0c9c4ad199dba91c1561f13 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-12-22Prepare integration of daisy and dovetailAlex Yang1-0/+3
JARA: DAISY-76 1. add daisy adapter in releng utils and modules 2. add daisy adapter in dovetail jjb script 3. support id_dsa as ssh key Change-Id: I15a1c0cfcc17ae1fe6b7020f674b8bbbb72f4a7a Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-12-12Allow intel-pod18 to push results to the DBJose Lausuch1-1/+1
Change-Id: I54447764996a4e2bb303a9e71cc525e999c1bdd5 Signed-off-by: Jose Lausuch <jalausuch@suse.com>
2017-12-01allow zte-pod3 pushing results to artifactsSerenaFeng1-1/+1
Change-Id: I72d93cc6a6e73b9fd91b3a1777dbf0dfe25a0b22 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-11-21Merge "Remove 'utils/test' Directory and update INFO"Trevor Bramwell748-131825/+0
2017-11-20Allow pod ARM-POD6 to push logs to the artifactsDelia Popescu1-1/+1
Change-Id: I4a637249a50b5c8e3fc344493622f85c3583a2f4 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2017-11-13Merge "Remove Artifacts JSON Job"Trevor Bramwell1-232/+0
2017-11-10Remove 'utils/test' Directory and update INFOTrevor Bramwell748-131825/+0
utils/test has been migrated to the releng-testresults repo Change-Id: If14a30e6abed1424d1e00b0fae048b7d869ec99b Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-11-10Remove Artifacts JSON JobTrevor Bramwell1-232/+0
As far as I know the site that consumed this resource was never actually published, and given this runs frequently on master, removing it should save resources. Change-Id: I383fcffcef98e0e12a38d15dcb1204419283b833 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-11-10Modify the fuel deployment type judgement in fetch-os_creds.shwu.zhihui1-1/+1
The BUILD_TAG on ZTE baremetal PODs don't include the word "baremetal".[1] Line 117 can't be correctly executed. Use a negative checking instead. [1] https://build.opnfv.org/ci/job/functest-fuel-zte-pod1-daily-master/206/injectedEnvVars/ Change-Id: I1a36494768e0172bcf6a016fd8f2524854c9b876 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-11-03Merge "add simple e2e tests for PodsCotroller"Serena Feng6-0/+395
2017-11-01add simple e2e tests for PodsCotrollerthuva46-0/+395
Change-Id: I9baa04ff062f36569c1e143014239931de64cf32 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-10-31remove components out side of 3rd_partySerenaFeng19-0/+1
components are implemented by TestAPI team, they are not the third party code, put them under opnfv_testapi/ui directory Change-Id: Ia0f5e2afe4bcb12bcb74d3a8d78fb28fe1432bec Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-30Merge "divide resources into handlers and models"Serena Feng34-227/+106
2017-10-27divide resources into handlers and modelsSerenaFeng34-227/+106
divide resources into handlers&models put ui handlers into handlers directory put User into user_models.py Change-Id: I3d9e260097205213c3ea8d4eac08b9019e017f71 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-27add develop guide for testapiSerenaFeng13-5/+381
Change-Id: Iaa9c15092aafda2024f08c467eea2f3ab9cddd96 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-27bugfix: E722 do not use bare exceptSerenaFeng3-4/+4
new added pep8 check: https://build.opnfv.org/ci/job/testapi-verify-master/435/console Change-Id: I29c1ffbb534babf55ec2fe675001cc85b9e2e922 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-23Merge "allow authentication to be disabled"Serena Feng5-8/+18
2017-10-20bug fix: score calculation based on build_tagMorgan Richomme1-3/+4
we were used to count the number of PASS of the last 4 runs it works 80% of the cases 4 runs 4 OK => 3 points 3 OK => 3 points 2 OK => 2 points 1 OK => 1 point 0 => 0 it is different from the normal score calculation 4 OK => 3 points 3 OK => 2 points 2 OK => 2 points 1 OK => 1 point 0 => 0 Change-Id: Ib8df2c294e0036246176c181b7a7ac290ebea07e Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-10-20allow authentication to be disabledSerenaFeng5-8/+18
in local deployment situation, authentication can be disabled by setting authenticate=False of ui section in config.ini JIRA: RELENG-324 Change-Id: I9157d1723851feb12435033dbdd59035e3eb5777 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-20criteria field must be 'PASS/FAIL'SerenaFeng5-2/+33
criteria must be fix with 'PASS/FAIL', case insensitive or else, BADREQUEST exception will be raises JIRA: RELENG-327 Change-Id: Ic648b9d38937fc63924e42cfdf5345cdaa32e1ed Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-19Extend the Functest reporting black listMorgan Richomme1-0/+2
remove * tempest_full_parallel * rally_full Change-Id: Ibb944e7d32dc3cf0fc0b87a269c9e2f0327410e4 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-10-18Add new function to get indivial test score for aarch64Morgan Richomme3-7/+54
as architecture is not considered as a constraints (unlike scenario or installer) we need to work on the build tag to retrieve the data but it is not possible to use regex directly in the API so retrieveing the accurate results require extra processing * based on build_tag, filter the results properly per scenario * build a table build_tag time for a given scenario * keep only the last 4 results * evaluation criteria field It would simplified if architecture could be declared as a constraint then querying the resuls will not change and not require intermediate steps JIRA: FUNCTEST-880 Change-Id: Id4fe4f56babf0964d41e299905c804e0d837c3d7 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-10-16delete legacy update codeSerenaFeng14-610/+0
update directory was employed to update TestAPI before auto deployment is adopted, now it is useless and can be deleted. Change-Id: I4e5ae84e80879cd9f711dc1d02224ae4f5902e49 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-16fix yamllint verify failSerenaFeng3-1/+5
fail record: https://build.opnfv.org/ci/job/opnfv-yamllint-verify-master/1050/console Change-Id: Ic709b9a3d1d3642a3deebd930714a2ba2de22da6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-16Merge "Added license metadata to specify Apache-2.0"Serena Feng2-0/+2
2017-10-16Merge "Update table headers in the reporting page"Serena Feng1-3/+3
2017-10-13Added license metadata to specify Apache-2.0rpaik2-0/+2
Change-Id: Id2e6b148f896eee5122339e501c8604e74ef774c Signed-off-by: rpaik <rpaik@linuxfoundation.org>
2017-10-12Change criteria 'SUCCESS' to 'PASS' in yardstick reportingchenjiankun1-2/+1
To keep consistent with other testing project, yardstick should change criteria value from 'SUCCESS' to 'PASS' Change-Id: I8d8779927a74749e7c43df4e55e1888c49cbbbaf Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-10-12bugfix: trend graph not show in fuel x86 and aarch64chenjiankun1-2/+14
The trend tool will read installer field in scenario_history.txt But now this field is fuel not fuel@x86 or fuel@aarch64. So I change fuel -> fuel@x86 & fuel@aarch64. Change-Id: I8e97e57febd559f65be559b16bceee5cf8268926 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-10-11Merge "Fix jenkins-jnlp-connect.sh for missing a quotation mark"Aric Gardner1-1/+1
2017-10-11Merge "Add fuel@x86 and fuel@arm support"Morgan Richomme3-118/+166
2017-10-11Add fuel@x86 and fuel@arm supportchenjiankun3-118/+166
Since scenario data do not have a field named architecture, So I choose pod_name for now. For example: pod_name: arm-pod5 I assume that it is based arm architecture Change-Id: I92159a5e08b1ed80701494483fd9922dbd459193 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-10-11put htmlize directory under jjb/relengSerenaFeng3-105/+0
centralize jjb related scripts Change-Id: I4abeb06f17b48b8e7ac15803db0f3ce7eb0c1b93 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-10Fix jenkins-jnlp-connect.sh for missing a quotation markAlex Yang1-1/+1
Change-Id: Iba2a7b5de9cb56c2cc6579fb9ff37b3242a0283f Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-10-07Change score calculation for functest reportingMorgan Richomme1-5/+19
the goal is not to penalize scenario with few iteration due to CI pipeline constraints until now the top score was calculated on the base on 4 iterations, it means whatever the number of iterations, we always consider the possible top score based on at least 4 iterations each case can get - 3 points (last 4 iterations PASS) - 2 points (more than 1 PASS over the last 10 days but 1 FAIL of the last 4) - 1 point (at least 1 PASS over the last 10 days) - no point (never work) so if we consider a scenario with 10 cases, the top score is 30 = 10*3 (max points) the coefficient to calculate the top score is not the number of iterations - 1 iteration => possible top score 10 - 2 iterations => top score 20 - 3 iterations => top score 20 - 4 or more iterations => top score 30 previously top score was systematically 30 https://wiki.opnfv.org/plugins/servlet/mobile#content/view/6828617 Change-Id: I01102bc00766b7f5b58e73befa7d5328fcc895cc Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-10-04Revert "fetch_os_creds.sh: Fix unbound BUILD_TAG"Alexandru Avadanii1-2/+4
This reverts commit 3f27c8b519e42295bd76ace5506903f265e48560. Change-Id: I024ba8c0b960387138a71be9bc19f6d1b72030ca
2017-10-04fetch_os_creds.sh: Fix unbound BUILD_TAGAlexandru Avadanii1-4/+2
Fuel baremetal deployments provide a certificate, which should be copied over to test containers. Virtual deployments do not, hence the need to determine the deployment type and decide whether the certificate should be transferred in the first place. However, the Docker args we contruct will try to map the certificate file no matter what, so we will instead try to transfer the cert from Salt Master in all deployments, and just create an empty file in case it does not exist. Change-Id: I3d3fe6cabf552a88841c529ce38446b2e54b3053 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-10-03Update table headers in the reporting pageYujun Zhang1-3/+3
Change-Id: I19916f1e4dd04297cc7d73e93a12767d335c0d99 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-09-30Fix status reporting pageYujun Zhang4-19/+12
- use data in last 10 days instead of 1 day - hide installers without any data - remove redundant qtip reporting Change-Id: If73a439572b6a1cf09c7d34f643fb14be82196ca Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-09-29Merge "Fix Bottlenecks status page cann't be shown."Morgan Richomme1-1/+5