[BUG] Replica auto-rebalance doesn't respect node selector #5971
Closed
Description
Describe the bug (🐛 if you encounter this issue)
Replica auto-balance doesn't respect the node selector and causes a re-balance loop.
To Reproduce
Steps to reproduce the behavior:
- Have 3 node cluster (node-1, node-2, node-3)
- Tag node-1, node-2 (select-tag)
- Tag all nodes as different zones (zone-1, zone-2, zone-3)
- Create volume with node-selector (select-tag)
- Enable replica auto-rebalance
- Replica auto-rebalance attempts to schedule a new replica to zone-3, but couldn't due to the volume node selector.
Expected behavior
Rebalance should only check in zone-1 and zone-2 due to the node selector.
Log or Support bundle
None
Environment
- Longhorn version: day-1 issue
Additional context
Metadata
Assignees
Labels
Type
Projects
Status
Closed