Red Hat Bugzilla – Bug 1009102
[ipa webui] update from 6.2 to 6.5 ,'Write DNS Configuration' permission does not show up in search results
Last modified: 2013-10-18 08:25:19 EDT
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:
Please attach /var/log/ipaupgrade.log.
File too big to attach. https://wiki.idm.lab.bos.redhat.com/qa/archive/ipa/webui/ipaupgrade.log
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?
Created attachment 799903 [details] before upgrade
Created attachment 799905 [details] after upgrade , cleaning cache and reload browser didn't help.
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 ----------------------------
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
Upstream ticket: https://fedorahosted.org/freeipa/ticket/3942