Bug 1632157

Summary: OSD restart should attempt the same amount of time for each OSD restart
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Guillaume Abrioux <gabrioux>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: subhash <vpoliset>
Severity: medium Docs Contact: Bara Ancincova <bancinco>
Priority: medium    
Version: 3.1CC: aschoen, ceph-eng-bugs, edonnell, gabrioux, gmeno, nthomas, rperiyas, sankarshan, tchandra
Target Milestone: z1   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.1.7-1.el7cp Ubuntu: ceph-ansible_3.1.7-2redhat1 Doc Type: Bug Fix
Doc Text:
.The restarting script now tries the same amount of time for every OSD restart The 'RETRIES' counter in the `restart_osd_daemon.sh` script was set at the start of the script and never reset between each call of the `check_pgs()` function. Consequently, the counter, which is set to 40 by default, was never reset between each restart of an OSD and was trying 40 times for all OSDs on a node. With this update, the counter is now reset between each call of the `check_pgs()` function, and the script tries the same amount of time for every OSD restart.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-09 01:00:34 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1584264    

Description Guillaume Abrioux 2018-09-24 09:02:57 UTC
Description of problem:

The 'RETRIES' counter is not reset after each call of check_pgs in the restart_osd_daemon.sh script.
It's set with a default of 40 attempts, it means that it would wait for up to 40 lots of 30s across *all* the OSDs on a host.


How reproducible:
100%


Steps to Reproduce:
1. Deploy a cluster.
2. Make a change so the 'restart osds daemon' handler is triggered.
3. Relaunch the playbook.

Actual results:
The playbook will retry up to 40 times across all the OSDs on a node.

Expected results:
We should retry for the same amount of time after each OSD restart.

Comment 3 Guillaume Abrioux 2018-09-24 09:46:41 UTC
*** Bug 1632160 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2018-11-09 01:00:34 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://access.redhat.com/errata/RHBA-2018:3530