HomeClusterLabs Projects

Log: liblrmd: improve messages when loading Pacemaker Remote key

Description

Log: liblrmd: improve messages when loading Pacemaker Remote key

This logs a single message on success by having just the cache functions log
success, which also fixes potentially wrong information: previously, if an
explicit environment location could not be read, but the default could, it
would wrongly log that the key was being used from the environment location
when the default was retrieved from cache.

This logs a single message on failure, listing all locations attempted.
Previously, it would warn separately for the environment and default locations,
and never mention the Corosync fallback location.

This avoids trying (and logging) a default location twice if the
environment variable is explicitly set to it but it is not readable.

Details

Provenance
kgaillotAuthored on May 7 2021, 1:29 PM
Parents
rP5aef38540bee: Refactor: liblrmd: cache PCMK_authkey_location value
Branches
Unknown
Tags
Unknown

Event Timeline