CSI-Cinder - Volume Type choosable?

Hi *,

is there somebody using Nomad on top of OpenStack and is using CSI-Cinder?

I have no problem deploying the CSI-Cinder plugin and I can create a volume with “nomad volume create <volspecfile.hcl>”.
But can I choose a Cinder volume type, which my OpenStack environment provides? Currently the '_DEFAULT_ volume type is used. But there are other volume types available and I’d like to choose one of those.

Is there a configuration parameter available for the volume specfile?

Any hints are very welcome!

Kind regards,

Töns

I forgot to mention, that there is an issue ( [cinder-csi-plugin] how to set volume type ? · Issue #1181 · kubernetes/cloud-provider-openstack · GitHub ), that seems to deal with it (or something similar) already.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-sc-cinderplugin
provisioner: cinder.csi.openstack.org
parameters:
type: basic.ru-7a

No idea, whether this applicable here, as well. If it is - where do I specify the “type” in the volume spec file for Nomad?

Ok. It was easier than expected. Nomad Container Storage Interface (CSI) volume specification | Nomad | HashiCorp Developer mentions the “parameters” option. In order to choose a non-default volume type just add

parameters {
   type = "ceph-premium"
}

to your volume spec file. Obviously with a volume type offered by your OpenStack environment :grinning_face: