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 1386187 - ocf:heartbeat:Delay might have better tuned defaults
Summary: ocf:heartbeat:Delay might have better tuned defaults
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1388854
TreeView+ depends on / blocked
 
Reported: 2016-10-18 11:28 UTC by Ivan Devat
Modified: 2017-03-21 09:28 UTC (History)
4 users (show)

Fixed In Version: resource-agents-3.9.5-38.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1388854 (view as bug list)
Environment:
Last Closed: 2017-03-21 09:28:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (354 bytes, patch)
2016-10-18 11:28 UTC, Ivan Devat
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0602 0 normal SHIPPED_LIVE resource-agents bug fix update 2017-03-21 12:26:23 UTC

Description Ivan Devat 2016-10-18 11:28:42 UTC
Created attachment 1211666 [details]
proposed fix

Description of problem:
Start of resource ocf:heartbeat:Delay fails when startdelay is not explicitly specified. The reason is that startdelay defaults to 30s and default timeout for operation is 30s as well. So it fails before it starts.

How reproducible: always


Steps to Reproduce:
[vm-rhel68-1 ~] $ pcs resource create delay Delay stopdelay=15 && sleep 31 && pcs resource


Actual results:
 delay  (ocf::heartbeat:Delay): FAILED[ vm-rhel68-2 vm-rhel68-1 ]

Expected results:
 delay  (ocf::heartbeat:Delay): Started vm-rhel68-1

Additional info:
It is possible to adapt either default of startdelay or defaults of operation. Reduce value of default stardelay could be better choice: 30s is probably unnecessarily long time.

Comment 5 michal novacek 2017-01-19 15:09:13 UTC
I have verified that the startdelay is shorter than the monitor delay by
default which allow ocf:heartbeat:Delay to start correctly with
resource-agents-3.9.5-43.el6

-----

before the fix resource-agents-3.9.5-37.el6
===========================================

[root@virt-007 ~]# pcs resource create delay Delay stopdelay=15 
Creating resource 'ocf:heartbeat:Delay'
[root@virt-007 ~]# sleep 31
[root@virt-007 ~]# pcs resource
 delay  (ocf::heartbeat:Delay): FAILED virt-007

after the fix resource-agents-3.9.5-43.el6
==========================================

[root@virt-007 ~]# pcs resource create delay Delay stopdelay=15 
Creating resource 'ocf:heartbeat:Delay'
[root@virt-007 ~]# sleep 31
[root@virt-007 ~]# pcs resource
 delay  (ocf::heartbeat:Delay): Started virt-007

Comment 7 errata-xmlrpc 2017-03-21 09:28:46 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.

https://rhn.redhat.com/errata/RHBA-2017-0602.html


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