[ClusterLabs] [Question and Request] QUERY behavior of glue's plugin.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Sat Sep 1 20:14:17 EDT 2018


Hi All,

The behavior of glue-based STONITH plug-in such as external / ipmi has been changed since PM 1.1.16.
Up to PM 1.1.15, "status" was executed in QUERY of STONITH.
For PM 1.1.16 and later, "list" is executed.

This is due to the following changes.
 - https://github.com/ClusterLabs/pacemaker/commit/3f2d1b1302adc40d9647e854187b7a85bd38f8fb

We want to use the same status behavior as PM 1.1.15.

I confirmed the source code, it looks like the following.

---
static const char *
target_list_type(stonith_device_t * dev)
{
    const char *check_type = NULL;

    check_type = g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTCHECK);

    if (check_type == NULL) {

        if (g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTLIST)) {
            check_type = "static-list";
        } else if (g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTMAP)) {
            check_type = "static-list";
        } else if(is_set(dev->flags, st_device_supports_list)){
            check_type = "dynamic-list";
        } else if(is_set(dev->flags, st_device_supports_status)){
            check_type = "status";
        } else {
            check_type = "none";
        }
    }

    return check_type;
}
---

We have made the following settings in order to execute "status" even after PM 1.1.16.
Is this setting correct?

(snip)
        params \
                pcmk_host_check="status" \
(snip)

Also, if this setting is correct, there is no document for "status" setting.

 - http://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_differences_of_stonith_resources.html
 - http://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html/Pacemaker_Explained/_special_treatment_of_stonith_resources.html

Can you add a description such as "status" to the document?

Best Regards,
Hideo Yamauchi.



More information about the Users mailing list