Bug 2049754

Summary: ha_cluster - set permissions for haclient group
Product: Red Hat Enterprise Linux 9 Reporter: Rich Megginson <rmeggins>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Jakub Haruda <jharuda>
Severity: unspecified Docs Contact: Eliane Ramos Pereira <elpereir>
Priority: unspecified    
Version: 9.0CC: elpereir, gfialova, jharuda, mnovacek, nhosoi, rhel-cs-system-management-subsystem-qe, spetrosi, tojeline
Target Milestone: rcKeywords: Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:ha_cluster
Fixed In Version: rhel-system-roles-1.15.0-1.el9 Doc Type: Bug Fix
Doc Text:
.The HA Cluster System Role now allows `haclient` group to access and manage the cluster Previously, users had to run the HA Cluster System Role with default `pcsd` permissions (ha_cluster_pcs_permission_list variable) to configure a cluster. As a consequence, only 'hacluster' users were allowed to access the cluster. This fix sets default permissions to allow group 'haclient' to manage the cluster. As a result, all members of the 'haclient' group are allowed to access and manage the cluster by default.
Story Points: ---
Clone Of: 2049747 Environment:
Last Closed: 2022-05-17 13:03:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2049747    
Bug Blocks:    
Deadline: 2022-02-08   

Description Rich Megginson 2022-02-02 16:27:22 UTC
+++ This bug was initially created as a clone of Bug #2049747 +++

Description of problem:

Previously, permissions were set for 'hacluster' group. Correct name of the group is 'haclient'.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Tomas Jelinek 2022-02-03 10:03:10 UTC
Verification instructions:
1) run the ha_cluster role with default settings
2) cat /var/lib/pcsd/pcs_settings.conf
3) find "permissions" section
before fix:
  "permissions": {
    "local_cluster": [
      {
        "type": "group",
        "name": "hacluster",
        "allow": [
          "grant",
          "read",
          "write"
        ]
      }
    ]
  }
after fix:
  "permissions": {
    "local_cluster": [
      {
        "type": "group",
        "name": "haclient",
        "allow": [
          "grant",
          "read",
          "write"
        ]
      }
    ]
  }

Comment 13 errata-xmlrpc 2022-05-17 13:03:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: rhel-system-roles), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2443