hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Use crm_attribute --list-options

Open aleksei-burlakov opened this issue 1 year ago • 5 comments

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".

aleksei-burlakov avatar Mar 21 '24 19:03 aleksei-burlakov

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

liangxin1300 avatar Mar 22 '24 03:03 liangxin1300

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?

zzhou1 avatar Mar 22 '24 03:03 zzhou1

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

gao-yan avatar Mar 22 '24 07:03 gao-yan

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

Can you show me the link? Thanks!

liangxin1300 avatar Mar 22 '24 07:03 liangxin1300

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

aleksei-burlakov avatar Mar 22 '24 09:03 aleksei-burlakov

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

liangxin1300 avatar Apr 03 '24 23:04 liangxin1300

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?

aleksei-burlakov avatar Apr 16 '24 07:04 aleksei-burlakov

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

gao-yan avatar Apr 17 '24 13:04 gao-yan

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

Since which version?

liangxin1300 avatar Apr 18 '24 02:04 liangxin1300

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.

gao-yan avatar Apr 18 '24 08:04 gao-yan