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 1461120 - Traceback seen in uninstall logfile for ipa-server
Summary: Traceback seen in uninstall logfile for ipa-server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-13 14:36 UTC by Sudhir Menon
Modified: 2018-10-11 06:30 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 06:30:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sudhir Menon 2017-06-13 14:36:28 UTC
Description of problem: Traceback seen in uninstall logfile for ipa-server 


Version-Release number of selected component (if applicable):
ipa-server-4.5.0-16.el7.x86_64

How reproducible: Always


Steps to Reproduce:
1. Install IPA server
2. Uninstall IPA server and check /var/log/ipaserver-uninstall.log

Actual results: The uninstall log file does show traceback even though the uninstall went fine.

2017-06-13T09:01:23Z DEBUG args=/usr/sbin/ipa-client-install --on-master --unattended --uninstall
2017-06-13T09:01:25Z DEBUG Process finished, return code=0
2017-06-13T09:01:25Z DEBUG Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 91, in _handle_execute_exception 
super(Continuous, self)._handle_execute_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 463, in _handle_execute_exception
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 424, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, in <lambda>
step = lambda: next(self.__gen)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
value = gen.send(prev_value)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 658, in _configure
next(executor)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 434, in __runner
exc_handler(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 463, in _handle_execute_exception
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 521, in _handle_exception
self.__parent._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 518, in _handle_exception
super(ComponentBase, self)._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 424, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, in <lambda>
step = lambda: next(self.__gen)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
value = gen.send(prev_value)
File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 71, in _uninstall
for _nothing in self._uninstaller(self.parent):
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/__init__.py", line 584, in main
uninstall(self)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 250, in decorated
func(installer)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 1164, in uninstall
sys.exit(rv)
SystemExit: 0
   
2017-06-13T09:01:25Z INFO The ipa-server-install command was successful

Expected results: Logging this as a bug, because the traceback contradicts the last message "ipa-server-install" command was successful which is displayed in the log.

Although the SystemExit code is 0, If we can fix this we can have a clean uninstall log file.

Additional info:

Comment 2 Petr Vobornik 2017-06-16 10:45:52 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7022

Comment 5 Florence Blanc-Renaud 2018-10-11 06:30:19 UTC
This issue does not happen any more on RHEL 7.6, it was probably fixed as a side-effect of the fix for https://pagure.io/freeipa/issue/7330.

# yum list ipa-server
ipa-server.x86_64                      4.6.4-10.el7

# ipa-server-install --uninstall -U
[...]
The ipa-client-install command was successful

# grep Traceback /var/log/ipaserver-uninstall.log 
#


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