Régions OpenStack incompatibles
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

Régions OpenStack incompatibles

by
Community Deleted user
Created on 2020-05-09 12:26:19 (edited on 2024-09-04 11:23:38) in Public Cloud OVHcloud

Bonjour,

J'essaie actuellement de configurer un backend pour Terraform, en utilisant OpenStack Swift.

Mais lorsque j'exécute `terraform init`, voici le message d'erreur qui s'affiche :

Failed to load backend:
Error configuring the backend "swift": No suitable endpoint could be found in the service catalog.

Please update the configuration in your Terraform files to fix this error.
If you'd like to update the configuration interactively without storing
the values in your configuration, run "terraform init".

Je pense que celà est dû à la région OpenStack que j'utilise (`DE1`).

En effet, avant d'essayer de configurer Swift en tant que backend Terraform, j'avais déjà déployé une machine virtuelle, volumes, etc. sur cette région. Je sais que OVH a décidé récemment de renommer les régions OpenStack, et je devrais donc utiliser `DE` au lieu de `DE1`. Lorsque je fais celà, `terraform init` s'exécute sans accroc, et j'ai bien un fichier `tfstate.tf` créé dans un nouveau containeur sur Swift.

Néanmoins, si j'exécute `terraform plan` ensuite, celà échoue avec :

Error: Error refreshing state: 3 errors occurred:
* data.openstack_networking_network_v2.external_network: 1 error occurred:
* data.openstack_networking_network_v2.external_network: data.openstack_networking_network_v2.external_network: Error creating OpenStack networking client: No suitable endpoint could be found in the service catalog.


* data.openstack_compute_flavor_v2.flavor: 1 error occurred:
* data.openstack_compute_flavor_v2.flavor: data.openstack_compute_flavor_v2.flavor: Error creating OpenStack compute client: No suitable endpoint could be found in the service catalog.


* data.openstack_compute_keypair_v2.key_pairs: 1 error occurred:
* data.openstack_compute_keypair_v2.key_pairs: data.openstack_compute_keypair_v2.key_pairs: Error creating OpenStack compute client: No suitable endpoint could be found in the service catalog.

Je pense que ces erreurs sont dû au fait que mes ressources se trouvent sur `DE1`, mais que j'essaye d'utiliser `DE` (nécessaire pour que mon backend fonctionne propremment).

Avez-vous une idée de comment je pourrais résoudre mon problème, sans avoir à migrer moi même manuellement mes ressources ?

Merci.