diff --git a/controller/volume_controller.go b/controller/volume_controller.go index 2bcced67fd..b1dbdc92a6 100644 --- a/controller/volume_controller.go +++ b/controller/volume_controller.go @@ -2743,6 +2743,8 @@ func (c *VolumeController) listReadySchedulableAndScheduledNodesRO(volume *longh } } + log.WithField("volume", volume.Name).Tracef("Found %v ready and schedulable nodes", len(filteredReadyNodes)) + // Including unschedulable node because the replica is already scheduled and running // Ref: https://github.com/longhorn/longhorn/issues/4502 for _, r := range rs { @@ -2773,7 +2775,8 @@ func (c *VolumeController) listReadySchedulableAndScheduledNodesRO(volume *longh log.WithFields(logrus.Fields{ "replica": r.Name, "node": node.Name, - }).Warnf("Including unschedulable node because the replica is scheduled and running") + "reason": "replica is scheduled and running", + }).Trace("Including unschedulable node") } return filteredReadyNodes, nil