Bug 1055156

Summary: warning: %postun(ovirt-scheduler-proxy-0.1.3-3.el6ev.noarch) scriptlet failed
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Stehlik <pstehlik>
Component: ovirt-scheduler-proxyAssignee: Martin Sivák <msivak>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: dfediuck, gklein, iheim, pstehlik, scohen
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When uninstalling the ovirt-scheduler-proxy from a System V init based system, chkconfig was called after the main init file was already deleted, resulting in postun script failure. This update adds a preun script to stop the service before the init file is deleted, and also adds a systemd preun management macro. Now uninstalling ovirt-scheduler-proxy succeeds without error.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-22 16:20:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Martin Sivák 2014-01-19 15:57:11 UTC
It seems to be caused by the following line in the spec file's %postun:

chkconfig --del ovirt-scheduler-proxy

Post uninstall might not be a good place for it.. if the init file is managed by rpm, it was probably deleted already.


Pavel, can you check if there are symlinks to the (probably missing) init file even after the removal in /etc/rc.*?

If there are, we will have to change the section to %preun and try again. That will require a package rebuild, but no source code change (spec only).

Comment 4 errata-xmlrpc 2014-01-22 16:20:39 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.

http://rhn.redhat.com/errata/RHEA-2014-0088.html