Browse Source

Fix os version test

On RHEL7 we see:
Error: Could not find resource 'Service[pcsd]' for relationship from 'File[etc-pacemaker-authkey]' on node overcloud-controller-2.localdomain

I think a small typo slipped into: 56a1112001 "Update os variables"

 if (versioncmp($::os['release']['major'], '7.0') < 0) {

should be

 if (versioncmp($::os['release']['full'], '7.0') < 0) {

Otherwise the first if is always true and we end up with pcsd_mode =
false which is why we get the error 'Error: Could not find resource
'Service[pcsd]' for relationship from 'File[etc-pacemaker-authkey]'

Tested this and I correctly get past the errors on rhel7.

Change-Id: I7e7f6bc378b3c0f3f3f6e286a09bc8339d3ce70e
Closes-Bug: #1869586
tags/1.0.0
Michele Baldessari 3 months ago
parent
commit
987489a97b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      manifests/params.pp

+ 1
- 1
manifests/params.pp View File

@@ -35,7 +35,7 @@ class pacemaker::params {
$pcs_bin = '/sbin/pcs'
$pcsd_sysconfig = '/etc/sysconfig/pcsd'
$pcmk_sysconfig = '/etc/sysconfig/pacemaker'
if (versioncmp($::os['release']['major'], '7.0') < 0) {
if (versioncmp($::os['release']['full'], '7.0') < 0) {
$package_list = ['pacemaker','pcs','fence-agents','cman']
# TODO in el6.6, $pcsd_mode should be true
$pcsd_mode = false


Loading…
Cancel
Save