Test system upgrade with a new storage class being default

  1. Install a previous stable Longhorn on a K8s cluster.
  2. Create a storage class ’longhorn-rep-2’ with replica 2 and make it default.
  3. Create some volumes with the above created storage class and attach them to workloads.
  4. Upgrade Longhorn to latest version.
  5. Longhorn should be upgraded.
  6. Storage class ’longhorn-rep-2’ should be the default storage class.
  7. Create two volumes, one with ’longhorn’ storage class and other with ’longhorn-rep-2'.
  8. Verify the volumes are created as per their storage class.
[Edit]