On Fri, Apr 24, 2009 at 01:22, Mark Hamzy <ha...@us.ibm.com> wrote:
> Here is the start of a patch. Right now I am using hardcoded values for
> green/yellow/red. I am posting this to see if I am modifying the correct
> part of pacemaker.

Mostly.
The biggest problem is that your patch wont work if no rsc_location
constraints are defined.

Instead of the change to generate_location_rule(), create a wrapper
for rsc2node_new() and call it from stage0 in a loop:

        slist_iter(
                rsc, resource_t, data_set->resources, lpc,
                apply_system_heath(rsc, data_set);
                );


> Also, where and how should the system defined values for
> g/y/r be stored?

as per previous email

_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to