/usr/lib/python3.6/site-packages/paramiko/client.py:711: UserWarning: Unknown ssh-ed25519 host key for 192.168.122.36: b'abc7e6ff7d8400938b4b2d772be606ad' key.get_fingerprint()))) 2018-04-27 11:29:51,778 main.py 106 INFO doctor test starting....... 2018-04-27 11:29:51,778 apex.py 28 INFO Setup Apex installer start...... 2018-04-27 11:29:51,779 base.py 80 INFO Get SSH keys from apex installer...... 2018-04-27 11:29:52,117 apex.py 46 INFO Get controller ips from Apex installer...... 2018-04-27 11:29:52,117 base.py 98 INFO Run command=source stackrc; nova list | grep ' overcloud-controller-[0-9] ' | sed -e 's/^.*ctlplane=//' |awk '{print $1}' in apex installer...... 2018-04-27 11:29:56,647 base.py 107 INFO Output=['192.30.9.8'] command=source stackrc; nova list | grep ' overcloud-controller-[0-9] ' | sed -e 's/^.*ctlplane=//' |awk '{print $1}' in apex installer 2018-04-27 11:29:56,648 apex.py 53 INFO Get controller_ips:['192.30.9.8'] from Apex installer 2018-04-27 11:29:57,246 apex.py 66 INFO Set apply patches start...... /usr/lib/python3.6/site-packages/paramiko/client.py:711: UserWarning: Unknown ssh-ed25519 host key for 192.30.9.8: b'3454fc23a3e2aaac7f03db7360643c43' key.get_fingerprint()))) 2018-04-27 11:30:01,225 base.py 60 INFO Setup ssh stunnel in apex installer...... 2018-04-27 11:30:01,231 image.py 48 INFO image create start...... 2018-04-27 11:30:06,397 image.py 68 INFO image create end...... 2018-04-27 11:30:06,397 user.py 69 INFO user create start...... 2018-04-27 11:30:06,487 user.py 85 INFO create project...... 2018-04-27 11:30:06,587 user.py 95 INFO test project 2018-04-27 11:30:06,677 user.py 103 INFO create user...... 2018-04-27 11:30:07,019 user.py 113 INFO test user 2018-04-27 11:30:07,092 user.py 127 INFO role _member_ already created...... 2018-04-27 11:30:07,092 user.py 128 INFO test role 2018-04-27 11:30:07,686 user.py 77 INFO user create end...... 2018-04-27 11:30:07,687 main.py 53 INFO doctor fault management test starting....... 2018-04-27 11:30:08,135 fault_management.py 65 INFO fault management setup...... 2018-04-27 11:30:08,135 user.py 181 INFO user quota update start...... 2018-04-27 11:30:08,804 user.py 197 INFO user quota update end...... 2018-04-27 11:30:08,804 network.py 41 INFO network create start....... 2018-04-27 11:30:09,707 network.py 47 INFO network create end....... 2018-04-27 11:30:09,707 network.py 49 INFO subnet create start....... 2018-04-27 11:30:10,317 network.py 58 INFO subnet create end....... 2018-04-27 11:30:10,318 instance.py 51 INFO instance create start...... 2018-04-27 11:30:12,307 instance.py 73 INFO instance create end...... 2018-04-27 11:30:12,307 instance.py 92 INFO wait for vm launch start...... 2018-04-27 11:30:21,292 instance.py 110 INFO wait for vm launch end...... 2018-04-27 11:30:21,293 alarm.py 45 INFO alarm create start...... 2018-04-27 11:30:22,840 alarm.py 81 INFO alarm create end...... 2018-04-27 11:30:22,841 sample.py 72 INFO sample inspector start...... 2018-04-27 11:30:23,888 sample.py 26 INFO sample consumer start...... * Running on http://0.0.0.0:12345/ (Press CTRL+C to quit) * Running on http://0.0.0.0:12346/ (Press CTRL+C to quit) 2018-04-27 11:30:24,926 apex.py 58 INFO Get host ip by hostname=overcloud-novacompute-1.opnfvlf.org from Apex installer...... 2018-04-27 11:30:24,926 base.py 98 INFO Run command=source stackrc; nova show overcloud-novacompute-1 | awk '/ ctlplane network /{print $5}' in apex installer...... 2018-04-27 11:30:29,181 base.py 107 INFO Output=['192.30.9.7'] command=source stackrc; nova show overcloud-novacompute-1 | awk '/ ctlplane network /{print $5}' in apex installer 2018-04-27 11:30:29,182 fault_management.py 118 INFO Get host info(name:overcloud-novacompute-1.opnfvlf.org, ip:192.30.9.7) which vm(doctor_vm0) launched at 2018-04-27 11:30:29,182 sample.py 30 INFO sample monitor start...... 2018-04-27 11:30:29,183 sample.py 85 INFO Starting Pinger host_name(overcloud-novacompute-1.opnfvlf.org), host_ip(192.30.9.7) 2018-04-27 11:32:29,184 fault_management.py 89 INFO fault management start...... 2018-04-27 11:32:29,185 base.py 80 INFO Get SSH keys from apex installer...... 2018-04-27 11:32:29,185 base.py 84 INFO Already have SSH keys from apex installer...... /usr/lib/python3.6/site-packages/paramiko/client.py:711: UserWarning: Unknown ssh-ed25519 host key for 192.30.9.7: b'a5ef8f8cd20a262302c88918584af484' key.get_fingerprint()))) 2018-04-27 11:32:29,257 utils.py 91 INFO Copy /src/doctor-tests/doctor_tests/disable_network.sh -> disable_network.sh 2018-04-27 11:32:29,437 utils.py 72 INFO Executing: bash disable_network.sh > disable_network.log 2>&1 & 2018-04-27 11:32:29,488 utils.py 86 INFO *** SUCCESSFULLY run command bash disable_network.sh > disable_network.log 2>&1 & 2018-04-27 11:32:29,490 fault_management.py 91 INFO fault management end...... 2018-04-27 11:32:30,651 sample.py 98 INFO doctor monitor detected at 1524828750.6511936 2018-04-27 11:32:30,651 sample.py 41 INFO sample monitor report error...... 2018-04-27 11:32:30,659 sample.py 168 INFO event posted in sample inspector at 1524828750.659942 2018-04-27 11:32:30,660 sample.py 169 INFO sample inspector = 2018-04-27 11:32:30,661 sample.py 171 INFO sample inspector received data = b'[{"time": "2018-04-27T11:32:30.651908", "type": "compute.host.down", "details": {"hostname": "overcloud-novacompute-1.opnfvlf.org", "status": "down", "monitor": "monitor_sample", "monitor_event_id": "monitor_sample_event1"}}]' 2018-04-27 11:32:30,721 sample.py 115 INFO doctor mark host(overcloud-novacompute-1.opnfvlf.org) down at 1524828750.7209687 2018-04-27 11:32:30,821 sample.py 126 INFO doctor mark vm() error at 1524828750.8211827 127.0.0.1 - - [27/Apr/2018 11:32:30] "PUT /events HTTP/1.1" 200 - 2018-04-27 11:32:30,824 sample.py 101 INFO ping timeout, quit monitoring... 2018-04-27 11:32:30,928 sample.py 58 INFO doctor consumer notified at 1524828750.9281802 2018-04-27 11:32:30,928 sample.py 61 INFO sample consumer received data = {'severity': 'moderate', 'alarm_name': 'doctor_alarm0', 'current': 'alarm', 'alarm_id': '440af015-81b0-4528-b43c-ac8abc25209d', 'reason': 'Event hits the query .', 'reason_data': {'type': 'event', 'event': {'event_type': 'compute.instance.update', 'traits': [['resource_id', 1, '115f7fc0-e2d0-4670-8ee4-10af5544315d'], ['ephemeral_gb', 2, 0], ['instance_type_id', 2, 82], ['user_id', 1, '6cd53838ef2f49ce909ccc7b66b26ef5'], ['service', 1, 'compute'], ['state', 1, 'error'], ['old_state', 1, 'active'], ['project_id', 1, '897a505fe7314186a351e53eaaf85912'], ['launched_at', 4, '2018-04-27T11:23:18'], ['disk_gb', 2, 1], ['instance_id', 1, '115f7fc0-e2d0-4670-8ee4-10af5544315d'], ['host', 1, 'overcloud-controller-0.opnfvlf.org'], ['root_gb', 2, 1], ['tenant_id', 1, '897a505fe7314186a351e53eaaf85912'], ['memory_mb', 2, 512], ['instance_type', 1, 'm1.tiny'], ['vcpus', 2, 1], ['request_id', 1, 'req-5b8f70b9-bfc4-44ba-b488-95558eba6705']], 'message_signature': '7dfe5e8e5d8de6731d7ae5b76b216192ec28774b6a2426f55b7ee8cfd9adb487', 'raw': {}, 'generated': '2018-04-27T11:32:30.814771', 'message_id': '8f1cecb4-2749-4cc7-8ec3-11bcc95786f3'}}, 'previous': 'insufficient data'} 127.0.0.1 - - [27/Apr/2018 11:32:30] "POST /failure HTTP/1.1" 200 - 2018-04-27 11:32:39,549 fault_management.py 185 INFO doctor fault management test successfully,notification_time=0.27698659896850586 2018-04-27 11:32:39,550 fault_management.py 191 INFO run doctor fault management profile....... 2018-04-27 11:32:39,550 base.py 80 INFO Get SSH keys from apex installer...... 2018-04-27 11:32:39,550 base.py 84 INFO Already have SSH keys from apex installer...... 2018-04-27 11:32:40,620 utils.py 91 INFO Copy disable_network.log -> /src/doctor-tests/doctor_tests/disable_network.log 2018-04-27 11:32:40,782 fault_management.py 155 INFO Get the disable_netork.log fromdown_host(host_name:overcloud-novacompute-1.opnfvlf.org, host_ip:192.30.9.7) 2018-04-27 11:32:40,785 profiler_poc.py 97 INFO Total time cost: 420084(ms) ==============================================================================> |Monitor|Inspector |Controller|Notifier|Evaluator | |419807 |70 |? |? |? | | | | | | | | | | | link down:0 | | | | | | | | | raw failure:419807| | | | | | | | found affected:? | | | | | | | set VM error:419977| | | | | | marked host down:419877| | | | | notified VM error:? | | | | transformed event:? | | | evaluated event:? | | fired alarm:? | received alarm:420084 2018-04-27 11:32:40,786 fault_management.py 94 INFO fault management cleanup...... 2018-04-27 11:32:40,786 fault_management.py 136 INFO Already get the disable_netork.log from down_host...... 2018-04-27 11:32:42,891 sample.py 78 INFO sample inspector stop...... 2018-04-27 11:32:42,934 sample.py 178 INFO shutdown inspector app server at 1524828762.9340165 127.0.0.1 - - [27/Apr/2018 11:32:42] "POST /events/shutdown HTTP/1.1" 200 - 2018-04-27 11:32:42,936 sample.py 35 INFO sample monitor stop...... 2018-04-27 11:32:42,937 sample.py 108 INFO Stopping Pinger host_name(overcloud-novacompute-1.opnfvlf.org), host_ip(192.30.9.7) 2018-04-27 11:32:42,937 sample.py 31 INFO sample consumer stop...... 2018-04-27 11:32:42,941 sample.py 66 INFO shutdown consumer app server at 1524828762.941668 127.0.0.1 - - [27/Apr/2018 11:32:42] "POST /shutdown HTTP/1.1" 200 - 2018-04-27 11:32:42,944 alarm.py 84 INFO alarm delete start....... 2018-04-27 11:32:42,995 alarm.py 93 INFO alarm delete end....... 2018-04-27 11:32:42,995 instance.py 76 INFO instance delete start....... 2018-04-27 11:33:45,617 instance.py 89 INFO instance delete end....... 2018-04-27 11:33:45,618 network.py 61 INFO subnet delete start....... 2018-04-27 11:33:46,224 network.py 64 INFO subnet delete end....... 2018-04-27 11:33:46,224 network.py 66 INFO network delete start....... 2018-04-27 11:33:46,890 network.py 69 INFO network delete end....... 2018-04-27 11:33:46,890 apex.py 80 INFO restore apply patches start...... 2018-04-27 11:33:48,092 image.py 71 INFO image delete start....... 2018-04-27 11:33:49,411 image.py 76 INFO image delete end....... 2018-04-27 11:33:49,412 user.py 156 INFO user delete start...... 2018-04-27 11:33:49,922 user.py 178 INFO user delete end...... Total time cost: 420084(ms) ==============================================================================> |Monitor|Inspector |Controller|Notifier|Evaluator | |419807 |70 |? |? |? | | | | | | | | | | | link down:0 | | | | | | | | | raw failure:419807| | | | | | | | found affected:? | | | | | | | set VM error:419977| | | | | | marked host down:419877| | | | | notified VM error:? | | | | transformed event:? | | | evaluated event:? | | fired alarm:? | received alarm:420084 2018-04-27 11:33:50,065 - xtesting.core.feature - INFO - Test result is stored in '/var/lib/xtesting/results/doctor-notification.log'