Skip to content

Commit

Permalink
Merge pull request rook#3817 from mantissahz/ceph_osd_nodes_timeout
Browse files Browse the repository at this point in the history
Nodes always in OrchestrationStatusStarting
  • Loading branch information
leseb authored Oct 3, 2019
2 parents b40321f + b8d7382 commit 9b0c73c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/operator/ceph/cluster/osd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@ func (c *Cluster) completeOSDsForAllNodes(config *provisionConfig, configOSDs bo
currentTimeoutMinutes++
if currentTimeoutMinutes == timeoutMinutes {
config.addError("timed out waiting for %d nodes: %+v", remainingNodes.Count(), remainingNodes)
//start to remove remainingNodes waiting timeout.
for remainingNode := range remainingNodes.Iter() {
clearNodeName := k8sutil.TruncateNodeName(orchestrationStatusMapName, remainingNode)
if err := c.kv.ClearStore(clearNodeName); err != nil {
config.addError("failed to clear node %s status with name %s. %+v", remainingNode, clearNodeName, err)
}
}
return false
}
logger.Infof("waiting on orchestration status update from %d remaining nodes", remainingNodes.Count())
Expand Down

0 comments on commit 9b0c73c

Please sign in to comment.