Release FDs when stuck peering recovery

During stuck peering recovery if file descriptors are
not released the state machine does not advance to
OPERATIONAL state

Partial-bug: 1856064

Change-Id: I3fba7be661ebf223eac63608574323ad98d33b75
Signed-off-by: Paul Vaduva <Paul.Vaduva@windriver.com>
(cherry picked from master commit bed7388b67)
This commit is contained in:
Paul Vaduva 2020-03-10 12:05:31 -04:00 committed by Paul-Ionut Vaduva
parent 0c585a3990
commit 23ea1d7ed9
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ log_and_restart_blocked_osds ()
local message=$2
for name in $names; do
wlog $name "INFO" "$message"
${CEPH_SCRIPT} restart $name
# Restart the daemons but release ceph mon and osd file descriptors
${CEPH_SCRIPT} restart $name {LOCK_CEPH_MON_STATUS_FD}>&- {LOCK_CEPH_OSD_STATUS_FD}>&-
done
}