HomeClusterLabs Projects

Refactor: daemons: Add some additional errors for when startup fails.

Description

Refactor: daemons: Add some additional errors for when startup fails.

Unfortunately, attrd_cib_connect and attrd_cluster_connect use crm_err()
for all their error reporting instead of either passing up a useful
return code or updating a GError. attrd_cib_connect we could change,
but the important parts of attrd_cluster_connect happen several function
calls down. And if we do change them, we would end up removing error
messages from log files that people might be depending on.

So for now, just print generic error messages to the screen on failure.
This at least hints at where the problem is instead of silently failing.

Details

Provenance
clumensAuthored on Jan 30 2023, 3:39 PM
Parents
rP50675bb5c3a2: Feature: daemons: Add a standalone argument for attrd.
Branches
Unknown
Tags
Unknown