Nomad HashiCorp
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Nomad HashiCorp

Par
Jean-RemiD
Créé le 2023-01-23 08:11:41 (edited on 2024-09-04 11:51:56) dans Public Cloud OVHcloud

Bonjour à toutes et à tous,

J'utilise ovh pour avoir un cluster Nomad/Consul/Vault :

Je rencontre la problématique suivante :

We have HashiCorp Nomad Cluster on gra and would like to use docker.io/k8scloudprovider/cinder-csi-plugin:v1.26.0 plugin to create volumes...
I tried severals connections using cloud.conf for instance

[Global]
username = "EQRyyudjH9gM"
password = "XXX"
domain-name = "default"
auth-url = "https://auth.cloud.ovh.net/v3/"
tenant-id = "b669e825f80344c0baabb441958a6cd6"
region = "gra1"

[BlockStorage]
rescan-on-resize = "true"
ignore-volume-az = "true"

But it is failing:

I0119 17:26:34.675829 1 openstack.go:136] InitOpenStackProvider configFiles: [/etc/config/cloud.conf]
I0119 17:26:34.676112 1 openstack.go:90] Block storage opts: {0 true true false}
I0119 17:26:34.676448 1 client.go:252] Using user-agent cinder-csi-plugin/ gophercloud/2.0.0
W0119 17:26:35.511084 1 main.go:105] Failed to GetOpenStackProvider: No suitable endpoint could be found in the service catalog.

How is it possible to make this CSI Cinder plugin connection to ovh BlockStorage?
https://github.com/hashicorp/nomad/tree/main/demo/csi/cinder-csi-plugin

I can access using the CLI on my workstation with `openstack volume list`

I tried to connect to s3 ObjectStore with https://juicefs.com/docs/csi/csi-in-nomad/ but found this issue https://github.com/juicedata/juicefs/issues/3129. Work around was to set env variable AWS_REGION = "gra"