opentelekomcloud / terraform-provider-opentelekomcloud

Terraform OpenTelekomCloud provider
https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest
Mozilla Public License 2.0
87 stars 78 forks source link

[ECS] Can't create ecs in eu-nl #2356

Closed brieseme closed 1 year ago

brieseme commented 1 year ago

Terraform provider version

Terraform v1.6.2 on darwin_amd64

Affected Resource(s)

opentelekomcloud_compute_instance_v2

Terraform Configuration Files

terraform {
   required_providers {
      opentelekomcloud = {
         source = "opentelekomcloud/opentelekomcloud"
         version = ">= 1.23.2"
      }
   }
}

provider "opentelekomcloud" {
  cloud = "eunl"
}

resource "opentelekomcloud_compute_instance_v2" "debian_ecs" {
   name        = "debian_ecs"
   image_name  = "Standard_Debian_12_amd64_bios_latest"
   flavor_name = "s3.medium.1"

   key_pair        = var.keypair
   security_groups = ["secgroup-xyz"]
   network {
     uuid = "xxx"
   }
}

Debug Output/Panic Output

opentelekomcloud_compute_instance_v2.debian_ecs: Refreshing state... [id=xxx]
╷
│ Error: error creating OpenTelekomCloud ComputeV2 client: No suitable endpoint could be found in the service catalog.
│ 
│   with opentelekomcloud_compute_instance_v2.debian_ecs,
│   on as.tf line 14, in resource "opentelekomcloud_compute_instance_v2" "debian_ecs":
│   14: resource "opentelekomcloud_compute_instance_v2" "debian_ecs" {
│ 

Steps to Reproduce

terraform apply

Expected Behavior

Create an ECS

Actual Behavior

Can't create ecs

Important Factoids

using authentication with OpenStack configuration file

clouds
    eunl:
      auth:
        username:           'user'
        project_name:       'eu-nl'
        auth_url:           'https://iam.eu-de.otc.t-systems.com:443/v3'
        user_domain_name:   'OTC0000000000xxxxxxxx'
        domain_name:        'OTC0000000000xxxxxxxxx'
      interface:            'public'
      identity_api_version:  3
      region_name:          'eu-nl'
artem-lifshits commented 1 year ago

Hello @brieseme please try changing auth_url to https://iam.eu-nl.otc.t-systems.com:443/v3.

brieseme commented 1 year ago

thank you, but same error

artem-lifshits commented 1 year ago

@brieseme I'm using this cloud profile, please try to fill your clouds.yaml accordingly:

  eu-nl:
    auth:
      auth_url: https://iam.eu-nl.otc.t-systems.com/v3
      project_name: eu-nl
      user_domain_name: OTC-EU-DE-0XXX
      username: user
      password: 'password'
    region_name: eu-nl
brieseme commented 1 year ago

@artem-lifshits thank you very much for your support! meanwhile i identified a corrupt terraform statefile as source of all my trouble :) sorry for any inconvenience!