Skip to content

[MIG-740] Not setting a storage class left me with a broken migration #1132

Description

@jmontleon

Describe the bug
I didn't set a storage class when creating a migration using DVM. I did get a warning, but in this case I would have expected to see the default provisioner used. Instead the storageclass was set to "" on the PVC rather than left off. This does not have the effect of using the Default Provisioner.

Additional context
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1

PVCs don't necessarily have to request a class. A PVC with its storageClassName set equal to "" is always 
interpreted to be requesting a PV with no class, so it can only be bound to PVs with no class (no annotation
or one set equal to ""). A PVC with no storageClassName is not quite the same and is treated differently by the
cluster, depending on whether the DefaultStorageClass admission plugin is turned on.

We need to have a "no class" "" option in the drop down for cases like NFS. But we should probably have a (default) option in the drop down that omits setting the storageClassName so the default provisioner is used. Alternatively the user can pick any one of the classes available as is the case now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions