Nomad CSI AWS plugin volume register fail

nomad vver 1.3.5

i created ebs disk in AWS
and installed nomad csi plugin

nomad plugin status aws-ebs0
ID                   = aws-ebs0
Provider             = ebs.csi.aws.com
Version              = v1.6.2
Controllers Healthy  = 1
Controllers Expected = 1
Nodes Healthy        = 1
Nodes Expected       = 1

Allocations
No allocations placed

but the command

nomad volume register volume.hcl

gives an error

Error registering volume: Unexpected response code: 500 (validation: must include at least one capability block)

what could be the problem?

Hi @pauldon2,

The error message is indicating the the volume specification within volume.hcl is missing a capability block and as per the documentation and error message there must be at least one included.

Please share your volume.hcl specification if you require any further assistance andI’ll be happy to help.

Thanks,
jrasell and the Nomad team

my volume.hcl

# volume registration
type = "csi"
id = "test_ebs"
name = "test_ebs"
external_id = "vol-0b739b91be01fd675"
access_mode = "single-node-writer"
attachment_mode = "file-system"
plugin_id = "aws-ebs0"

Thanks a lot. I have added a capability block. Everything worked.
My worked volume.hcl

# volume registration
type = "csi"
id = "test_ebs"
name = "test_ebs"
namespace    = "MGMT"
external_id = "vol-0b739b91be01fd675"
plugin_id = "aws-ebs0"
capability {
  access_mode = "single-node-writer"
  attachment_mode = "file-system"
}

P.S. Thank you for the quick response.

1 Like