Could not create CSI volume

Hi! Could you help me please with creation of volume using nomad volume create?

My volume.hcl specification:

id = "smb0"
name = "samba cifs"
type = "csi"
external_id = "vol-0b756b75620d63af5"
plugin_id = "csi-hostpath"

capability {
  access_mode = "single-node-writer"
  attachment_mode = "file-system"
}
secrets {
  username = "<username>"
  password = "<password>"
}

context {
  source = "<source>"
}

Result on running nomad volume create volume.hcl:

Error registering volume: Unexpected response code: 500 (validation: missing access mode, missing attachment mode)

I tried to specify access_mode and attachment_mode both in capabilities stanza and in root section. Do i do something wrong?

Nomad client version v1.0.4 (tried also with latest v1.1.2)
Nomad server version v1.0.4

Problem solved after upgrading cluster v1.0.4 → v.1.1.2

1 Like