Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1368754

Summary: ipa server uninstall fails with Python "Global Name error"
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Kasurde <akasurde>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: mkolaja, pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.4.0-9.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 06:01:49 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: 1366991    
Attachments:
Description Flags
ipa-server-uninstall.log
none
console.log none

Description Abhijeet Kasurde 2016-08-21 05:17:59 UTC
Description of problem:
While performing http://www.freeipa.org/page/V4/Manage_replication_topology_4_4/Test_Plan#Test_case:_ipa_server-del_command

following error message is encountered on second replica 

[root@hp-sl2x170zg6-02 ~]# ipa-server-install --uninstall -U
ipa         : ERROR    global name 'ScriptError' is not defined


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

How reproducible:
100%

Steps to Reproduce:
1. Perform steps mentioned in FreeIPA Manage Replica Topology 4.4 Test plan related to "server_del API call is executed at ipa-server-install --uninstall on the replica under domain level 1"

Actual results:
Python Global name error is shown

Expected results:
server uninstall should succes


Additional info:
Following change is required 

[root@hp-sl2x170zg6-02 ~]# diff /usr/lib/python2.7/site-packages/ipaserver/install/server/install.py /tmp/install.py
19d18
< from ipapython.admintool import ScriptError

Comment 1 Abhijeet Kasurde 2016-08-21 05:18:37 UTC
Created attachment 1192538 [details]
ipa-server-uninstall.log

Comment 3 Petr Vobornik 2016-08-22 07:35:23 UTC
A rebase issue where fea56fefff48b0d8eb147c2c2c511c869a1eadf0 depends on import introduced in  5776f1e90000ccfc24689c99951864248ed01045 but the latter was not backported. Backport of the former should contain the ScriptError import

Comment 4 Petr Vobornik 2016-08-24 16:11:34 UTC
Putting to POST to indicate that no new patch is needed, but the one in comment 3 needs to be properly backported.

Comment 7 Abhijeet Kasurde 2016-09-06 09:57:23 UTC
Created attachment 1198155 [details]
console.log

Verified using IPA version ::
ipa-server-4.4.0-9.el7.x86_64


Marking BZ as verified.

Comment 9 errata-xmlrpc 2016-11-04 06:01:49 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, 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://rhn.redhat.com/errata/RHBA-2016-2404.html