[ClusterLabs] Coming in Pacemaker 2.1.6: easier use of resource descriptions

Ken Gaillot kgaillot at redhat.com
Tue Mar 21 16:18:42 EDT 2023


Hi all,

Pacemaker has always supported letting users add arbitrary descriptions
to resources, but doing so required low-level XML changes.

With the Pacemaker 2.1.6 release expected in a couple of months, we aim
to make that a little easier.

crm_mon will now display descriptions with resources if given the --
show-detail option, and crm_resource --list will improve its existing
display of descriptions.

crm_resource gains an --element option, for use with --get-parameter,
--set-parameter, and --delete-parameter, to manage attributes of a
resource's XML element (<primitive>, <group>, <clone>, or <bundle>).
This will allow easier modification of descriptions, as well as other
attributes such as primitive's class, provider, and type.

Examples:


Set the description for a resource:

# crm_resource -r ip1 --set-parameter description -v "Floating IP for database client access"
Set attribute: name=description value=Floating IP for database client access


Query the description for a resource:

# crm_resource -r ip1 --get-parameter description
Floating IP for database client access

-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list