Error Creating Snapshots with rocketduck/csi-plugin-nfs

Hello everyone,

I’m encountering an issue when trying to create snapshots using the rocketduck/csi-plugin-nfs CSI plugin for NFS in Nomad. Despite correctly configuring both the controller and the plugin node, I receive the following error when attempting to create a snapshot of a volume:

Error snapshotting volume: Unexpected response code: 500 (1 error occurred: * plugin "nfs-data" does not support snapshot)

Configuration Details:

  1. CSI Controller Configuration:
job "storage-controller" {
  datacenters = ["dc1"]
  type        = "service"

  group "controller" {
    task "controller" {
      driver = "docker"

      config {
        image = "registry.gitlab.com/rocketduck/csi-plugin-nfs:0.7.0"

        args = [
          "--type=controller",
          "--node-id=${attr.unique.hostname}",
          "--nfs-server=192.168.59.206:/srv/data", 
          "--mount-options=defaults",  
        ]

        network_mode = "host"  

        privileged = true
      }

      csi_plugin {
        id        = "nfs-data"
        type      = "controller"
        mount_dir = "/csi"
      }

      resources {
        cpu    = 500
        memory = 256
      }

    }
  }
}
  1. CSI Node Configuration:
job "storage-node" {
datacenters = ["dc1"]
type        = "system"

group "node" {
  task "node" {
    driver = "docker"

    config {
      image = "registry.gitlab.com/rocketduck/csi-plugin-nfs:0.7.0"
      args = [
        "--type=node",
        "--node-id=${attr.unique.hostname}",
        "--nfs-server=192.168.59.206:/srv/data", 
        "--mount-options=defaults", 
      ]

      network_mode = "host"  

      privileged = true
    }

    csi_plugin {
      id        = "nfs-data" 
      type      = "node"
      mount_dir = "/csi"
    }

    resources {
      cpu    = 500
      memory = 256
    }

  }
}
}

  1. Command Executed:
    • The command used to create the snapshot is:
      sudo nomad volume snapshot create volumen-postgres40 test-snapshot
      

Problem Description:
The error message indicates that the nfs-data plugin does not support snapshot functionality. This suggests that snapshot support may not be implemented in the CSI plugin I am using.

I’m new to Nomad and am trying to learn it. I would appreciate any help or guidance, as my configurations are quite basic.

Thank you!

Hi, I do not follow. What exactly is the issue? rocketduck/csi-plugin-nf is open source, feel free to implement snapshot functionality in it or consider supporting the author of the plugin.