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 2160389 - 'ERROR Could not remove /tmp/tmpbkw6hawo.ipabkp' can be seen prior to 'ipa-client-install' command was successful.
Summary: 'ERROR Could not remove /tmp/tmpbkw6hawo.ipabkp' can be seen prior to 'ipa-cl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: anuja
URL:
Whiteboard:
Depends On:
Blocks: 2161284
TreeView+ depends on / blocked
 
Reported: 2023-01-12 08:45 UTC by Sudhir Menon
Modified: 2023-05-16 09:31 UTC (History)
4 users (show)

Fixed In Version: ipa-4.9.11-5.module+el8.8.0+18147+84fe6ec1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2161284 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:29:08 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 9306 0 None None None 2023-01-12 10:26:38 UTC
Red Hat Issue Tracker FREEIPA-9302 0 None None None 2023-01-12 08:45:39 UTC
Red Hat Issue Tracker RHELPLAN-144915 0 None None None 2023-01-12 08:45:44 UTC
Red Hat Product Errata RHBA-2023:2794 0 None None None 2023-05-16 08:29:42 UTC

Description Sudhir Menon 2023-01-12 08:45:03 UTC
Description of problem: 'ERROR Could not remove /tmp/tmpbkw6hawo.ipabkp' can be seen prior to 'ipa-client-install' command was successful.

Version-Release number of selected component (if applicable):
ipa-server-4.9.11-3.module+el8.8.0+17608+39b88723.x86_64
389-ds-base-1.4.3.32-1.module+el8.8.0+17275+1a8f9618.x86_64

How reproducible:
Always

Steps to Reproduce:
ipa-server-install --setup-dns -a Secret123 -p Secret123 -n rhel88.test -r RHEL88.TEST -U --forwarder=<ip-address>

Actual results:
Although ipa-server-install is successful, below message is seen.
Configured /etc/openldap/ldap.conf
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring rhel88.test as NIS domain.
Client configuration complete.
Could not remove /tmp/tmpbkw6hawo.ipabkp    <-----
The ipa-client-install command was successful
==============================================================================
Setup complete

Expected results:
Fix the error message 'Could not remove /tmp/tmpbkw6hawo.ipabkp'

Additional info:

Comment 2 Florence Blanc-Renaud 2023-01-12 09:45:19 UTC
The client installer code can be called in 3 different ways:
- from ipa-client-install CLI
- from ipa-replica-install CLI if the client is not already installed
- from ipa-server-install

In the last case, the client installer is called with options.on_master = True. As a result it's skipping the part that is creating the krb5 configuration:
https://github.com/freeipa/freeipa/blob/5419864c7ef893abc4717847fa6ea272d0c659fe/ipaclient/install/client.py#L2760
    if not options.on_master:
        nolog = tuple()
        configure_krb5_conf(
            cli_realm=cli_realm,
            cli_domain=cli_domain,
            cli_server=cli_server,
            cli_kdc=cli_kdc,
            dnsok=False,
            filename=krb_name,
            client_domain=client_domain,
            client_hostname=hostname,
            configure_sssd=options.sssd,
            force=options.force)

The configure_krb5_conf method is the place where the krb5.conf file is backup'ed with the extension .ipabkp. For a master installation, this code is not called and the /tmp/xxx.ipabkp file does not exist => delete raises an error.

Comment 3 Florence Blanc-Renaud 2023-01-12 10:26:36 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/9306

Comment 4 Rob Crittenden 2023-01-13 23:08:04 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/97330785ada05f1eee6745e3909a17b62fed9673

Comment 5 Florence Blanc-Renaud 2023-01-16 07:46:09 UTC
Fixed upstream
ipa-4-10:
https://pagure.io/freeipa/c/894dca12c120f0bfa705307a0609da47326b8fb2

Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/6f50b00953c0000d6da8db0f5e8974ae33d7b5d5

Comment 13 errata-xmlrpc 2023-05-16 08:29:08 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-2023:2794


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