Skip to content

Commit

Permalink
fix(scheduler): skip unschedulable disks
Browse files Browse the repository at this point in the history
longhorn/longhorn-10502

Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang committed Mar 3, 2025
1 parent 4ee6f90 commit 4e5f21c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/volume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2609,6 +2609,10 @@ func (c *VolumeController) checkReplicaDiskPressuredSchedulableCandidates(volume
continue
}

if types.GetCondition(diskStatus.Conditions, longhorn.DiskConditionTypeSchedulable).Status != longhorn.ConditionStatusTrue {
continue
}

diskSpec, exist := nodeCandidate.Spec.Disks[diskName]
if !exist {
continue
Expand Down

0 comments on commit 4e5f21c

Please sign in to comment.