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 1009102 - [ipa webui] update from 6.2 to 6.5 ,'Write DNS Configuration' permission does not show up in search results
Summary: [ipa webui] update from 6.2 to 6.5 ,'Write DNS Configuration' permission doe...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kosek
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-17 17:06 UTC by Xiyang Dong
Modified: 2013-10-18 12:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
When an Identity Management server installed on Red Hat Enterprise Linux 6.2 is updated to the version provided by Red Hat Enterprise Linux 6.4 or 6.5, the new pbac permission "Write DNS Configuration" is created without any of the required object classes. Consequently, the permission may not show up on the Identity Management Web UI permission page or when the --sizelimit parameter is used for the CLI permission-find command. The permission is still accessible using the command line when the --sizelimit option is not specified. To work around this problem, run the following command on the server to trigger the DNS permission update process again and fix the list of permission object classes: ]# ipa-ldap-updater --ldapi /usr/share/ipa/updates/40-dns.update This problem can also be avoided when a Red Hat Enterprise Linux 6.4 or 6.5 replica is installed or when an Identity Management server is reinstalled or upgraded.
Clone Of:
Environment:
Last Closed: 2013-09-24 13:33:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
before upgrade (428.21 KB, image/png)
2013-09-19 12:14 UTC, Xiyang Dong
no flags Details
after upgrade , cleaning cache and reload browser didn't help. (368.65 KB, image/png)
2013-09-19 12:16 UTC, Xiyang Dong
no flags Details

Description Xiyang Dong 2013-09-17 17:06:16 UTC
Description of problem:

Update from 6.2 to 6.5 

ipa permission-find --all dns 
lists 5 permissions - 
add dns entries
read dns entries
remove dns entries
update dns entries
write dns configuration

But in UI, a search for 'dns' in rbac permissions page lists only:
read dns entries
read dns entries
remove dns entries
update dns entries

But go to Privileges -click DNS Administrators (or DNS Servers) 
it lists out all 5 permissions including write dns configuration .

The only issue is this permission exists but not showing in the search result after an upgrade from 6.2 to 6.5 


Version-Release number of selected component (if applicable):
ipa-server-2.1.3-9.el6.x86_64 to ipa-server-3.0.0-35.el6.x86_64 

How reproducible:
Always

Steps to Reproduce:
see above

Actual results:
'Write DNS Configuration' permission does not show up in search results

Expected results:
'Write DNS Configuration' permission show ups in search results

Additional info:

Comment 2 Rob Crittenden 2013-09-17 17:46:45 UTC
Please attach /var/log/ipaupgrade.log.

Comment 3 Xiyang Dong 2013-09-17 18:07:52 UTC
File too big to attach.

https://wiki.idm.lab.bos.redhat.com/qa/archive/ipa/webui/ipaupgrade.log

Comment 4 Martin Kosek 2013-09-18 07:34:53 UTC
So you are saying that after 6.2 to 6.5 upgrade, "permission-find dns" command run in CLI returns "write dns configuration", but when you do "dns" permission search in UI, then it does not work?

If this is the case, it seems to me as some caching problem in UI. Adding Petr to advise.

Yi, did you by any chance opened the UI in 6.2, upgrade and then tried the search in the same browser? Would cleaning the cache of the browser and loading a fresh UI help?

Comment 5 Xiyang Dong 2013-09-19 12:14:55 UTC
Created attachment 799903 [details]
before upgrade

Comment 6 Xiyang Dong 2013-09-19 12:16:28 UTC
Created attachment 799905 [details]
after upgrade , cleaning cache and reload browser didn't help.

Comment 7 Petr Vobornik 2013-09-19 14:07:30 UTC
I checked the UI on that machine and results are:
* it's not Web UI issue - it doesn't get the data from IPA server
* there is definitely something wrong with combination of --sizelimit=0 option and 'Write DNS Configuration' permission, see commands below:

I also tried fresh installation(no update) of ipa-server-3.0.0-36.el6.x86_64 on RHEL 6.5 and there the command behaves correctly, so it's really an update issue.

[root@ms62 ~]# ipa permission-find dns --pkey-only --sizelimit=0
---------------------
4 permissions matched
---------------------
  Permission name: add dns entries

  Permission name: Read DNS Entries

  Permission name: remove dns entries

  Permission name: update dns entries
----------------------------
Number of entries returned 4
----------------------------

[root@ms62 ~]# ipa permission-find dns --pkey-only 
---------------------
5 permissions matched
---------------------
  Permission name: add dns entries

  Permission name: Read DNS Entries

  Permission name: remove dns entries

  Permission name: update dns entries

  Permission name: Write DNS Configuration
----------------------------
Number of entries returned 5
----------------------------

[root@ms62 ~]# ipa permission-find hbac --pkey-only 
---------------------
9 permissions matched
---------------------
  Permission name: Add HBAC rule

  Permission name: Add HBAC service groups

  Permission name: Add HBAC services

  Permission name: Delete HBAC rule

  Permission name: Delete HBAC service groups

  Permission name: Delete HBAC services

  Permission name: Manage HBAC rule membership

  Permission name: Manage HBAC service group membership

  Permission name: Modify HBAC rule
----------------------------
Number of entries returned 9
----------------------------

[root@ms62 ~]# ipa permission-find hbac --pkey-only --sizelimit=0
---------------------
9 permissions matched
---------------------
  Permission name: Add HBAC rule

  Permission name: Add HBAC service groups

  Permission name: Add HBAC services

  Permission name: Delete HBAC rule

  Permission name: Delete HBAC service groups

  Permission name: Delete HBAC services

  Permission name: Manage HBAC rule membership

  Permission name: Manage HBAC service group membership

  Permission name: Modify HBAC rule
----------------------------
Number of entries returned 9
----------------------------

Comment 8 Martin Kosek 2013-09-24 08:41:56 UTC
I investigated the machine as well, there is a small glitch in upgrade procedure, when the "Write DNS Configuration" permission object does not get "ipapermission" objectclass as other permission objects. This cause 

# Write DNS Configuration, permissions, pbac, testrelm.com
dn: cn=Write DNS Configuration,cn=permissions,cn=pbac,dc=testrelm,dc=com
objectClass: groupofnames
objectClass: top
member: cn=DNS Administrators,cn=privileges,cn=pbac,dc=testrelm,dc=com
member: cn=DNS Servers,cn=privileges,cn=pbac,dc=testrelm,dc=com
cn: Write DNS Configuration
description: Write DNS Configuration

It can be workarounded either by doing any other package update, or just by running:
# ipa-ldap-updater --ldapi /usr/share/ipa/updates/40-dns.update

Comment 10 Martin Kosek 2013-09-24 08:54:54 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3942


Note You need to log in before you can comment on or make changes to this bug.