HomeClusterLabs Projects

Fix: controller: don't try to execute agent action at shutdown

Description

Fix: controller: don't try to execute agent action at shutdown

Normally, agent execution is not possible at shutdown. However, when metadata
is needed for some action, the agent can be called asynchronously, and when the
metadata action returns, the original action is performed. If the metadata is
initiated before shutdown, but completes after shutdown has begun, do not try
to attempt the original action, so we avoid unnecessary error logs.

Details

Provenance
kgaillotAuthored on Aug 2 2023, 4:55 PM
Parents
rP96a7e08e196d: Merge pull request #3174 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown