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

Pacemaker Fact & corosync.conf enhancement #535

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pdemonaco
Copy link
Contributor

Pull Request (PR) description

Two core changes:

  • Adds a clustered fact called corosync to determine the version of pcs
  • Includes the node name for each entry in corosync.conf to correct a bug when running pcs cluster config

Adds a new cluster fact for corosync environment details. Currently this
is limited to extracting the version of PCS installed on the current
machine so that it can be used to control behavior in other code.
This causes the pcsd authentication commands to be determined based on the new corosync facts instead of the original hiera based logic.

Not a significant change, however, it is important for environments where the corosync class is declared instead of being included.
When the member list is names, not IP addresses, and the member name
array is empty use the former to populate the name: in the nodelist.

This addresses a parsing issue in `pcs cluster config` described in the
redhat article below. It also ensures other commands that depend on the
config file work as expected.

https://access.redhat.com/solutions/6992919
Hiera defaults were missing for the 10 and 11 versions of Debian causing
a portion of the unit tests to fail. This tweak corrects that behavior
by adding the definitions which subseqently allow qdevice to compile as
expected.
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.

1 participant