doctor.git
7 years agoresolve controller cannot talk to consumer in fuel 03/18903/6
dongwenjuan [Thu, 18 Aug 2016 02:48:22 +0000 (10:48 +0800)]
resolve controller cannot talk to consumer in fuel

Change-Id: I0d5aac135d66bb41b4ecfe651f071800c323902d
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agostring compare use `!=` not `-ne` 47/19147/1
dongwenjuan [Mon, 22 Aug 2016 02:59:51 +0000 (10:59 +0800)]
string compare use `!=` not `-ne`

Change-Id: I1e3ef0ed1483de6e0b4c4a4101b509a3a3ec2465
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agoadd modify ceilometer config in fuel env 19/18819/6
dongwenjuan [Wed, 17 Aug 2016 10:03:11 +0000 (18:03 +0800)]
add modify ceilometer config in fuel env

Change-Id: I59a2b3893272c8cb44d92babb8d2d7b0c0cf3302
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agorefactor some commmon function 29/18929/4
dongwenjuan [Thu, 18 Aug 2016 08:20:44 +0000 (16:20 +0800)]
refactor some commmon function

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>
7 years agoTest Congress Doctor driver support 29/18429/10
Carlos Goncalves [Thu, 11 Aug 2016 13:04:14 +0000 (13:04 +0000)]
Test Congress Doctor driver support

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>
7 years agofix login to controller nodes 51/19051/1
Ryota MIBU [Fri, 19 Aug 2016 09:55:27 +0000 (18:55 +0900)]
fix login to controller nodes

Change-Id: I9a85923b1b1766435280aeddfcebfaccbbb4e098
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agofix the way to get controller IPs 49/19049/1
Ryota MIBU [Fri, 19 Aug 2016 09:15:42 +0000 (18:15 +0900)]
fix the way to get controller IPs

Change-Id: I5c449ac13d804aa1a65c703fc1e6b0caa70ff142
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoupdate workaround for notification from OpenStack 45/19045/1
Ryota MIBU [Fri, 19 Aug 2016 08:58:20 +0000 (17:58 +0900)]
update workaround for notification from OpenStack

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>
7 years agoMerge "fix ssh tunnel creation"
Ryota MIBU [Thu, 18 Aug 2016 13:21:05 +0000 (13:21 +0000)]
Merge "fix ssh tunnel creation"

7 years agofix ssh tunnel creation 65/18965/1
Ryota MIBU [Thu, 18 Aug 2016 13:18:49 +0000 (22:18 +0900)]
fix ssh tunnel creation

this patch removes unnecessary single quotes

JIRA: DOCTOR-63

Change-Id: Ie24cb4c3c8fcae43371e58068cf03ee74ce9962e
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoMerge "add project when create user"
dongwenjuan [Thu, 18 Aug 2016 00:51:23 +0000 (00:51 +0000)]
Merge "add project when create user"

7 years agoworkaround for issue controller cannot talk to consumer 61/18861/1
Ryota MIBU [Wed, 17 Aug 2016 17:20:46 +0000 (02:20 +0900)]
workaround for issue controller cannot talk to consumer

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>
7 years agoadd project when create user 11/18811/1
dongwenjuan [Wed, 17 Aug 2016 08:55:16 +0000 (16:55 +0800)]
add project when create user

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>
7 years agomisuse `ssh_options` 77/18777/2
dongwenjuan [Wed, 17 Aug 2016 04:32:26 +0000 (12:32 +0800)]
misuse `ssh_options`

misuse `ssh_options` which is not define in script

Change-Id: I932859750d7fbe7cd4b69e3f3aceb5d84fa8f485
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agoimprove log printings 55/18555/1
Ryota MIBU [Thu, 11 Aug 2016 01:45:10 +0000 (10:45 +0900)]
improve log printings

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>
7 years agoMerge "Adding comparison of NFV, Doctor and AODH alarms"
Gerald Kunzmann [Fri, 12 Aug 2016 10:04:06 +0000 (10:04 +0000)]
Merge "Adding comparison of NFV, Doctor and AODH alarms"

7 years agoAdding comparison of NFV, Doctor and AODH alarms 01/18401/3
TommyLindgren@gerrit.opnfv.org [Thu, 11 Aug 2016 08:22:13 +0000 (10:22 +0200)]
Adding comparison of NFV, Doctor and AODH alarms

Change-Id: I07bb2317b3ef911302dc06182b112dfb47ffe6d5
JIRA: DOCTOR-46
Signed-off-by: TommyLindgren@gerrit.opnfv.org <tommy.lindgren@ericsson.com>
7 years agotest scenario support fuel installer 05/17705/6
dongwenjuan [Thu, 28 Jul 2016 11:35:36 +0000 (19:35 +0800)]
test scenario support fuel installer

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>
7 years agoRevert role of doctor user to admin 23/18323/1
Carlos Goncalves [Wed, 10 Aug 2016 12:42:12 +0000 (14:42 +0200)]
Revert role of doctor user to admin

JIRA: DOCTOR-55

Change-Id: I41dc85fe43c2c8f9c5d98ff33770a59483caa19a
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoMerge "Add newest Colorado feature"
Bertrand Souville [Wed, 10 Aug 2016 05:30:12 +0000 (05:30 +0000)]
Merge "Add newest Colorado feature"

7 years agoMerge "Add a subsection under "Doctor capabilities and usage" section"
Bertrand Souville [Wed, 10 Aug 2016 05:29:27 +0000 (05:29 +0000)]
Merge "Add a subsection under "Doctor capabilities and usage" section"

7 years agoAdd newest Colorado feature 33/18133/2
LeeYZ [Mon, 8 Aug 2016 06:37:38 +0000 (14:37 +0800)]
Add newest Colorado feature

Change-Id: I883098f5a7b7c84ce9ddda8694480f8912f1b6de
Signed-off-by: Yuanzhen Li <li.yuanzhen@zte.com.cn>
7 years agoAdd a subsection under "Doctor capabilities and usage" section 37/18137/2
LeeYZ [Mon, 8 Aug 2016 08:49:23 +0000 (16:49 +0800)]
Add a subsection under "Doctor capabilities and usage" section

Change-Id: I6ec7a89e9dad8b72cf6e8956b45924e3685b6c14
Signed-off-by: Yuanzhen Li <li.yuanzhen@zte.com.cn>
7 years agoChange type of nova_api_version from float to str 65/18265/1
Carlos Goncalves [Tue, 9 Aug 2016 18:47:27 +0000 (20:47 +0200)]
Change type of nova_api_version from float to str

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>
7 years agoChange role of doctor user to _member_ 07/18207/1
Carlos Goncalves [Tue, 9 Aug 2016 09:06:36 +0000 (11:06 +0200)]
Change role of doctor user to _member_

JIRA: DOCTOR-55

Change-Id: I36a8a3eaeceb3a6baacad44f410b8464ba7704d5
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoMerge "fix doctor test"
Gerald Kunzmann [Fri, 5 Aug 2016 12:01:08 +0000 (12:01 +0000)]
Merge "fix doctor test"

7 years agofix doctor test 79/18079/2
Ryota MIBU [Fri, 5 Aug 2016 09:43:42 +0000 (18:43 +0900)]
fix doctor test

- 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>
7 years agoMerge "Port status update"
Ryota Mibu [Fri, 5 Aug 2016 10:37:44 +0000 (10:37 +0000)]
Merge "Port status update"

7 years agoPort status update 29/17629/3
Carlos Goncalves [Wed, 27 Jul 2016 13:33:02 +0000 (15:33 +0200)]
Port status update

A blueprint spec for RFE https://bugs.launchpad.net/neutron/+bug/1598081

[UPSTREAM] Closes-Bug: #1598081
[UPSTREAM] Partial-Bug: #1575146

Change-Id: I7a01b728a1fa40d89bb11ec02b4e21df04e54464
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoAdd Bertrand to Doctor Committer list 13/17913/1
Ryota MIBU [Tue, 2 Aug 2016 11:44:35 +0000 (20:44 +0900)]
Add Bertrand to Doctor Committer list

Change-Id: I86f5b01b670dd7aedd99ec4eb88a745379968599
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoUpdate Peter Lee's contact info 09/17909/1
Carlos Goncalves [Tue, 2 Aug 2016 09:24:59 +0000 (11:24 +0200)]
Update Peter Lee's contact info

Change-Id: I54d8a25762aebbb4230592b4ad9bcf03f22df2d3
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agofix the description of Doctor Scenario 93/17893/3
dongwenjuan [Tue, 2 Aug 2016 03:42:23 +0000 (11:42 +0800)]
fix the description of Doctor Scenario

fix the description of Doctor Scenario in Functest

Change-Id: If5b128c9ff395c5a939610419937e1e7e47b2654
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agoMerge "fix bugs to get `CONSUMER_IP`"
Gerald Kunzmann [Fri, 29 Jul 2016 10:18:13 +0000 (10:18 +0000)]
Merge "fix bugs to get `CONSUMER_IP`"

7 years agofix bugs to get `CONSUMER_IP` 03/17703/3
dongwenjuan [Thu, 28 Jul 2016 11:23:05 +0000 (19:23 +0800)]
fix bugs to get `CONSUMER_IP`

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>
7 years agoIncrease sleep time before re-checking host status 31/17731/1
Carlos Goncalves [Thu, 28 Jul 2016 14:47:02 +0000 (16:47 +0200)]
Increase sleep time before re-checking host status

JIRA: DOCTOR-63

Change-Id: I4bc932dac22aca746489910bccb87f6571e3200b
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoIncrease sleep time at cleanup phase 21/17721/1
Carlos Goncalves [Thu, 28 Jul 2016 14:14:38 +0000 (16:14 +0200)]
Increase sleep time at cleanup phase

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>
7 years agoMerge "Delete $VM_NAME and alrms with doctor user creds"
Ryota Mibu [Wed, 27 Jul 2016 13:16:51 +0000 (13:16 +0000)]
Merge "Delete $VM_NAME and alrms with doctor user creds"

7 years agoDelete $VM_NAME and alrms with doctor user creds 15/17615/2
Carlos Goncalves [Wed, 27 Jul 2016 10:09:27 +0000 (10:09 +0000)]
Delete $VM_NAME and alrms with doctor user creds

'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>
7 years agoadd `debug=True` in consumer 87/17587/1
dongwenjuan [Wed, 27 Jul 2016 02:57:16 +0000 (10:57 +0800)]
add `debug=True` in consumer

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>
7 years agofix doctor test 37/17537/1
Ryota MIBU [Tue, 26 Jul 2016 05:49:18 +0000 (14:49 +0900)]
fix doctor test

- 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>
7 years agoMerge "Move block code inside Apex section"
Ryota Mibu [Mon, 25 Jul 2016 13:05:11 +0000 (13:05 +0000)]
Merge "Move block code inside Apex section"

7 years agoMerge "Exclude .img and .log files"
Ryota Mibu [Fri, 22 Jul 2016 12:34:42 +0000 (12:34 +0000)]
Merge "Exclude .img and .log files"

7 years agoMerge "Fix typo in monitor to correctly print IP address"
Ryota Mibu [Fri, 22 Jul 2016 12:33:57 +0000 (12:33 +0000)]
Merge "Fix typo in monitor to correctly print IP address"

7 years agoMerge "Unset default COMPUTE_USER at the beginning of tests"
Ryota Mibu [Fri, 22 Jul 2016 12:33:07 +0000 (12:33 +0000)]
Merge "Unset default COMPUTE_USER at the beginning of tests"

7 years agouse --os-* options instead of env param 09/17409/1
Ryota MIBU [Fri, 22 Jul 2016 10:56:06 +0000 (19:56 +0900)]
use --os-* options instead of env param

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>
7 years agoUnset default COMPUTE_USER at the beginning of tests 05/17405/1
Carlos Goncalves [Fri, 22 Jul 2016 10:44:01 +0000 (12:44 +0200)]
Unset default COMPUTE_USER at the beginning of tests

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>
7 years agomake script fail if it failed to get COMPUTE_HOST 03/17403/1
Ryota MIBU [Fri, 22 Jul 2016 10:21:42 +0000 (19:21 +0900)]
make script fail if it failed to get COMPUTE_HOST

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>
7 years agouse specify host_ip in alarm_action 43/16743/3
dongwenjuan [Tue, 12 Jul 2016 10:10:56 +0000 (18:10 +0800)]
use specify host_ip in alarm_action

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>
7 years agoFix typo in monitor to correctly print IP address 77/17377/2
Carlos Goncalves [Thu, 21 Jul 2016 20:26:32 +0000 (22:26 +0200)]
Fix typo in monitor to correctly print IP address

Change-Id: I335cf82f3996359327d0cacfcdc53eda8a709f86
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoExclude .img and .log files 37/17337/1
Carlos Goncalves [Thu, 21 Jul 2016 12:35:21 +0000 (14:35 +0200)]
Exclude .img and .log files

Change-Id: I4bb4c53d7b42333a16dda05c25d947256168d4b9
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoMove block code inside Apex section 33/17333/2
Carlos Goncalves [Thu, 21 Jul 2016 12:14:30 +0000 (12:14 +0000)]
Move block code inside Apex section

Change-Id: I87c971fedc6106165bfe0716a475edad5c43640c
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agocheck host status before deleting doctor project 09/16709/5
dongwenjuan [Tue, 12 Jul 2016 02:21:51 +0000 (10:21 +0800)]
check host status before deleting doctor project

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>
7 years agoMerge "get compute host info after vm boot"
Carlos Goncalves [Fri, 8 Jul 2016 07:40:47 +0000 (07:40 +0000)]
Merge "get compute host info after vm boot"

7 years agoget compute host info after vm boot 15/16415/10
dongwenjuan [Wed, 6 Jul 2016 06:58:20 +0000 (14:58 +0800)]
get compute host info after vm boot

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>
7 years agoadd version para to use `openstack server show` cli 21/16421/4
dongwenjuan [Wed, 6 Jul 2016 08:12:26 +0000 (16:12 +0800)]
add version para to use `openstack server show` cli

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>
7 years agoMove from legacy CLI to openstack CLI 63/16363/2
Carlos Goncalves [Tue, 5 Jul 2016 11:05:47 +0000 (13:05 +0200)]
Move from legacy CLI to openstack CLI

openstack CLI does not support Ceilometer/Aodh calls yet.

Change-Id: I2074c794c00d0307421839acfa86e9f63f80ca5d
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agofix check host states 45/16145/9
dongwenjuan [Thu, 30 Jun 2016 02:19:49 +0000 (10:19 +0800)]
fix check host states

Fix the check_host_status, modify the `TEST_ROLE`
as `admin` temporary.

Change-Id: I7260ef027cc75fe71db3a3b706f3720a93821e10
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
7 years agoMerge "get doctor vm info under doctor project"
Gerald Kunzmann [Mon, 4 Jul 2016 14:01:20 +0000 (14:01 +0000)]
Merge "get doctor vm info under doctor project"

7 years agoget doctor vm info under doctor project 43/16143/10
dongwenjuan [Thu, 30 Jun 2016 02:09:27 +0000 (10:09 +0800)]
get doctor vm info under doctor project

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>
7 years agoMerge "Pointer to "Port status update" RFE in upstream"
Gerald Kunzmann [Fri, 1 Jul 2016 10:13:16 +0000 (10:13 +0000)]
Merge "Pointer to "Port status update" RFE in upstream"

7 years agoPointer to "Port status update" RFE in upstream 51/16251/1
Carlos Goncalves [Fri, 1 Jul 2016 09:56:38 +0000 (11:56 +0200)]
Pointer to "Port status update" RFE in upstream

Change-Id: Ic45abcf3d888613b74a5b4d5b61f3eb5c6de0873
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoMerge "Neutron RFE: Port Status Update"
Gerald Kunzmann [Fri, 1 Jul 2016 09:46:04 +0000 (09:46 +0000)]
Merge "Neutron RFE: Port Status Update"

7 years agoNeutron RFE: Port Status Update 43/16043/3
Carlos Goncalves [Tue, 28 Jun 2016 12:05:58 +0000 (14:05 +0200)]
Neutron RFE: Port Status Update

Change-Id: I7c68afe93f38553707bf413e493e1f8aa5dcfae4
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
7 years agoMerge "Description of Doctor Scenario in Functest"
Gerald Kunzmann [Thu, 30 Jun 2016 15:24:01 +0000 (15:24 +0000)]
Merge "Description of Doctor Scenario in Functest"

7 years agoMerge "Add Dong Wenjuan as committer"
Ryota MIBU [Thu, 30 Jun 2016 08:28:57 +0000 (08:28 +0000)]
Merge "Add Dong Wenjuan as committer"

7 years agoMerge "add timeout handle"
Gerald Kunzmann [Thu, 30 Jun 2016 08:24:11 +0000 (08:24 +0000)]
Merge "add timeout handle"

7 years agoAdd Dong Wenjuan as committer 55/16155/1
Ryota MIBU [Thu, 30 Jun 2016 07:38:12 +0000 (16:38 +0900)]
Add Dong Wenjuan as committer

Change-Id: I187121450d2d0dfa6f9732f15f8b8cd84d8069fb
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoDescription of Doctor Scenario in Functest 41/15241/13
LeeYZ [Tue, 7 Jun 2016 02:23:20 +0000 (03:23 +0100)]
Description of Doctor Scenario in Functest

