Skip to content

[BUG] Unable to upgrade longhorn from v1.3.2 to master-head #5368

Closed
@yangchiu

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:

  1. install longhorn v1.3.2
  2. create a pod to use longhorn volume
  3. upgrade to longhorn master:head
  4. 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

area/install-uninstall-upgradeInstall, Uninstall or Upgrade relatedkind/bugpriority/0Must be implement or fixed in this release (managed by PO)reproduce/always100% reproducibleseverity/1Function broken (a critical incident with very high impact (ex: data corruption, failed upgrade)

Type

No type

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions