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

Ken Gaillot kgaillot at redhat.com
Tue Mar 21 17:44:55 EDT 2023


On Tue, 2023-03-21 at 15:18 -0500, Ken Gaillot wrote:
> 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

Of course the above examples should use the new --element option as
well :-/

-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list