I started up a stack based on "WordPress_Single_Instance_With_HA.template", named "teststack2". I then shut down the httpd service several times in a row to test the HA behaviour.
At this point running "heat event-list teststack2" gave the following:
I started up a stack based on "WordPress_ Single_ Instance_ With_HA. template" , named "teststack2". I then shut down the httpd service several times in a row to test the HA behaviour.
At this point running "heat event-list teststack2" gave the following:
cfriesen@ ubuntudevstack: ~/devstack$ heat event-list teststack2 ------- ------- ----+-- --+---- ------- ------- ------- -----+- ------- ------- -----+- ------- ------- ------- + status_ reason | resource_status | event_time | ------- ------- ----+-- --+---- ------- ------- ------- -----+- ------- ------- -----+- ------- ------- ------- + 21T22:06: 49Z | 21T22:06: 49Z | 21T22:06: 49Z | 21T22:06: 49Z | 21T22:06: 49Z | 21T22:06: 50Z | 21T22:06: 50Z | 21T22:06: 55Z | 21T22:06: 55Z | tPolicy | 78 | state changed | CREATE_IN_PROGRESS | 2013-10- 21T22:06: 55Z | tPolicy | 79 | state changed | CREATE_COMPLETE | 2013-10- 21T22:06: 56Z | 21T22:06: 56Z | 21T22:06: 57Z | 21T22:27: 53Z | tPolicy | 83 | alarm state changed to ALARM | signal_COMPLETE | 2013-10- 21T23:13: 54Z | 21T23:13: 54Z | 21T23:13: 54Z | 21T23:13: 54Z | 21T23:13: 54Z |
+------
| resource_name | id | resource_
+------
| CfnUser | 69 | state changed | CREATE_IN_PROGRESS | 2013-10-
| WaitHandle | 70 | state changed | CREATE_IN_PROGRESS | 2013-10-
| WaitHandle | 71 | state changed | CREATE_COMPLETE | 2013-10-
| CfnUser | 72 | state changed | CREATE_COMPLETE | 2013-10-
| WebServerKeys | 73 | state changed | CREATE_IN_PROGRESS | 2013-10-
| WebServerKeys | 74 | state changed | CREATE_COMPLETE | 2013-10-
| WikiDatabase | 75 | state changed | CREATE_IN_PROGRESS | 2013-10-
| WikiDatabase | 76 | state changed | CREATE_COMPLETE | 2013-10-
| WaitCondition | 77 | state changed | CREATE_IN_PROGRESS | 2013-10-
| WebServerRestar
| WebServerRestar
| HttpFailureAlarm | 80 | state changed | CREATE_IN_PROGRESS | 2013-10-
| HttpFailureAlarm | 81 | state changed | CREATE_COMPLETE | 2013-10-
| WaitCondition | 82 | state changed | CREATE_COMPLETE | 2013-10-
| WebServerRestar
| HttpFailureAlarm | 84 | state changed | DELETE_IN_PROGRESS | 2013-10-
| HttpFailureAlarm | 85 | state changed | DELETE_COMPLETE | 2013-10-
| WaitCondition | 86 | state changed | DELETE_IN_PROGRESS | 2013-10-
| WaitCondition | 87 | state changed | DELETE_COMPLETE | 2013-10-
I then tried to show the details for event 83, and was successful:
cfriesen@ ubuntudevstack: ~/devstack$ heat event-show teststack2 WebServerRestar tPolicy 83 ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+ 21T23:13: 54Z | 192.168. 2.118:8004/ v1/7b3a6ca58cb1 42e8b48cfc72aa6 4109d/stacks/ teststack2/ 9a7f581c- 3017-4aa0- b3fc-90266f3032 96/resources/ WebServerRestar tPolicy/ events/ 83 | 192.168. 2.118:8004/ v1/7b3a6ca58cb1 42e8b48cfc72aa6 4109d/stacks/ teststack2/ 9a7f581c- 3017-4aa0- b3fc-90266f3032 96/resources/ WebServerRestar tPolicy | 192.168. 2.118:8004/ v1/7b3a6ca58cb1 42e8b48cfc72aa6 4109d/stacks/ teststack2/ 9a7f581c- 3017-4aa0- b3fc-90266f3032 96 | tPolicy | resource_ id | 3de87cf8273c41c 8a9c49c491e6c8f c2 | tPolicy | c1f0-4016- b84c-59f8694437 c9" | status_ reason | alarm state changed to ALARM | :HARestarter | ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -----+
+------
| Property | Value |
+------
| event_time | 2013-10-
| id | 83 |
| links | http://
| | http://
| | http://
| logical_resource_id | WebServerRestar
| physical_
| resource_name | WebServerRestar
| resource_properties | { |
| | "InstanceId": "e6c5a7f0-
| | } |
| resource_status | signal_COMPLETE |
| resource_
| resource_type | OS::Heat:
+------
But when I tried to see the details for event 81, I got a weird error:
cfriesen@ ubuntudevstack: ~/devstack$ heat event-show teststack2 WebServerRestar tPolicy 81
Stack not found: teststack2
The stack is still there, other commands work, but for some reason trying to do event-show on some events gives this error.