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 691883

Summary: Error: CRITICAL Failed to remove SELinux rule for port 7390 when uninstalling server
Product: Red Hat Enterprise Linux 6 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: benl, dpal, jgalipea, shaines
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.0.0-19.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:44:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Namita Soman 2011-03-29 19:11:30 UTC
Description of problem:
Uninstall IPA server using command:
ipa-server-install --uninstall -d

root        : DEBUG    stdout=
root        : DEBUG    stderr=
root        : DEBUG    args=/usr/sbin/semanage port -d -t ldap_port_t -p tcp 7390
root        : DEBUG    stdout=
root        : DEBUG    stderr=/usr/sbin/semanage: Port tcp/7390 is defined in policy, cannot be deleted

root        : CRITICAL Failed to remove SELinux rule for port 7390


After uninstall, ran command:
semanage port -l | grep 7390
dogtag_port_t                  tcp      7390

And came across bug, possibly related, causing the issue (?)
https://bugzilla.redhat.com/show_bug.cgi?id=684269

Version-Release number of selected component (if applicable):
ipa-server-2.0.0-17.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.ipa-server-install --uninstall
2.
3.
  
Actual results:
Error thrown when uninstalling

Expected results:
To uninstall the SELinux rule

Additional info:

Comment 2 Dmitri Pal 2011-03-30 15:38:03 UTC
https://fedorahosted.org/freeipa/ticket/1143

Comment 3 Rob Crittenden 2011-03-30 22:15:19 UTC
Updated repl_selinux patch to remove the semanage invocations.

This is handled by selinux-policy now, fixed in selinux-policy-3.7.19-80.el6.

Comment 5 Namita Soman 2011-04-06 11:41:52 UTC
verified fix in
ipa-server-2.0.0-19.el6.x86_64

the message didn't show up when running - ipa-server-install --uninstall

Comment 6 errata-xmlrpc 2011-05-19 13:44:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0631.html