Bug 482838 - uninstalll scriplet fails in spacewalk-config
Summary: uninstalll scriplet fails in spacewalk-config
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 0.4
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Jesus M. Rodriguez
URL:
Whiteboard:
Depends On:
Blocks: space05
TreeView+ depends on / blocked
 
Reported: 2009-01-28 14:35 UTC by Jesus M. Rodriguez
Modified: 2009-09-17 07:09 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-17 07:09:44 UTC
Embargoed:


Attachments (Terms of Use)

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.


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