Bug 2040619

Summary: Changing default pac type to 'nfs:NONE and MS-PAC' doesnot display error 'ipa: ERROR: no modifications to be performed'
Product: Red Hat Enterprise Linux 9 Reporter: Florence Blanc-Renaud <frenaud>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: frenaud, ipa-qe, myusuf, rcritten, sumenon, tscherf
Target Milestone: rcKeywords: Regression
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.8-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2031825 Environment:
Last Closed: 2022-05-17 12:44:20 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: 2031825    
Bug Blocks:    

Description Florence Blanc-Renaud 2022-01-14 09:43:26 UTC
The issue is also seen on RHEL 9.0 with ipa-server-4.9.8-1.el9.x86_64

+++ This bug was initially created as a clone of Bug #2031825 +++

Description of problem: Changing default pac type to 'nfs:NONE and MS-PAC' doesnot display warning 'ipa: ERROR: no modifications to be performed'

Version-Release number of selected component (if applicable):
ipa-server-4.9.8-1.module+el8.6.0+13485+f71eb528.x86_64

How reproducible: Always


Steps to Reproduce:
1. ipa config-show
2. ipa config-mod --pac-type=nfs:NONE --pac-type=MS-PAC

Actual results:
[root@server ~]# ipa config-mod --pac-type=nfs:NONE --pac-type=MS-PAC
  Default PAC types: MS-PAC, nfs:NONE
[root@server ~]# echo $?
0

Expected results:
"ipa: ERROR: no modifications to be performed"


Additional info:

--- Additional comment from Florence Blanc-Renaud on 2021-12-14 21:56:34 UTC ---

Easy to reproduce, and linked to the modifications related to Sid generation in ipa config-mod. I’ll work on a fix.

--- Additional comment from Florence Blanc-Renaud on 2021-12-15 09:04:18 UTC ---

Upstream ticket:
https://pagure.io/freeipa/issue/9063

--- Additional comment from Rob Crittenden on 2022-01-13 19:21:56 UTC ---

Fixed upstream
master:
https://pagure.io/freeipa/c/327e0232038d6ffaedcc72408cdbd8dd541a1f66
https://pagure.io/freeipa/c/325415bb66542455212b0613a79f3cc1c19c42a8

--- Additional comment from Florence Blanc-Renaud on 2022-01-14 08:51:23 UTC ---

Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/b9c42fed9b6f60801f908c368d0d97a2a69f7bb2
https://pagure.io/freeipa/c/cd735099e86304294217147ed578ac902fcf3dd3

Comment 5 Mohammad Rizwan 2022-02-10 10:38:14 UTC
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] ====================================== Final Report =======================================
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]             Test Date: Thu Feb 10 04:48:31 AM EST 2022         
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]                Total : [89]       
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]                Passed: [89]        
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]                Failed: [0]        
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]            Unfinished: [0]  
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]                Abort : [0]       
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  +-----------------------------[RPMs & OS: [RedHat - x86_64]-----------------------------+
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       ipa-client-4.9.8-2.el9.x86_64
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       ipa-client-common-4.9.8-2.el9.noarch
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       ipa-server-4.9.8-2.el9.x86_64
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       ipa-server-common-4.9.8-2.el9.noarch
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       ipa-server-dns-4.9.8-2.el9.noarch
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] |       sssd-ipa-2.6.2-2.el9.x86_64
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] ------------------------------------------------------------------------------------------
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  +-----------------------------------------------------------------------------------------+
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]      Test:[/ipa-server/rhel80/ipa-config/root]: [ Pass(89/89): 100% ] 
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  +-----------------------------------------------------------------------------------------+
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  +----------------------------------------------------------------------+
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]                     Fail / unfinished / ABORT [ Fail(0/89): 0% ]
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-]  +----------------------------------------------------------------------+
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] =========================== end of report [/tmp/rhts.report.20271.txt]===============================
2022-02-10T09:48:31+0000 [ip-10-0-201-64.rhos-] original rlJournalPrintText body saved as [/tmp/rhts.original.32323.txt]

Automation passed. Hence mrking the bug as verified.

http://idm-artifacts.usersys.redhat.com/freeipa/Nightly/RHEL9.0/2022-02-04/tier-1/bash-ipa-config/33//runner.log (Job is red because of failure in restraint which is unrelated to this bug.)

Comment 8 errata-xmlrpc 2022-05-17 12:44:20 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: ipa), 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:2387