JIRA: DOCTOR-53
Change-Id: Ie8a1b2f8f49761cf455514923761d39efc2bbce8
Co-Authored-By: Gerald Kunzmann <kunzmann@docomolab-euro.com>
Signed-off-by: Yuanzhen Li <li.yuanzhen@zte.com.cn>
7 years agoadd timeout handle 19/15719/6
dongwenjuan [Thu, 16 Jun 2016 09:34:24 +0000 (17:34 +0800)]
add timeout handle

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>
7 years agoMerge "Add SB Event API specification"
Carlos Goncalves [Wed, 29 Jun 2016 07:39:57 +0000 (07:39 +0000)]
Merge "Add SB Event API specification"

7 years agoMerge "Before deleting the instance, check if the instance exists"
Tomi Juvonen [Mon, 20 Jun 2016 07:38:45 +0000 (07:38 +0000)]
Merge "Before deleting the instance, check if the instance exists"

7 years agoBefore deleting the instance, check if the instance exists 17/15717/3
dongwenjuan [Thu, 16 Jun 2016 09:30:41 +0000 (17:30 +0800)]
Before deleting the instance, check if the instance exists

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>
7 years agouse `openstack` cli instead of `keystone`cli 87/15687/6
dongwenjuan [Thu, 16 Jun 2016 07:26:32 +0000 (15:26 +0800)]
use `openstack` cli instead of `keystone`cli

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>
7 years agoAdd SB Event API specification 79/12179/6
Ryota MIBU [Tue, 12 Apr 2016 07:06:11 +0000 (16:06 +0900)]
Add SB Event API specification

This patch adds unified event api as southbound interface specification
between Monitors and Inspector.

JIRA: DOCTOR-17

Change-Id: I80a69a6735bcc68d55851a5524fc0c01b9cb35c5
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
7 years agoFix a word spell in docs:02-use_cases.rst 51/15251/1
LeeYZ [Tue, 7 Jun 2016 06:59:04 +0000 (07:59 +0100)]
Fix a word spell in docs:02-use_cases.rst

Change-Id: I6ae339b0cd228c2b2f2c49d36422a1b13a9ffe23
Signed-off-by: Yuanzhen Li <li.yuanzhen@zte.com.cn>
7 years agoMerge "Revisit fault table"
Tomi Juvonen [Tue, 7 Jun 2016 05:03:35 +0000 (05:03 +0000)]
Merge "Revisit fault table"

7 years agoRevisit fault table 85/14685/7
Yujun Zhang [Thu, 26 May 2016 03:36:12 +0000 (11:36 +0800)]
Revisit fault table

- add storage fault (same content as compute)
- add example of mainboard error
- rename fault Hypervisor status not retrievable
- editorial fix
- complete "how to detect"

Change-Id: I9ec849014d18823f9a309396542e89a4e6da8b6c
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
7 years agotest: respect 'CI_DEBUG' set by functest 65/14765/1
Ryota MIBU [Fri, 27 May 2016 06:54:28 +0000 (15:54 +0900)]
test: respect 'CI_DEBUG' set by functest

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>
7 years agoMerge "Fix typo and inconsistency"
Ryota Mibu [Tue, 24 May 2016 10:22:53 +0000 (10:22 +0000)]
Merge "Fix typo and inconsistency"

7 years agoMerge "Adding checking of host_status"
Gerald Kunzmann [Tue, 24 May 2016 07:29:04 +0000 (07:29 +0000)]
Merge "Adding checking of host_status"

7 years agoAdding checking of host_status 93/14193/4
Tomi Juvonen [Mon, 16 May 2016 10:38:23 +0000 (13:38 +0300)]
Adding checking of host_status

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>
7 years agoFix typo and inconsistency 11/14411/5
Zhang Yujun [Fri, 20 May 2016 06:19:26 +0000 (14:19 +0800)]
Fix typo and inconsistency

JIRA: DOCTOR-37

Change-Id: I67a38611a828a5d293cdfd1702b37fc89f5229a0
Signed-off-by: Zhang Yujun <zhang.yujunz@zte.com.cn>
7 years agoMerge "Manual for get-valid-server-state"
Tomi Juvonen [Thu, 19 May 2016 03:50:24 +0000 (03:50 +0000)]
Merge "Manual for get-valid-server-state"

