Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no applicable volumesnapshotter found #8499

Open
mehransaeed7810 opened this issue Dec 9, 2024 · 3 comments
Open

no applicable volumesnapshotter found #8499

mehransaeed7810 opened this issue Dec 9, 2024 · 3 comments
Assignees
Labels
Area/CSI Related to Container Storage Interface support Needs info Waiting for information

Comments

@mehransaeed7810
Copy link

I keep getting this error "no applicable volumesnapshotter found" whilst creating backups of pvcs.

I tried installing all CRDs, csisnapshotter, controller, configuring rbac but no luck.

I have attached the debug file in the attachments

kubectl get volumesnapshotclass
NAME                    DRIVER                   DELETIONPOLICY   AGE
vsphere-snapshotclass   csi.vsphere.vmware.com   Delete           54m

kubectl get pods -n default
NAME                READY   STATUS    RESTARTS   AGE
csi-snapshotter-0   3/3     Running   0          21m

kubectl get pods -n kube-system
snapshot-controller-77f798dd7d-mszr9      1/1     Running     0               35m
snapshot-controller-77f798dd7d-r9bzb      1/1     Running     0               35m

Environment:

velero version
Client:
Version: v1.14.1
Git commit: 8afe3ce
Server:
Version: v1.15.0
WARNING: the client version does not match the server version. Please update client

  • velero client config get features
    features:
    kubectl version
    Client Version: v1.31.2+k3s1
    Kustomize Version: v5.4.2
    Server Version: v1.31.2+k3s1
  • Kubernetes installer & version:
  • Cloud provider or hardware configuration: VSphere
  • OS Rocky9 Linux

bundle-2024-12-09-08-52-45.tar.gz

@kaovilai
Copy link
Member

kaovilai commented Dec 9, 2024

could be dupe of #8494

@sseago
Copy link
Collaborator

sseago commented Dec 9, 2024

If you're trying to use CSI snapshots (and your storageclass is CSI-based) then Velero shouldn't be looking for a volumesnashotter plugin. Is the EnableCSI feature enabled?

@blackpiglet
Copy link
Contributor

As @sseago commented, the CSI feature is not enabled.

                "containers": [
                    {
                        "args": [
                            "server",
                            "--uploader-type=kopia",
                            "--keep-latest-maintenance-jobs=3"
                        ],
                        "command": [
                            "/velero"
                        ],

@mehransaeed7810
You need to add --features=EnableCSI in the Velero deployment's server container's args array.
It should be something like this.

                "containers": [
                    {
                        "args": [
                            "server",
                            "--uploader-type=kopia",
                            "--keep-latest-maintenance-jobs=3",
                            "--features=EnableCSI"
                        ],
                        "command": [
                            "/velero"
                        ],

If after applying this change you still got the same issue, please follow @kaovilai guide to check whether #8494 is related.
#8494 (comment)

@blackpiglet blackpiglet added Area/CSI Related to Container Storage Interface support Needs info Waiting for information labels Dec 10, 2024
@blackpiglet blackpiglet self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CSI Related to Container Storage Interface support Needs info Waiting for information
Projects
None yet
Development

No branches or pull requests

4 participants