Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to create order with pacemaker 2.0.1 (Debian 10) #469

Open
and0x000 opened this issue Jul 18, 2019 · 1 comment
Open

fails to create order with pacemaker 2.0.1 (Debian 10) #469

and0x000 opened this issue Jul 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@and0x000
Copy link

and0x000 commented Jul 18, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: Agent 6.6.0 (from Stretch repo, but this seems irrelevant)
  • Ruby: ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
  • Distribution: Debian 10 (Buster)
  • Module version: 6.0.1
  • Pacemaker version: 2.0.1
  • crm/pcs: crm

How to reproduce (e.g Puppet code you use)

On a 2 node cluster with stonith disabled, create 2 primitive resources and try to apply an order on them.

What are you seeing

Checking the pacemaker configuration (crm configure show) after a puppet run, the orders are not applied.

What behaviour did you expect instead

I expect the order to be applied.

Output log

Debug: Cs_order[redis_master_before_ip](provider=crm): Loading update: order redis_master_before_ip INFINITY: ms_redis_server:demote failover_ip:stop symmetrical=true
Debug: PuppetX::Voxpupuli::Corosync::Provider::Crmsh: Executing ["/sbin/crm", "configure", "load", "update", "/tmp/puppet_crm_update20190716-7369-13emwtd"] in the CIB
Debug: Executing: '/sbin/crm configure load update /tmp/puppet_crm_update20190716-7369-13emwtd'
Error: /Cs_order[redis_master_before_ip]: Could not evaluate: Execution of '/sbin/crm configure load update /tmp/puppet_crm_update20190716-7369-13emwtd' returned 1: ERROR: (unpack_config) 	warning: Blind faith: not fencing unseen nodes
(get_ordering_type) 	warning: Support for 'score' in rsc_order is deprecated and will be removed in a future release (use 'kind' instead)
Warnings found during check: config may not be valid

Any additional information you'd like to impart

Adding the generated order manually via crm configure edit results in an yes/no prompt after saving.

(get_ordering_type)     warning: Support for 'score' in rsc_order is deprecated and will be removed in a future release (use 'kind' instead)
Warnings found during check: config may not be valid
Do you still want to commit (y/n)? 

A quick and dirty workaround might be, to pipe yes to the command.

For a clean solution, the module could use the new syntax to avoid the deprecation warning.

@and0x000 and0x000 changed the title fails to create order with pacemaker 2.0.1 fails to create order with pacemaker 2.0.1 (Debian 10) Jul 18, 2019
@juniorsysadmin juniorsysadmin added the bug Something isn't working label Aug 3, 2019
@XANi
Copy link

XANi commented Mar 26, 2020

temporary fix:
doing

xsltproc /usr/share/pacemaker/upgrade-2.10.xsl /etc/corosync/cib_config.xml >/root/cib_config.xml

to the XML and then applying it as usual "works"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants