[BUG] When a v2 volume is attached in maintenance mode, removing a replica will lead to volume stuck in attaching-detaching loop #6166
Closed
Description
Describe the bug (🐛 if you encounter this issue)
This bug is triggered in v2 volume and under maintenance mode only.
To Reproduce
Steps to reproduce the behavior:
- Create a v2 volume
- Attach it with maintenance mode
- Delete one replica => The volume get stuck in attaching-detaching loop
Expected behavior
The rebuilding should be triggered instead.
Log or Support bundle
Environment
- Longhorn version: v1.5.0-master-head (06/20/2023)
- Number of Longhorn volumes in the cluster: 2
Additional context
cc @derekbit
Metadata
Assignees
Labels
Type
Projects
Status
Closed