[BUG] can't upgrade engine if a volume was created in Longhorn v1.0 and the volume.spec.dataLocality is ""
#4412
Labels
area/webook
Kubernetes validation and mutating webhooks
backport/1.3.2
kind/bug
reproduce/always
100% reproducible
severity/3
Function working but has a major issue w/ workaround
Milestone
Describe the bug
can't upgrade engine if a volume was created in Longhorn v1.0 and its volume.spec.dataLocality
""
v1.0 does not have the dataLocality parameter, and the value is not handled in the upgrade path (v1.0->v1.1 and v1.1->v1.2) and always keeps an empty sting, so users might hit this issue while upgrading to v1.3.x if the volume was created in v1.0.
To Reproduce
Steps to reproduce the behavior:
Workaround: #4340 (comment)
Expected behavior
Can upgrade engine successfully
Log or Support bundle
If applicable, add the Longhorn managers' log or support bundle when the issue happens.
You can generate a Support Bundle using the link at the footer of the Longhorn UI.
Environment
Additional context
#4387
Workaround
Set
volume.spec.dataLocality
from""
todisabled
manuallyThe text was updated successfully, but these errors were encountered: