From 3cef930fab57267effb01f87365bec9f970f55dc Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Thu, 5 Mar 2020 14:10:24 -0700 Subject: [PATCH] ceph: report osd status when there are no devices The OSD prepare pod must always update status on the status configmap in order to alert the operator that the OSD configuration on the node is completed. This fixes an issue where the status was not being reported if no devices were configured. Signed-off-by: Travis Nielsen --- pkg/daemon/ceph/osd/daemon.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/daemon/ceph/osd/daemon.go b/pkg/daemon/ceph/osd/daemon.go index 30e047525..184e516ed 100644 --- a/pkg/daemon/ceph/osd/daemon.go +++ b/pkg/daemon/ceph/osd/daemon.go @@ -232,6 +232,8 @@ func Provision(context *clusterd.Context, agent *OsdAgent, crushLocation string) // So we need to make sure the list is filled up, otherwise fail if len(deviceOSDs) == 0 { logger.Warningf("skipping OSD configuration as no devices matched the storage settings for this node %q", agent.nodeName) + status = oposd.OrchestrationStatus{OSDs: deviceOSDs, Status: oposd.OrchestrationStatusCompleted, PvcBackedOSD: agent.pvcBacked} + oposd.UpdateNodeStatus(agent.kv, agent.nodeName, status) return nil }