Hi all,
While setting no_quorum_policy to freeze & stonith_enabled,
heartbeat keeps complaining:
"""
ERROR: unpack_operation: Stonith resources (eg. stonith_APS06:3)
cannot require fencing to start
"""
It's caused by a logic error(to me at least), which can be fixed by
the attached patch.
Any comments on how to clean it up?
--- utils.c.orig 2007-11-08 16:26:16.000000000 +0800
+++ utils.c 2007-11-08 16:30:04.000000000 +0800
@@ -604,9 +604,13 @@
class = g_hash_table_lookup(action->rsc->meta, "class");
if(safe_str_eq(class, "stonith")) {
- if(action->needs == rsc_req_stonith) {
- crm_config_err("Stonith resources (eg. %s) cannot require"
- " fencing to start", action->rsc->id);
+ if(action->needs == rsc_req_stonith) {
+ if (data_set->noquorum_policy == no_quorum_freeze
+ && data_set->stonith_enabled) {
+ } else {
+ crm_config_err("Stonith resources (eg. %s) cannot require"
+ " fencing to start", action->rsc->id);
+ }
}
action->needs = rsc_req_nothing;
value = "nothing (fencing override)";
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/