~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to cts/CM_ais.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-08-15 11:27:07 UTC
  • mfrom: (1.1.12) (2.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20130815112707-5r864ink7jme3zl5
Tags: 1.1.10+git20130802-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/control: Build-Depends on libqb-dev; Depends on libheartbeat2.
* Corosync's pacemaker plugin is disabled, hence not built:
  - debian/licrmcluster4-dev.install: Do not install plugin.h.
  - debian/pacemaker.install: Do not install pacemaker.lcrso.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                r"Unknown node -> we will not deliver message",
88
88
                r"crm_write_blackbox",
89
89
                r"pacemakerd.*Could not connect to Cluster Configuration Database API",
 
90
                r"Recieving messages from a node we think is dead",
 
91
                r"share the same cluster nodeid",
 
92
                r"share the same name",
90
93
 
91
94
                #r"crm_ipc_send:.*Request .* failed",
92
95
                #r"crm_ipc_send:.*Sending to .* is disabled until pending reply is recieved",
144
147
                    "verify_stopped: Resource .* was active at shutdown.  You may ignore this error if it is unmanaged.",
145
148
                    "error: attrd_connection_destroy: Lost connection to attrd",
146
149
                    "info: te_fence_node: Executing .* fencing operation",
147
 
 
 
150
                    "crm_write_blackbox:",
148
151
#                    "error: native_create_actions: Resource .*stonith::.* is active on 2 nodes attempting recovery",
149
152
#                    "error: process_pe_message: Transition .* ERRORs found during PE processing",
150
153
            ]
163
166
                    "error: crm_ipc_read: Connection to cib_.* failed",
164
167
                    "error: mainloop_gio_callback: Connection to cib_.* closed",
165
168
                    "Connection to the CIB terminated...",
166
 
                    "Child process crmd exited .* rc=2",
167
 
                    "Child process attrd exited .* rc=1",
 
169
                    "Child process crmd .* exited: Generic Pacemaker error",
 
170
                    "Child process attrd .* exited: Transport endpoint is not connected",
168
171
                    "crmd.*Input I_TERMINATE from do_recover",
169
172
                    "crmd.*I_ERROR.*crmd_cib_connection_destroy",
170
 
                    "crmd.*do_exit: Could not recover from internal error",
 
173
                    "crmd.*Could not recover from internal error",
171
174
                    ], badnews_ignore = cib_ignore, common_ignore = self.common_ignore)
172
175
 
173
176
        fullcomplist["lrmd"] = Process(self, "lrmd", pats = [
177
180
                    "error: crm_ipc_read: Connection to lrmd failed",
178
181
                    "error: mainloop_gio_callback: Connection to lrmd.* closed",
179
182
                    "crmd.*I_ERROR.*lrm_connection_destroy",
180
 
                    "Child process crmd exited .* rc=2",
 
183
                    "Child process crmd .* exited: Generic Pacemaker error",
181
184
                    "crmd.*Input I_TERMINATE from do_recover",
182
 
                    "crmd.*do_exit: Could not recover from internal error",
 
185
                    "crmd.* Could not recover from internal error",
183
186
                    ], badnews_ignore = self.common_ignore)
184
187
 
185
188
        fullcomplist["crmd"] = Process(self, "crmd", pats = [
196
199
        fullcomplist["pengine"] = Process(self, "pengine", dc_pats = [
197
200
                    "State transition .* S_RECOVERY",
198
201
                    "Respawning .* crmd",
199
 
                    "Child process crmd exited .* rc=2",
 
202
                    "Child process crmd .* exited: Generic Pacemaker error",
200
203
                    "crm_ipc_read: Connection to pengine failed",
201
204
                    "error: mainloop_gio_callback: Connection to pengine.* closed",
202
205
                    "crit: pe_ipc_destroy: Connection to the Policy Engine failed",
203
206
                    "crmd.*I_ERROR.*save_cib_contents",
204
207
                    "crmd.*Input I_TERMINATE from do_recover",
205
 
                    "crmd.*do_exit: Could not recover from internal error",
 
208
                    "crmd.* Could not recover from internal error",
206
209
                    ], badnews_ignore = self.common_ignore)
207
210
 
208
211
        stonith_ignore = [
267
270
        aisexec_ignore = [
268
271
                    "error: ais_dispatch: Receiving message .* failed",
269
272
                    "crmd.*I_ERROR.*crmd_cib_connection_destroy",
270
 
                    "cib.*error: cib_ais_destroy: AIS connection terminated",
 
273
                    "cib.*error: cib_cs_destroy: AIS connection terminated",
271
274
                    #"crmd.*error: crm_ais_destroy: AIS connection terminated",
272
 
                    "crmd.*do_exit: Could not recover from internal error",
 
275
                    "crmd.* Could not recover from internal error",
273
276
                    "crmd.*I_TERMINATE.*do_recover",
274
 
                    "attrd.*attrd_ais_destroy: Lost connection to OpenAIS service!",
275
 
                    "stonithd.*error: AIS connection terminated",
 
277
                    "attrd.*attrd_cs_destroy: Lost connection to Corosync service!",
 
278
                    "stonithd.*error: Corosync connection terminated",
276
279
            ]
277
280
 
278
281
        aisexec_ignore.extend(self.common_ignore)
316
319
        self.ais_components()
317
320
 
318
321
        corosync_ignore = [
 
322
            r"error: pcmk_cpg_dispatch: Connection to the CPG API failed: Library error",
319
323
            r"pacemakerd.*error: pcmk_child_exit: Child process .* exited",
320
 
            r"error: send_cpg_message: Sending message via cpg FAILED",
321
 
            r"crmd.*error: verify_stopped: Resource .* was active at shutdown.  You may ignore this error if it is unmanaged.",
322
 
            r"error: pcmk_cpg_dispatch: Connection to the CPG API failed:",
323
 
            r"error: pcmk_cman_dispatch: Connection to cman failed: -1",
 
324
            r"cib.*error: cib_cs_destroy: Corosync connection lost",
 
325
            r"attrd.*error: attrd_cib_connection_destroy: Connection to the CIB terminated",
 
326
            r"stonith-ng.*error: stonith_peer_cs_destroy: Corosync connection terminated",
 
327
            r"error: pcmk_child_exit: Child process cib .* exited: Invalid argument",
 
328
            r"error: pcmk_child_exit: Child process attrd .* exited: Transport endpoint is not connected",
 
329
            r"error: pcmk_child_exit: Child process crmd .* exited: Link has been severed",
 
330
            r"lrmd.*error: crm_ipc_read: Connection to stonith-ng failed",
 
331
            r"lrmd.*error: mainloop_gio_callback: Connection to stonith-ng.* closed",
 
332
            r"lrmd.*error: stonith_connection_destroy_cb: LRMD lost STONITH connection",
 
333
            r"crmd.*do_state_transition: State transition .* S_RECOVERY",
 
334
            r"crmd.*error: do_log: FSA: Input I_ERROR",
 
335
            r"crmd.*error: do_log: FSA: Input I_TERMINATE",
 
336
            r"crmd.*error: pcmk_cman_dispatch: Connection to cman failed",
 
337
            r"crmd.*error: crmd_fast_exit: Could not recover from internal error",
324
338
            r"error: crm_ipc_read: Connection to cib_shm failed",
325
 
            r"error: mainloop_gio_callback: Connection to .* closed",
326
 
            r"crmd_cib_connection_destroys:",
327
 
            r"crmd.*error: do_recover: Action A_RECOVER .* not supported",
328
 
            r"error: do_log: FSA: Input I_TERMINATE.*do_recover",
329
 
            r"error: cib_ais_destroy: Corosync connection lost!  Exiting.",
330
 
            r"attrd.*error: attrd_cib_connection_destroy: Connection to the CIB terminated...",
331
 
            r"error: send_ais_text: Sending message .* via cpg: FAILED",
332
 
 
333
 
            r"error: crmd_quorum_destroy: connection terminated",
334
 
            r"error: lrm_state_verify_stopped: .* resources were active at lrm disconnect.",
335
 
 
336
 
            r"error: crm_ipc_read: Connection to stonith-ng failed",
337
 
            r"crit: tengine_stonith_connection_destroy: Fencing daemon connection failed",
338
 
            r"error: stonith_connection_destroy_cb: LRMD lost STONITH connection",
339
 
            r"error: stonith_connection_failed: STONITH connection failed",
340
 
            r"error: te_connect_stonith: Sign-in failed: triggered a retry",
341
 
            r"error: process_lrm_event: LRM operation Fencing.*",
342
 
            r"error: do_log: FSA: Input I_ERROR from crmd_cib_connection_destroy.* received in state",
343
 
            r"error: do_log: FSA: Input I_ERROR from do_shutdown_req.* received in state",
344
 
            r"do_state_transition: State transition .* S_RECOVERY .*origin=crmd_cib_connection_destroy",
345
 
            r"do_state_transition: State transition .* S_RECOVERY .*origin=do_shutdown_req",
346
 
 
347
 
            r"crmd.*error: cib_native_perform_op_delegate: Couldn't perform cib_slave operation",
348
 
            r"crmd.*error: cib_native_perform_op_delegate: CIB disconnected",
 
339
            r"error: mainloop_gio_callback: Connection to cib_shm.* closed",
 
340
 
349
341
            ]
350
342
 
351
343
        self.complist.append(Process(self, "corosync", pats = [
352
344
                    r"pacemakerd.*error: cfg_connection_destroy: Connection destroyed",
353
 
                    r"pacemakerd.*error: cpg_connection_destroy: Connection destroyed",
354
 
                    r"attrd_ais_destroy: Lost connection to Corosync service!",
355
 
                    r"stonith_peer_ais_destroy: AIS connection terminated",
356
 
                    r"cib_ais_destroy: Corosync connection lost!  Exiting.",
357
 
                    r"crmd.*do_exit: Could not recover from internal error",
 
345
                    r"pacemakerd.*error: mcp_cpg_destroy: Connection destroyed",
 
346
                    r"attrd_cs_destroy: Lost connection to Corosync service!",
 
347
                    r"stonith_peer_cs_destroy: Corosync connection terminated",
 
348
                    r"cib_cs_destroy: Corosync connection lost!  Exiting.",
 
349
                    r"crmd_(cs|quorum)_destroy: connection terminated",
358
350
                    r"pengine.*Scheduling Node .* for STONITH",
359
 
                    r"log_operation: Operation .* for host .* with device .* returned: 0",
360
351
                    r"tengine_stonith_notify: Peer .* was terminated .*: OK",
361
352
                    ], badnews_ignore = corosync_ignore, common_ignore = self.common_ignore))
362
353
 
432
423
 
433
424
        self.update({
434
425
            "Name"           : "crm-cman",
435
 
            "StartCmd"       : "service cman start && service pacemaker start",
436
 
            "StopCmd"        : "service pacemaker stop; service cman stop;",
 
426
            "StartCmd"       : "service pacemaker start",
 
427
            "StopCmd"        : "service pacemaker stop",
437
428
 
438
429
            "EpocheCmd"      : "crm_node -e --cman",
439
430
            "QuorumCmd"      : "crm_node -q --cman",