Open liangxin1300 opened 8 months ago
Two solutions:
delete
command can only delete the whole block of section, given the section id, such as build-resource-defaults
, cib-bootstrap-options
, node id and resource idproperty
and get_property
In anyways, crmsh will call crm_attribute --type <section_type> --name <property_name> --delete
command;
Since the valid values of --type
are: crm_config, rsc_defaults, op_defaults, tickets, we can also delete resource and operation default options
What do you think?
@zzhou1 @nicholasyang2022 @gao-yan
Do we really need a subcommand, which just mirrors the same behavior of crm_attribute --delete
? I think crmsh is expected to provide more abstract and higher level interfaces than pacemaker command line utils.
Have to use
crm_attribute
likecrm_attribute --delete -t crm_config --name stonith-enabled
, which is not convenient