HomeClusterLabs Projects

galera: Fix instance name in master_exists()

Description

galera: Fix instance name in master_exists()

Under certain circumstances $OCF_RESOURCE_INSTANCE as passed to the
resource agent contains and instance number (e.g. "galera:0"). This
happens e.g. when using "crm_resource --force-stop/--force-start". In
those cases "master_exists()" doesn't work correctly.

Use $INSTANCE_ATTR_NAME which is set in "mysql-common.sh", based on
$OCF_RESOURCE_INSTANCE with the instance number stripped.

Details

Provenance
Ralf Haferkamp <rhafer@suse.de>Authored on Aug 24 2017, 8:31 AM
Parents
rR720c72d14e2f: Merge pull request #1023 from CAPSLOCK2000/master
Branches
Unknown
Tags
Unknown

Event Timeline