Skip to content

Commit

Permalink
Do not check the HostID of the pod if it is not ready
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Feb 10, 2025
1 parent d65cab9 commit c4ea0e4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/reconciliation/reconcile_racks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2272,12 +2272,14 @@ func (rc *ReconciliationContext) CheckCassandraNodeStatuses() result.ReconcileRe
dc := rc.Datacenter
logger := rc.ReqLogger

// Check that we have a HostID for every pod in the datacenter
// Check that we have a HostID for every pod in the datacenter that has started
for _, pod := range rc.dcPods {
nodeStatus, ok := dc.Status.NodeStatuses[pod.Name]
if !ok || nodeStatus.HostID == "" {
logger.Info("Missing host id", "pod", pod.Name)
return result.RequeueSoon(2)
if isServerStarted(pod) {
nodeStatus, ok := dc.Status.NodeStatuses[pod.Name]
if !ok || nodeStatus.HostID == "" {
logger.Info("Missing host id", "pod", pod.Name)
return result.RequeueSoon(2)
}
}
}

Expand Down

0 comments on commit c4ea0e4

Please sign in to comment.