summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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 type of nova_api_version from float to strCarlos Goncalves3-3/+3
Recently functest container had its python requests lib updated to version 2.8.0 and it no longer supports passing in header values of float type. Change-Id: I31da351d7f5c7c1c3ff5121b7b000f3bab1d76bf 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>
2016-07-28Increase sleep time at cleanup phaseCarlos Goncalves1-1/+1
Extending sleep time by 60 seconds to allow Nova server to sync-up states with nova-compute service. JIRA: DOCTOR-66 Change-Id: I71c2f186fb3faf5550c7aede465c93c0674943e2 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-27Merge "Delete $VM_NAME and alrms with doctor user creds"Ryota Mibu1-3/+3
2016-07-27Delete $VM_NAME and alrms with doctor user credsCarlos Goncalves1-3/+3
'openstack server delete' tries to delete VM with admin credentials which fails because $VM_NAME is under a different tenant. Same for ceilometer alarms that we created with doctor creds. Change-Id: Ibba3b842dc8fa160137bb04316d285e52d776641 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-27add `debug=True` in consumerdongwenjuan1-1/+1
We need to add the `debug=True` in consumer to get the debug log to get the time of consumer received the notifier Change-Id: I90f2f8167a8670e28a3a5bcb5af054d378ef9b5b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-26fix doctor testRyota MIBU1-2/+3
- revert to use nova command to get IP address of compute host - disable interface which has the IP address of target compute host JIRA: DOCTOR-63 Change-Id: Ic5dc7706476a542f13a942fdae5b347ce28d3f72 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-07-25Merge "Move block code inside Apex section"Ryota Mibu1-4/+3
2016-07-22Merge "Fix typo in monitor to correctly print IP address"Ryota Mibu1-1/+1
2016-07-22Merge "Unset default COMPUTE_USER at the beginning of tests"Ryota Mibu1-1/+0
2016-07-22use --os-* options instead of env paramRyota MIBU1-84/+54
Parameters defined in another shell cannot be used in the main shell. This leads bug in funcsion which execute another shell to performe openstack command as doctor test user. This patch makes the test script use --os-* options to performe as doctor test user, so that we don't have to execute new shells in the test script. Change-Id: If148f00acae919a926bb5e9f2af8dd433a4110f5 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-07-22Unset default COMPUTE_USER at the beginning of testsCarlos Goncalves1-1/+0
Each installer has different compute users and we set a default for each in get_compute_host_info. Having COMPUTE_USER set at the beginning as is and not passing in a value will default to 'none' and thus overriding the default user of the installer. For example, COMPUTE_USER would be set to 'none' instead of 'heat-admin' for Apex installer. Change-Id: Ia60a88f68c52604bac6b7eef18e97e11328f1a6e Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-22make script fail if it failed to get COMPUTE_HOSTRyota MIBU1-0/+4
This patch is to make sure the test will be stop and report it failed. JIRA: DOCTOR-63 Change-Id: Ibab577a100dee784df14e8b129fbde626d04fce9 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-07-22use specify host_ip in alarm_actiondongwenjuan2-6/+23
we can not use `localhost` in `--alarm-action`, it should be the IP which the consumer started on. Change-Id: I50b99e4ff7609c474fb569049b3b8cd216c9178b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-21Fix typo in monitor to correctly print IP addressCarlos Goncalves1-1/+1
Change-Id: I335cf82f3996359327d0cacfcdc53eda8a709f86 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-21Move block code inside Apex sectionCarlos Goncalves1-4/+3
Change-Id: I87c971fedc6106165bfe0716a475edad5c43640c Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-18check host status before deleting doctor projectdongwenjuan1-6/+6
In `cleanup` function, we can't delete doctor project and doctor user before checking host status. Because we use API to get the `host status` under the doctor project. Change-Id: I38c0929eeff9378051e0dcda308734ab7b353509 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-08Merge "get compute host info after vm boot"Carlos Goncalves1-33/+54
2016-07-08get compute host info after vm bootdongwenjuan1-33/+54
If there are multi-compute node, vm may not be scheduled to the specified compute host. So get the compute host after vm is started. Change-Id: I1bc3caaf8305beded9eb297b116968a190fd9751 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-06add version para to use `openstack server show` clidongwenjuan1-1/+1
We should add the version para to use `openstack server show` cli to get `host_status` Change-Id: Ie0332e3766cb88f687fa66bcd5d8218f311e8add Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-05Move from legacy CLI to openstack CLICarlos Goncalves1-17/+17
openstack CLI does not support Ceilometer/Aodh calls yet. Change-Id: I2074c794c00d0307421839acfa86e9f63f80ca5d Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-07-05fix check host statesdongwenjuan1-9/+17
Fix the check_host_status, modify the `TEST_ROLE` as `admin` temporary. Change-Id: I7260ef027cc75fe71db3a3b706f3720a93821e10 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-07-04get doctor vm info under doctor projectdongwenjuan1-51/+67
get doctor vm state and vm_id should be in the doctor project Change-Id: I7020b034264da7c9b035d37c44c57b952bed4271 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-06-30add timeout handledongwenjuan1-1/+6
If create instance don't success, it will have a endless loop for waiting instance to change to `active` state. Change-Id: I6eff3cbaefaf1ba7e30ae7fddcec62ac5c1544de Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-06-20Merge "Before deleting the instance, check if the instance exists"Tomi Juvonen1-1/+1
2016-06-17Before deleting the instance, check if the instance existsdongwenjuan1-1/+1
The instance may not exist if there is a error before creating instance or it failed to create, run the `cleanup` to delete the non-existent instance will raise an error Change-Id: I13e4b63be952967605093a4427f5b0ac4be280c3 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-06-16use `openstack` cli instead of `keystone`clidongwenjuan1-14/+14
As in OpenStack, `keystone` cli is not used, change `openstack` cli instead of `keystone`cli Change-Id: I2c4679cba7fd80ea33098f89fbd9eecf65abdd8a Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
2016-05-27test: respect 'CI_DEBUG' set by functestRyota MIBU1-1/+3
In current bash script for doctor test, '-x' option is enabled and all executing commands will be printed in the console. Functest has a configuration to enable/disable this '-x' option. It is environment variable 'CI_DEBUG'. This patch makes doctor test script to set '-x' option according to 'CI_DEBUG'. If it's not set, '-x' option will be enabled as it was enabled before this change. JIRA: FUNCTEST-212 Change-Id: I9fa5036aad7a0f5c88378337d946439a6ee6108c Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-05-24Merge "Adding checking of host_status"Gerald Kunzmann1-4/+58
2016-05-24Adding checking of host_statusTomi Juvonen1-4/+58
Checking of host_status is added for non-admin user to see that installer have properly set the Nova policy.json like: "os_compute_api:servers:show:host_status": "rule:admin_or_owner" JIRA: DOCTOR-61 Change-Id: Ieee997951b54f25b698ef0b70a628cfcf87b396a Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2016-05-17Run 'ip' with sudoCarlos Goncalves1-1/+1
Change-Id: I3de7749746dfd2eb0a67a428b7f0ae4503c14123 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-03-29Fix disable_network.sh and 'ip' pathCarlos Goncalves1-8/+7
The 'ip' bin file can be located in different paths depending on the Linux distribution so better not hardcode it to a specific path. CentOS 6: /sbin/ip CentOS 7: /usr/sbin/ip Ubuntu 14.04: /sbin/ip Change-Id: I0b02a221d3367ed4bfd8596992a2774f22138b54 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-03-23Add support to multi-installers and local envsCarlos Goncalves1-22/+38
As of now, only support for Apex is available. This patch makes things easier to extend support for other OPNFV installers. The patch also adds explicit support for local OpenStack environments (e.g. deployed via devstack). Change-Id: Ib36e8fef2418dfabbaa56b933f533650d184d4e3 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-03-22Merge "Output log when compute node is back online"Ryota Mibu1-2/+2
2016-03-21Fix typos in stringsCarlos Goncalves2-4/+4
Change-Id: I1fe3adf5db8539178c0e068b73b22948d0e574d2 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-03-20Output log when compute node is back onlineCarlos Goncalves1-2/+2
The network interface of the compute node is set to down for 180 seconds, and then brought up back again. While it's unreachable we cannot call out the COMPUTE_IP:disable_network.log Change-Id: Iaa90339093c8fda88d883b688a4c8495e78414b7 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
2016-02-21test: add nova_force_down clientRyota MIBU3-2/+72
New force_down API is not available due to rack of support in default configuration of keystone service catalog and limit of novaclient, so this patch adds nova_force_down client to operate the new API. Change-Id: I2545f4448313b334d4c0a12f1638e64ecfafdf41 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-02-20test: fix bugs (ssh args and force-down in cleanup)Ryota MIBU2-2/+47
This patch fixes two bugs: - ssh target hostname is wrong (it trailing by ':') - novaclient cannot execute 'force-down' since it tries to use v2.0 endpoint which doesn't spport the new API, Change-Id: I5ef3a8eda5fa7a6730b4eb456d0441d40718a010 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-02-19test: fix bugs (scp -l and trap ERR)Ryota MIBU1-11/+7
This patch fixes bugs: - '-l' option for scp is different from that of ssh, so remove this option from the common param for scp and ssh. - trap ERR was not executed, so replace it by trap EXIT Change-Id: Id50ff29656fa100f420ae9ccc7a8a19a65a941c8 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-02-19test: fix bug: missing installer_ip in scp argsRyota MIBU1-1/+2
Change-Id: Ia9bf6ffb8a6bd4f2672aa50bb7841a7dc37e48ea Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-02-18test: fix DNS issue in test scenarioRyota MIBU1-6/+17
Doctor test was failed due to failure in resolving hostname at [1]. This patch replaces hostname by ip address, and also changes ssh route from relaying instack VM to direct access from functest container to the target compute host. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-opnfv-jump-1-daily-brahmaputra/38/ Change-Id: I9d4f115cb43ec16540f7d9300d652625685477d5 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-02-12tests: enable doctor test scenario with fixesRyota MIBU2-12/+49
Change-Id: I2c0c939b41f28684a1697b0099f2df62ce27c6a3 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>