Bug 2022028

Summary: [UX] Preserving a user account produces output saying it was deleted
Product: Red Hat Enterprise Linux 8 Reporter: David Voženílek <dvozenil>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact: lmcgarry
Priority: unspecified    
Version: 8.0CC: anikandr, frenaud, lmcgarry, mpolovka, rcritten, rjeffman, sumenon, tscherf
Target Milestone: rcKeywords: Triaged, UserExperience
Target Release: ---Flags: anikandr: needinfo?
pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.10-1.module+el8.7.0+15691+2b2c1dd5 Doc Type: Bug Fix
Doc Text:
.Preserving users accounts Previously, if you ran the `ipa user-del --preserve user_login` command to preserve a user account, the output incorrectly returned the message `Deleted user “user_login”`. This message incorrectly indicates that the user was deleted and not preserved as expected. With this update, the output now returns `Preserved user “user_login”`.
Story Points: ---
Clone Of:
: 2100227 (view as bug list) Environment:
Last Closed: 2022-11-08 09:35:45 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: 2100227    

Comment 1 Rob Crittenden 2022-05-02 12:47:56 UTC
The summary can be overridden. There are few examples in the idviews and trust plugins.

Comment 2 Florence Blanc-Renaud 2022-06-20 07:08:04 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/9187

Comment 3 Florence Blanc-Renaud 2022-06-21 06:50:27 UTC
Upstream PR: https://github.com/freeipa/freeipa/pull/6329

Comment 5 Florence Blanc-Renaud 2022-06-23 06:42:31 UTC
Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/ff4152539b96d309dcceaf854a3e0a49f435acff
https://pagure.io/freeipa/c/4984ff210a169129e4e56b10e54e9c795520855c


Upstream test available in ipatests/test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve

Comment 6 Florence Blanc-Renaud 2022-06-23 06:49:39 UTC
Note to doc team: the guide "Managing IdM users, groups, hosts, and access control rules" contains a note in the section "Preserving users using the command line" [1] that can be removed as soon as this fix is shipped in RHEL 8:

----- 8< -----
Note
Despite the output saying the user account was deleted, it has been preserved. 
----- >8 -----


[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_idm_users_groups_hosts_and_access_control_rules/managing-user-accounts-using-the-command-line_managing-users-groups-hosts#preserving-users-using-the-command-line_managing-idm-users-using-the-command-line

Comment 7 Michal Polovka 2022-07-28 09:55:36 UTC
Pre-verified using test compose with a package ipa-server-4.9.10-4.module+el8.7.0+15926+daa9f08b.x86_64 on RHEL8.7 machine

==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.8, pytest-7.0.1, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /root/freeipa/ipatests/.pytest_cache
rootdir: /usr/lib/python3.6/site-packages/ipatests
plugins: multihost-3.4
collected 4 items                                                                                                                                                                            

test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete PASSED                                                                                                                   [ 25%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_nopreserve PASSED                                                                                                        [ 50%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve_nopreserve PASSED                                                                                               [ 75%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve PASSED                                                                                                          [100%]

===================================================================================== 4 passed in 1.52s ======================================================================================

Full testing log is an attachment of this BZ. Marking as pre-verified, tested. Moving to later ITM for full verification.

Comment 14 Michal Polovka 2022-08-05 08:20:21 UTC
Verified using ipa-server-4.9.10-4.module+el8.7.0+15926+daa9f08b.x86_64 on HREL8.7 machine with automation from ipatests/test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve

==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.8, pytest-7.0.1, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /root/.pytest_cache
rootdir: /usr/lib/python3.6/site-packages/ipatests
plugins: multihost-3.4
collected 4 items                                                                                                                                                                            

test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete PASSED                                                                                                                   [ 25%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_nopreserve PASSED                                                                                                        [ 50%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve_nopreserve PASSED                                                                                               [ 75%]
test_xmlrpc/test_stageuser_plugin.py::TestActive::test_delete_preserve PASSED                                                                                                          [100%]

===================================================================================== 4 passed in 1.55s ======================================================================================

Therefore marking as verified. Full verification log is an attachment of this BZ.

Comment 17 errata-xmlrpc 2022-11-08 09:35:45 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 (idm:client and idm:DL1 bug fix and enhancement update), 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:7540