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

[crmsh-4.4] Dev: utils: Change the way to get pacemaker's version #1156

Conversation

liangxin1300
Copy link
Collaborator

@liangxin1300 liangxin1300 commented Mar 27, 2023

backport #1125, #1032

- Use '/usr/sbin/pacemakerd --version'
- Raise fatal error if failed to get pacemaker's version
- Remove unused codes
…601)

** Problem
1. Start corosync.service alone, like, manually run 'systemctl start corosync',
   then run 'crm cluster stop' will failed
2. Run 'crm cluster stop --all' quickly after 'crm cluster start --all',
   then got erro 'ERROR: No DC found currently, please wait if the cluster is still starting'

** Solution:
For the case 1, simply stop corosync.service;
For the case 2, should retry to get the DC in a loop, with a default timeout(dc-deadtime+5s), then
raise the error while reach the timeout
@liangxin1300 liangxin1300 force-pushed the 20230217_pacemaker_version_crmsh44 branch from b7073ce to f55d805 Compare July 11, 2023 13:13
@liangxin1300 liangxin1300 merged commit eb94f41 into ClusterLabs:crmsh-4.4 Jul 17, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants