From bed7388b678b9eda0d06b4d16fb00711741f9ef0 Mon Sep 17 00:00:00 2001 From: Paul Vaduva Date: Tue, 10 Mar 2020 12:05:31 -0400 Subject: [PATCH] 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 --- ceph/ceph/files/ceph-init-wrapper.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph/ceph/files/ceph-init-wrapper.sh b/ceph/ceph/files/ceph-init-wrapper.sh index ddbbc8443..65bdab636 100755 --- a/ceph/ceph/files/ceph-init-wrapper.sh +++ b/ceph/ceph/files/ceph-init-wrapper.sh @@ -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 }