7 years agoManual for get-valid-server-state 25/13825/6
Tomi Juvonen [Tue, 10 May 2016 07:36:52 +0000 (10:36 +0300)]
Manual for get-valid-server-state

Change-Id: I684b94c18bc1961859907b5565f8498b97987092
JIRA: DOCTOR-47
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
7 years agoRun 'ip' with sudo 29/14229/2
Carlos Goncalves [Tue, 17 May 2016 09:40:52 +0000 (11:40 +0200)]
Run 'ip' with sudo

Change-Id: I3de7749746dfd2eb0a67a428b7f0ae4503c14123
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
8 years agoFix disable_network.sh and 'ip' path 47/11447/3
Carlos Goncalves [Sun, 20 Mar 2016 21:23:44 +0000 (22:23 +0100)]
Fix disable_network.sh and 'ip' path

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>
8 years agoAdd support to multi-installers and local envs 43/11443/2
Carlos Goncalves [Sun, 20 Mar 2016 17:15:17 +0000 (17:15 +0000)]
Add support to multi-installers and local envs

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>
8 years agoMerge "Output log when compute node is back online"
Ryota Mibu [Tue, 22 Mar 2016 23:35:56 +0000 (23:35 +0000)]
Merge "Output log when compute node is back online"

8 years agoFix typos in strings 67/11467/2
Carlos Goncalves [Mon, 21 Mar 2016 21:35:39 +0000 (22:35 +0100)]
Fix typos in strings

Change-Id: I1fe3adf5db8539178c0e068b73b22948d0e574d2
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
8 years agoOutput log when compute node is back online 45/11445/2
Carlos Goncalves [Sun, 20 Mar 2016 21:05:39 +0000 (22:05 +0100)]
Output log when compute node is back online

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>
8 years agodocs: add index.rst files to component docs 15/10815/4
Ryota MIBU [Thu, 25 Feb 2016 13:19:02 +0000 (22:19 +0900)]
docs: add index.rst files to component docs

Change-Id: I1256d21bc01c7f1343859e28b47c15d9d284bddf
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agotest: add nova_force_down client 31/10331/1
Ryota MIBU [Sat, 20 Feb 2016 15:19:29 +0000 (00:19 +0900)]
test: add nova_force_down client

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>
8 years agotest: fix bugs (ssh args and force-down in cleanup) 23/10323/1
Ryota MIBU [Sat, 20 Feb 2016 04:08:30 +0000 (13:08 +0900)]
test: fix bugs (ssh args and force-down in cleanup)

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>
8 years agotest: fix bugs (scp -l and trap ERR) 85/10285/1
Ryota MIBU [Fri, 19 Feb 2016 13:11:47 +0000 (22:11 +0900)]
test: fix bugs (scp -l and trap ERR)

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>
8 years agotest: fix bug: missing installer_ip in scp args 49/10249/2
Ryota MIBU [Fri, 19 Feb 2016 01:05:01 +0000 (10:05 +0900)]
test: fix bug: missing installer_ip in scp args

Change-Id: Ia9bf6ffb8a6bd4f2672aa50bb7841a7dc37e48ea
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agotest: fix DNS issue in test scenario 81/10181/2
Ryota MIBU [Thu, 18 Feb 2016 03:30:31 +0000 (12:30 +0900)]
test: fix DNS issue in test scenario

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>
8 years agotests: enable doctor test scenario with fixes 53/9853/2
Ryota MIBU [Fri, 12 Feb 2016 12:05:48 +0000 (21:05 +0900)]
tests: enable doctor test scenario with fixes

Change-Id: I2c0c939b41f28684a1697b0099f2df62ce27c6a3
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agodocs: fix filename 35/9635/1
Ryota MIBU [Tue, 9 Feb 2016 15:38:05 +0000 (00:38 +0900)]
docs: fix filename

See https://wiki.opnfv.org/documentation/userguide .

Change-Id: I2d03406de585785d13a58a8181efeaa674f97e31
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agotests: collect infra IPs 37/9537/1
Ryota MIBU [Mon, 8 Feb 2016 13:38:27 +0000 (22:38 +0900)]
tests: collect infra IPs

Change-Id: I2f1df56632827925784441c03aadc544c1e3c891
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agodocs: fix filename and test4composite 25/9525/5
Ryota MIBU [Mon, 8 Feb 2016 13:41:40 +0000 (22:41 +0900)]
docs: fix filename and test4composite

Change-Id: I78366611efd26987a71c3ecf25d2406e6f489cca
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>