summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-05-30Adding PYTHON_ENABLE optionRyota MIBU1-0/+8
This option will be removed, once we confirmed tox/python testing code works fine and functest trigger has changed from 'run.sh' to 'tox'. Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com> Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> Change-Id: Ia4421f6e39a415bd7b6212af612249deb482e7af
2017-03-04urgent bug fixes for danube (1)Ryota MIBU1-40/+55
- create "doctor_net" and use it in VM creation in order to avoid virtual network issues - make sample inspector use keystone v3 - use "openstack compute service set" for unset force_down - drop nova_force_down.py as keystone returns nova v2.1 - use '--os-project-name' except for ceilometer cli - avoid ping check (wait_ping) with empty "COMPUTE_IP" - add missing '$' in quota update args - move ping check (wait_ping) into unset_forced_down_hosts() and perform ping check only to downed compute hosts - use wait_until() instead of wait_ping() - put out unset_forced_down_hosts from collect_logs() JIRA: DOCTOR-95 Co-Authored-By: Carlos Goncalves <carlos.goncalves@neclab.eu> Change-Id: I3275ff5dd993b82029dac6a58087096baa251022 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-03-02[test] print log filesRyota MIBU1-0/+9
Change-Id: Id8f307624564a6b822595689dbde64fee351b17f Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-02-17Add multiple VM supportTomi Juvonen1-58/+137
Add support to run Doctor test with more than one VM by setting VM_COUNT to wanted amount of VMs. Normally half of those VMs gets scheduled to host that is used for Doctor testing. JIRA: DOCTOR-77 Change-Id: I9fac96c6f53c290fccc35a2fd933b9fb106b96f2 Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2017-02-03Merge "refactor lib/installer"Ryota Mibu1-29/+7
2017-02-02refactor lib/installerRyota MIBU1-29/+7
- make sure expected parameters and functions are set - remove all installer dependent codes from run.sh except non-used function which will be removed later on Change-Id: I4628173ef0891d893146976c7553ed6a95329957 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-02-02Merge "Fix bugs in profiler"Tomi Juvonen1-23/+42
2017-02-02Fix functions for fuel installerRyota MIBU1-2/+4
JIRA: DOCTOR-58 Change-Id: Ic9326791007a3afa754cc64423b46adc17c59dc0 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-01-31Fix bugs in profilerYujun Zhang1-23/+42
- collect disable_network.log - use Python oneliner instead of `bc` - rename T00 from hostdown to linkdown - add step collect_logs - move profiler to a dedicated step - reorder function definitions to elimate warning on unresolved variable - redirect also stderr to log JIRA: DOCTOR-94 Change-Id: Ic63e5163945c5b21fd1d1c0bf99be353c11c2ada Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-31improve cleanup() in run.shRyota MIBU1-4/+17
- make sure all hosts are unset force_down flag - load all functions for inspector and installer first in order to avoid 'command not found' error - also, print VM if it has error state Change-Id: If56cba201e1a5f3669a97ffb3d28b3c55c7cdb58 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-01-30print git headRyota MIBU1-0/+1
Change-Id: I62b1cbc0a6a443ca7457fc2d5896aafe5d06396f Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2017-01-12Add more timestamps and export them for profilerJulien1-6/+22
Add timestamps when mark host and vm down(T03/T04). Update the sequence for host down and vm error Export more time tags for profiler: 1. Calculate and export T01,T03,T04 timestamps 2. Use regex to get time from log instead fixed column 3. Fix var usage without a '$' info: merge gerrit ticket 26551 into 26531. JIRA: DOCTOR-88 Change-Id: I3e6ccba667f470b4a00219f1e9830bb0da3d4ae5 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2016-12-28Add timelog when set network downJulien1-0/+1
Add timelog for T00 refering to the definition in 'profiler.py' JIRA: DOCTOR-89 Change-Id: I793f03e09bb7be31ba45e79ed5c4b4cb2549e9fb Signed-off-by: Julien-zte <zhang.jun3g@zte.com.cn>
2016-12-26PoC of performance profilerYujun Zhang1-0/+13
- export environment variables to set check points in millisecond - valid check points are: DOCTOR_PROFILER_T{00-09} See also https://gerrit.opnfv.org/gerrit/#/c/26439 JIRA: DOCTOR-72 Change-Id: I5a63309fbb23934ac468c05a2e91881ec3f87b4a Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-12-22Add section headers to verification scriptYujun Zhang1-0/+5
Change-Id: I4263b245c83c6b730d0458b3bf604683c0e9b64d Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-12-14Refactor inspectors support codeCarlos Goncalves1-78/+2
JIRA: DOCTOR-71 Change-Id: I0913d4d0390325cc0cc715572b7525a6bbb795d3 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-12-14Merge "Refactor installers support code"Ryota Mibu1-159/+13
2016-12-12Merge "remove print_log"Carlos Goncalves1-11/+0
2016-12-10Refactor installers support codeCarlos Goncalves1-159/+13
Restructuring tests directory to become more modular, and adding installer helper functions. JIRA: DOCTOR-71 Change-Id: Ib3846c35485cfa4f0a0881beb69811cdc0b8f66f Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-12-08Merge "Introducing common functions"Ryota Mibu1-38/+22
2016-12-06remove print_logRyota MIBU1-11/+0
Now, we can see log files with jenkins weg GUI as log files are archived automatically. Change-Id: I6214c121a5d5ddbdf00524649f80da7810e8fd9e Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-12-01remove `Debug = True when run Flask and add loggerdongwenjuan1-2/+2
JIRA: DOCTOR-79 Change-Id: I9193ec387af3b593b8f19d8f4b72ddec5c759bc0 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-11-16Introducing common functionsCarlos Goncalves1-38/+22
These functions will ease human readability, writing and debugging of our test codes. Common functions imported from devstack project. This is series of patches to refactor the test baseline code in what it will hopefully become more modular, readable and maintainable. JIRA: DOCTOR-71 Change-Id: Icbd7a1c2b3979081db8e5de3c46d9827ab54d7ca Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-09-09Merge "Run the tests with existing image"wenjuan dong1-4/+14
2016-09-08Run the tests with existing imagecristinapauna1-4/+14
When ran in functest on arm, the doctor suite fails because the x86 image is hardocded in the source files. This change adds the option to run the doctor suite with an existing image as opposed to downloading and creating it. The image name is taken from an enviroment variables (if it is set). When ran with functest, the env variable is set in doctor.py file. Change-Id: Ib6ce56e650ebe8b29618a9a31ec990f9f0895f54 Signed-off-by: cristinapauna <cristina.pauna@enea.com>
2016-09-07Unnecessary command and let VM creation stabilizeCarlos Goncalves1-3/+7
Method 'wait_for_status' in OpenStack CLI test_server.py suggests that we might have to wait a little bit longer after server reaches expected status. Better wait than break. Change-Id: I4aaa3091ac2e458aa527b6bd0164d65d46c85017 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-08-26Add exit status to notification time calculationCarlos Goncalves1-1/+5
Change-Id: Ib85571c3939ecb5136eba2c5de8d4b72f2d0659e Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-08-24add notification_driver config in nova.confdongwenjuan1-23/+51
Change-Id: Ib7462570b80bd0cf8214411a3467c5484a8d98a1 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-22resolve controller cannot talk to consumer in fueldongwenjuan1-25/+42
Change-Id: I0d5aac135d66bb41b4ecfe651f071800c323902d Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-22string compare use `!=` not `-ne`dongwenjuan1-1/+1
Change-Id: I1e3ef0ed1483de6e0b4c4a4101b509a3a3ec2465 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-21add modify ceilometer config in fuel envdongwenjuan1-0/+73
Change-Id: I59a2b3893272c8cb44d92babb8d2d7b0c0cf3302 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-20refactor some commmon functiondongwenjuan1-29/+45
get installer info and get key to access cloud can be picked up as common function for prepare env before test Change-Id: I1a96c4ad12f3f36dec0291c2f458e97e85f3ca27 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-19Test Congress Doctor driver supportCarlos Goncalves1-7/+76
When running Congress as Inspector implementation, the Monitor has to be started after starting the Inspector because we need to first ensure the Doctor datasource is created, otherwise the Monitor cannot get the Doctor datasource ID at init. This patch defaults the Inspector to 'sample' and for the time being functest will run only against 'sample', not all supported Inspector types ('sample' and 'congress'). Testing multiple Inspectors in single functest run would require major additional changes to our test scripts. It should still be done and addressed in a future patch. This patch focus on adding testing support against Congress as first step. One can test against Congress executing for example: $ INSPECTOR_TYPE=congress INSTALLER_TYPE=local COMPUTE_HOST=compute1 ./run.sh JIRA: DOCTOR-56 Change-Id: Icebd6fd6ad0c01d511c97e804727ad2a71f742e8 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-08-19fix login to controller nodesRyota MIBU1-2/+2
Change-Id: I9a85923b1b1766435280aeddfcebfaccbbb4e098 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-19fix the way to get controller IPsRyota MIBU1-2/+4
Change-Id: I5c449ac13d804aa1a65c703fc1e6b0caa70ff142 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-19update workaround for notification from OpenStackRyota MIBU1-6/+28
Now ssh tunnels will be created from each controller node to functest container, so that aodh can send message to doctor consumer in functest VM. Change-Id: Ia4360e78caa99b17a27802477765ec055c1144d7 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-18Merge "fix ssh tunnel creation"Ryota MIBU1-1/+1
2016-08-18fix ssh tunnel creationRyota MIBU1-1/+1
this patch removes unnecessary single quotes JIRA: DOCTOR-63 Change-Id: Ie24cb4c3c8fcae43371e58068cf03ee74ce9962e Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-18Merge "add project when create user"dongwenjuan1-3/+4
2016-08-18workaround for issue controller cannot talk to consumerRyota MIBU1-1/+9
The doctor test kick by functest fails in some deployment due to no connectivity from controller to the doctor consumer. To avoid this issue, this patch add ssh tunnel from installer node to the functest contatiner. JIRA: DOCTOR-63 Change-Id: Ide85137767382a53ebd15b875fd216aeed632705 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-17add project when create userdongwenjuan1-3/+4
sometimes after create `admin` role, we use `openstack user role list doctor --project doctor` cli can't get the `admin` role. We should add project when we create user. Change-Id: Ib3ee8a3009600aa2c88de2350b483f295c12d8d5 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-17misuse `ssh_options`dongwenjuan1-2/+2
misuse `ssh_options` which is not define in script Change-Id: I932859750d7fbe7cd4b69e3f3aceb5d84fa8f485 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-11improve log printingsRyota MIBU1-5/+10
Now, we can see log messages in INFO level, but it's not clear from where to where comes from which log file. This patch adding file names in INFO level. Change-Id: I3c8fa9f28c2c9ca3e758536243a8110849591825 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-11test scenario support fuel installerdongwenjuan1-7/+23
This patch extends support for fuel OPNFV installer for the test scenario. JIRA: DOCTOR-62 Change-Id: I09746b0e64b3999363db53c318027b81c471e2c4 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-08-10Revert role of doctor user to adminCarlos Goncalves1-1/+2
JIRA: DOCTOR-55 Change-Id: I41dc85fe43c2c8f9c5d98ff33770a59483caa19a Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-08-09Change role of doctor user to _member_Carlos Goncalves1-2/+1
JIRA: DOCTOR-55 Change-Id: I36a8a3eaeceb3a6baacad44f410b8464ba7704d5 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-08-05fix doctor testRyota MIBU1-8/+16
- support CI_DEBUG=true and CI_DEBUG=True - use fqdn for hostname matching in overcloud, but keep using short hostname for undercloud - add printing of paramters, so that we can see them in info level - make a result failed if the consumer didn't get message - allow host_state=UNKNOWN after failure injected JIRA: DOCTOR-63 Change-Id: Ib9bf02df3a68bec03e53db9d51c201545cf5a912 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-07-29Merge "fix bugs to get `CONSUMER_IP`"Gerald Kunzmann1-10/+5
2016-07-29fix bugs to get `CONSUMER_IP`dongwenjuan1-10/+5
use `ip route get $COMPUTE_IP` to get CONSUMER_IP. And add script fail if it failed to get CONSUMER_IP. Change-Id: I2e330c9be6e00f31e6c3e27dd674f9aabbb74a41 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-28Increase sleep time before re-checking host statusCarlos Goncalves1-1/+1
JIRA: DOCTOR-63 Change-Id: I4bc932dac22aca746489910bccb87f6571e3200b Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>