Bug 1386187

Summary: ocf:heartbeat:Delay might have better tuned defaults
Product: Red Hat Enterprise Linux 6 Reporter: Ivan Devat <idevat>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8CC: agk, cluster-maint, fdinitto, mnovacek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: resource-agents-3.9.5-38.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1388854 (view as bug list) Environment:
Last Closed: 2017-03-21 09:28:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1388854    
Attachments:
Description Flags
proposed fix none

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