[BUG] Unable to upgrade longhorn from v1.3.2 to master-head #5368
Closed
Description
Describe the bug (🐛 if you encounter this issue)
When upgrade longhorn from v1.3.2 to master-head, longhorn-manager
stuck in CrashLoopBackOff
state with errors:
time="2023-02-08T05:40:02Z" level=fatal msg="Error starting manager: upgrade resources failed: upgrade from v1.3.x to v1.4.0: upgrade volume failed: failed to update volume pvc-628e4b5d-d31b-4e92-b87e-27d03ac245b7: Volume.longhorn.io \"pvc-628e4b5d-d31b-4e92-b87e-27d03ac245b7\" is invalid: spec.backupCompressionMethod: Unsupported value: \"\": supported values: \"none\", \"lz4\", \"gzip\""
To Reproduce
Steps to reproduce the behavior:
- install longhorn v1.3.2
- create a pod to use longhorn volume
- upgrade to longhorn master:head
- longhorn-manager stuck in CrashLoopBackOff
Expected behavior
A clear and concise description of what you expected to happen.
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
- Longhorn version:
- Installation method (e.g. Rancher Catalog App/Helm/Kubectl):
- Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version:
- Number of management node in the cluster:
- Number of worker node in the cluster:
- Node config
- OS type and version:
- CPU per node:
- Memory per node:
- Disk type(e.g. SSD/NVMe):
- Network bandwidth between the nodes:
- Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal):
- Number of Longhorn volumes in the cluster:
Additional context
Add any other context about the problem here.
Metadata
Labels
Type
Projects
Status
Closed