Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 482838

Summary: uninstalll scriplet fails in spacewalk-config
Product: [Community] Spacewalk Reporter: Jesus M. Rodriguez <jesusr>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Jesus M. Rodriguez <jesusr>
Severity: medium Docs Contact:
Priority: low    
Version: 0.4CC: bperkins, frank.paulick
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 07:09:44 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:
Bug Depends On:    
Bug Blocks: 456553    

Description Jesus M. Rodriguez 2009-01-28 14:35:02 UTC
Hi,

i think there is a problem with the actual (0.4) package of spacewalk-config
when i try to uninstall this package i get the following message:

error reading information on service satellite-httpd: No such file or directory
error: %preun(spacewalk-config-0.4.24-1.el5.noarch) scriptlet failed, exit status 1

the command "rpm -q spacewalk-config --scripts" show the following:

preuninstall scriptlet (using /bin/sh):
# This section can be removed after 0.4 has been released
if [ $1 = 0 ] ; then
    /sbin/service satellite-httpd stop >/dev/null 2>&1
    /sbin/chkconfig --del satellite-httpd
fi
postuninstall scriptlet (using /bin/sh):
# This section can be removed after 0.4 has been released
if [ "x$1" == "x0" ] ; then
    perl -i -ne 'print unless /satellite-httpd\.pid/' /etc/logrotate.d/httpd
fi


at the end.
i think this part is making the uninstall problem.

for now "rpm -e spacewalk-config --nodeps --nopreun" solved the problem for me.
regarding the comment in the uninstall scriptlet they should be removed, if i'm not wrong :)

Comment 1 Jan Pazdziora (Red Hat) 2009-02-02 12:24:21 UTC
Fixed in Spacewalk repo, commit 582245cd7301655bfeae66398c9e279462388955.

Comment 2 Jan Pazdziora (Red Hat) 2009-02-09 09:42:24 UTC
With spacewalk-config-0.5.2-1 available, moving ON_QA.

Comment 3 Brandon Perkins 2009-02-09 15:09:43 UTC
Removing bug 482838 blocks bug 484231.

Comment 4 Jesus M. Rodriguez 2009-04-14 14:12:35 UTC
Spacewalk 0.5 released.

Comment 5 Miroslav Suchý 2009-09-17 07:09:44 UTC
Spacewalk 0.5 has been released for long time ago.