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 986619 - Watchdog 5.5 initrd starts early, causing endless boot loops
Summary: Watchdog 5.5 initrd starts early, causing endless boot loops
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: watchdog
Version: 6.4
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Ales Ledvinka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-21 02:38 UTC by john.r.moser
Modified: 2016-09-20 04:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-02 14:40:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description john.r.moser 2013-07-21 02:38:11 UTC
Description of problem:

Watchdog loads too early in the boot process.  In practice, this can cause boot loops if watchdog monitors for a condition that's only met later in the boot process.




Version-Release number of selected component (if applicable):

watchdog-5.5 el6



How reproducible:

Reproduces if watchdog starts before a point in the boot process where a valid system state exists.  For example, if watchdog is watching varnishd (S90, from EPEL), watchdog won't find its pid file and will immediately reboot the system in the middle of the boot process.



Steps to Reproduce:
1. Set up watchdog to check for a pidfile or a running daemon--for example, to look for the last daemon in the boot process to be running.
2. `chkconfig watchdog on`
3. reboot


Actual results:

Watchdog reboots the system at boot in an eternal boot loop.  `init=/bin/bash` or other recovery method needed to fix the system.



Expected results:

Watchdog should load last into a functional system.  A boot loop only occurs if system is broken in such a way that it never enters a functional state anyway (this is a natural hazard of using watchdog).



Additional info:

The watchdog-5.5 supplied /etc/init.d/watchdog script has this line up at the top:

# chkconfig: - 46 27

This should be set to:

# chkconfig: - 99 0

Comment 2 RHEL Program Management 2013-10-14 03:05:04 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Ales Ledvinka 2014-06-02 14:40:18 UTC
Not a bug with default configuration. That way the link is still to the old script but the priority is updated from the override location.

cp -a /etc/init.d/watchdog /etc/chkconfig.d/watchdog
sed -i /etc/chkconfig.d/watchdog -e 's/^# chkconfig: - 27 46/# chkconfig: - 99 0/'
chkconfig --del watchdog
chkconfig --add watchdog
chkconfig --level 2345 watchdog on


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