Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1054490

Summary: RFE: Users & group functionality in pcs
Product: Red Hat Enterprise Linux 7 Reporter: Chris Feist <cfeist>
Component: pcsAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: cluster-maint, fdinitto, rsteiger, slevine, tojeline
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.9.126-1.el7 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1054627 1129862 (view as bug list) Environment:
Last Closed: 2015-03-05 09:18:31 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:    
Bug Blocks: 1054627, 1129862    

Description Chris Feist 2014-01-16 22:56:30 UTC
Description of problem:
Need ability to control access by user and/or group

Comment 2 Chris Feist 2014-07-22 23:51:21 UTC
Committed upstream as ACLs here:

https://github.com/feist/pcs/commit/bb9eaeb1d12600eced6e679973ee1435ab265cff

Comment 4 Tomas Jelinek 2014-09-12 09:15:04 UTC
Before Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.115-32.el7.x86_64
[root@rh70-node1 ~]# pcs acl

Usage: pcs [-f file] [-h] [commands]...
Control and configure pacemaker and corosync.
{output trimmed}


After Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.126-1.el7.x86_64
[root@rh70-node1 pcs]# useradd user1
[root@rh70-node1 pcs]# usermod -aG haclient user1

[root@rh70-node2 pcs]# useradd user1
[root@rh70-node2 pcs]# usermod -aG haclient user1

[root@rh70-node1 pcs]# pcs property set enable-acl=true --force

[user1@rh70-node1 ~]$ pcs resource
Error: unable to get resource list from crm_resource
Error performing operation: Permission denied

[root@rh70-node1 ~]# pcs acl role create role1 read xpath /
[root@rh70-node1 ~]# pcs acl user create user1 role1
[root@rh70-node1 ~]# pcs acl
User: user1
  Roles: role1
Role: role1
  Permission: read xpath / (role1-read)

[user1@rh70-node1 ~]$ pcs resource
 dummy  (ocf::heartbeat:Dummy): Started
[user1@rh70-node1 ~]$ pcs resource create dummy1 Dummy
Error: Unable to update cib
Call cib_replace failed (-13): Permission denied

Comment 5 Tomas Jelinek 2014-09-15 16:24:13 UTC
Fix for enabling acl without force committed upstream:

https://github.com/feist/pcs/commit/d97269518313e40b001396b762ef4cf2344ae340


test:

[root@rh70-node1 ~]# pcs property 
Cluster Properties:
 cluster-infrastructure: corosync
 dc-version: 1.1.10-29.el7-368c726
 last-lrm-refresh: 1400240032
[root@rh70-node1 ~]# pcs property set enable-acl=true
[root@rh70-node1 ~]# pcs property 
Cluster Properties:
 cluster-infrastructure: corosync
 dc-version: 1.1.10-29.el7-368c726
 enable-acl: true
 last-lrm-refresh: 1400240032

Comment 9 errata-xmlrpc 2015-03-05 09:18:31 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, 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://rhn.redhat.com/errata/RHBA-2015-0415.html