ClusterLabs / hawk

A web-based GUI for managing and monitoring the Pacemaker High-Availability cluster resource manager
http://hawk-ui.github.io/
GNU General Public License v2.0
151 stars 51 forks source link

Use crm_attribute --list-options #276

Closed aleksei-burlakov closed 7 months ago

aleksei-burlakov commented 8 months ago

Use crm_attribute --list-options

pacemaker-v3+ enables crm_attribute --list-options which is preferable over the "pacemaker-schedulerd", "pacemaker-controld", "pacemaker-based", or even older "pengine", "crmd", "cib".

liangxin1300 commented 8 months ago

Do we have pacemaker 3.0 package available now? If not, how to test this for now?

zzhou1 commented 8 months ago

Do we have pacemaker 3.0 package available now? If not, how to test this for now?

FYI, This aims for PED-8016 pacemaker 2.1.8 as well, which will be released almost the same time of pacemaker 3.0, in mid-2024. Not sure if @gao-yan has either of them somewhere?

gao-yan commented 8 months ago

A revision of pacemaker with "crm_attribute --list-options" is already in Factory.

liangxin1300 commented 8 months ago

A revision of pacemaker with "crm_attribute --list-options" is already in Factory.

Can you show me the link? Thanks!

aleksei-burlakov commented 8 months ago

A revision of pacemaker with "crm_attribute --list-options" is already in Factory.

Can you show me the link? Thanks!

You can just use the tumbleweed, it's already there

liangxin1300 commented 8 months ago

It looks like the output of /usr/libexec/pacemaker/pacemaker-fenced metadata not included in crm_attribute --list-options

aleksei-burlakov commented 7 months ago

It looks like the output of /usr/libexec/pacemaker/pacemaker-fenced metadata not included in crm_attribute --list-options

That's right. For some reason there are no options from pacemaker-fenced. Besides, the crm_attribute --list-options=cluster --all shows none of them either. So it looks like it's designed this way. But maybe @gao-yan can help us. Hi Yan, do you know why crm_attribute --list-options=cluster --all shows no options from /usr/libexec/pacemaker/pacemaker-fenced metadata . Maybe they are not resource options?

gao-yan commented 7 months ago

The metadata from pacemaker-fenced metadata is not about cluster options. It lists the supported parameters that can be configured for fencing resources.

The metadata is going to be provided from another CLI like crm_resource --list-options fencing --output-as xml

liangxin1300 commented 7 months ago

The metadata is going to be provided from another CLI like crm_resource --list-options fencing --output-as xml

Since which version?

gao-yan commented 7 months ago

The metadata is going to be provided from another CLI like crm_resource --list-options fencing --output-as xml

Since which version?

It'll be in 2.1.8 and 3.0.0. And pacemaker-fenced metadata is deprecated but will be retained at least for 2.1.8 though.

BTW, there's a pacemaker revision from the main branch with the CLI "crm_resource --list-options fencing/primitive" submitted into the factory devel project.