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 507557 - freeipmi-ipmidetectd %post scriptlet failure
Summary: freeipmi-ipmidetectd %post scriptlet failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: freeipmi
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: beta
: ---
Assignee: Jan Safranek
QA Contact: Alexander Todorov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-23 10:20 UTC by Alexander Todorov
Modified: 2010-11-11 14:39 UTC (History)
3 users (show)

Fixed In Version: freeipmi-0.7.10-2.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-11 14:39:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alexander Todorov 2009-06-23 10:20:40 UTC
Description of problem:

Error(s): Installing freeipmi-ipmidetectd-0.7.8-1.fc11.x86_64
warning: %post(freeipmi-ipmidetectd-0.7.8-1.fc11.x86_64) scriptlet failed, exit status 1


Version-Release number of selected component (if applicable):
freeipmi-ipmidetectd-0.7.8-1.fc11.x86_64

How reproducible:


Steps to Reproduce:
1. install @everything
2.
3.
  

Additional info:

Comment 2 Alexander Todorov 2009-06-23 11:32:10 UTC
Jan,
I'm seeing similar failure for freeipmi-bmc-watchdog. Let me know if you need another BZ open for it. See the log in comment #1 for more details.

Error(s): Installing freeipmi-bmc-watchdog-0.7.8-1.fc11.x86_64
warning: %post(freeipmi-bmc-watchdog-0.7.8-1.fc11.x86_64) scriptlet failed, exit status 1

Comment 3 Bill Nottingham 2009-06-23 16:15:07 UTC
postinstall scriptlet (using /bin/sh):
if [ "$1" = 1 ]; then
   if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
      /sbin/chkconfig --add freeipmi-bmc-watchdog
      /sbin/chkconfig freeipmi-bmc-watchdog off

### Why not just set the default to off???

   fi
fi
if [ $1 -ge 1 ]; then
   if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
      if /etc/rc.d/init.d/freeipmi-bmc-watchdog status | grep -q running; then
         /etc/rc.d/init.d/freeipmi-bmc-watchdog restart
      else
         /etc/rc.d/init.d/freeipmi-bmc-watchdog condrestart
      fi

### This is entirely superfluous. Just do a condrestart; that's the point of it (to restart if running.)

   fi
fi
preuninstall scriptlet (using /bin/sh):
#
# Stop bmc-watchdog if it is running 
#
if [ "$1" = 0 ]; then
    if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
       if /etc/rc.d/init.d/freeipmi-bmc-watchdog status | grep -q running; then
          /etc/rc.d/init.d/freeipmi-bmc-watchdog stop
       fi
### stop on a not-running service should not be an issue

       /sbin/chkconfig --del freeipmi-bmc-watchdog
    fi
fi

Also, why is this all gated on [ -x <the init script> ]? If you're installing the package, you know you have it.

Comment 4 Jan Safranek 2009-06-29 10:06:56 UTC
(In reply to comment #3)

The .spec is based on upstream one and somehow passed the Fedora review... I'll rewrite all the scripts, based on our well-known and working snippets.

Anyway, I think that the bug is caused by missing "Requires(pre): chkconfig"... I am going to check it soon.

Comment 5 Jan Safranek 2009-06-29 13:36:56 UTC
Reproducible with following kickstart snippet (no need to install everything):

%packages
freeipmi-ipmidetectd
freeipmi-bmc-watchdog
freeipmi-devel
freeipmi
@base

Comment 6 Jan Safranek 2009-06-29 14:22:44 UTC
Fixed in Rawhide, freeipmi-0.7.10-2.fc12.

I have established a yum repo on http://people.redhat.com/jsafrane/bugs/507557/ if you want to test F11 or RHEL6 installation with the updated packages.

Comment 7 releng-rhel@redhat.com 2009-10-28 15:51:13 UTC
Fixed in 'freeipmi-0.7.10-2.fc12'. 'freeipmi-0.7.11-2.el6' included in compose 'RHEL6.0-20091027.3'.
Moving to ON_QA.

Comment 9 releng-rhel@redhat.com 2010-11-11 14:39:11 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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