[IMPROVEMENT] UI should refuse to attach strict-local volume to the wrong node #8546
Labels
kind/improvement
Request for improvement of existing function
priority/2
Nice to fix in this release (managed by PO)
require/backport
Require backport. Only used when the specific versions to backport have not been definied.
require/doc
Require updating the longhorn.io documentation
require/manual-test-plan
Require adding/updating manual test cases if they can't be automated
severity/4
Function working but has a minor issue (a minor incident with low impact)
Milestone
Is your improvement request related to a feature? Please describe (馃憤 if you like this request)
Off the top of my head, I'm not sure how easy this request is to implement (probably not too bad), but the existing behavior is a bit weird:
This is not legal, and indeed, longhorn-manager logs errors and refuses to complete the operation.
However, this message is coming from the attach/detach controller. There is already an attachment ticket in the corresponding volumeattachment.longhorn.io CR, and the attach API call returned successful to the UI.
There is no error in the UI, but the volume is not (and will not be) attached.
Describe the solution you'd like
It would be better to fail obviously at an upper layer so the UI is aware. Maybe the
VolumeManager.Attach
method can check for this situation and return an error instead of creating the volumeattachment.longhorn.io?The text was updated successfully, but these errors were encountered: