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 2022028 - [UX] Preserving a user account produces output saying it was deleted [NEEDINFO]
Summary: [UX] Preserving a user account produces output saying it was deleted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
lmcgarry
URL:
Whiteboard:
Depends On:
Blocks: 2100227
TreeView+ depends on / blocked
 
Reported: 2021-11-10 15:34 UTC by David Voženílek
Modified: 2022-11-08 10:25 UTC (History)
8 users (show)

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”`.
Clone Of:
: 2100227 (view as bug list)
Environment:
Last Closed: 2022-11-08 09:35:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:
anikandr: needinfo?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 9187 0 None None None 2022-06-20 07:08:06 UTC
Red Hat Issue Tracker FREEIPA-7323 0 None None None 2021-11-10 15:36:18 UTC
Red Hat Issue Tracker RHELPLAN-102428 0 None None None 2021-11-10 19:57:23 UTC
Red Hat Product Errata RHBA-2022:7540 0 None None None 2022-11-08 09:36:23 UTC

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


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