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 2100227 - [UX] Preserving a user account produces output saying it was deleted
Summary: [UX] Preserving a user account produces output saying it was deleted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ipa
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.1
Assignee: Florence Blanc-Renaud
QA Contact: Ganna Kaihorodova
Filip Hanzelka
URL:
Whiteboard:
Depends On: 2022028
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-22 18:50 UTC by Florence Blanc-Renaud
Modified: 2022-11-15 10:32 UTC (History)
9 users (show)

Fixed In Version: ipa-4.10.0-1.el9
Doc Type: Bug Fix
Doc Text:
.The `ipa user-del --preserve user_login` output no longer indicates that the user was deleted 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”`. With this update, the output now returns `Preserved user “user_login”`.
Clone Of: 2022028
Environment:
Last Closed: 2022-11-15 10:00:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8406 0 None None None 2022-06-22 18:57:00 UTC
Red Hat Issue Tracker RHELPLAN-126019 0 None None None 2022-06-22 18:57:13 UTC
Red Hat Product Errata RHBA-2022:7988 0 None None None 2022-11-15 10:00:23 UTC

Description Florence Blanc-Renaud 2022-06-22 18:50:41 UTC
+++ This bug was initially created as a clone of Bug #2022028 +++

To preserve a user account, the administrator can use the `ipa user-del` command with the `--preserve` option, which works as intended. However, in the output, it says that the user account has been deleted rather then preserved. In combination with the fact that we use "del" in the command, this can be confusing. 

One customer has filed a DDF bug about this: https://bugzilla.redhat.com/show_bug.cgi?id=2014823

The documentation team has extended the introduction and added a note about the output to decrease the potential for confusion. However, a much better option would be to change at least the output wording.

--- Additional comment from Rob Crittenden on 2022-05-02 12:47:56 UTC ---

The summary can be overridden. There are few examples in the idviews and trust plugins.

--- Additional comment from Florence Blanc-Renaud on 2022-06-20 07:08:04 UTC ---

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

--- Additional comment from Florence Blanc-Renaud on 2022-06-21 06:50:27 UTC ---

Upstream PR: https://github.com/freeipa/freeipa/pull/6329

Comment 2 Florence Blanc-Renaud 2022-06-23 06:42:37 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 3 Florence Blanc-Renaud 2022-06-23 06:50:51 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 9:

----- 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/9/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 9 errata-xmlrpc 2022-11-15 10:00:11 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 (ipa 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:7988


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