Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opentelekomcloud_compute_instance_v2 does not work correctly in swiss environment #2663

Closed
CHS-OTC opened this issue Sep 27, 2024 · 5 comments
Assignees

Comments

@CHS-OTC
Copy link

CHS-OTC commented Sep 27, 2024

Hello,
the ressource results in an terraform error when getting created or fetching their current state.
As the ressource is getting created succesfully its probaply an parsing issue with the terraform provider but I was unable where exactly the issue after searching for differences in the API responses between eu-de and eu-ch2

Terraform provider version

provider registry.terraform.io/opentelekomcloud/opentelekomcloud v1.36.20

Affected Resource(s)

opentelekomcloud_compute_instance_v2 ONLY in eu-ch2

Terraform Configuration Files

resource "opentelekomcloud_compute_instance_v2" "basic_swiss" {
name = "basic-tf-swiss"
image_id = "609a6199-d7af-4d08-b36f-e07bca5bc672"
flavor_id = "s3.large.2"
key_pair = "KeyPair"
security_groups = ["default"]

network {
uuid = "63e09ab5-4a36-4294-ab51-b4b7d8f35bb8"
}
}

Debug Output/Panic Output

https://gist.github.com/CHS-OTC/f642a98b1d08d8bd88474a57853eee8d

Steps to Reproduce

  1. terraform apply in eu-ch2 environment

Expected Behavior

ECS should be created and correctly added to state and the deployment be completed

Actual Behavior

ECS is getting created but the deployment is receiving an error

Important Factoids

auth_url = "https://iam-pub.eu-ch2.sc.otc.t-systems.com/v3"

@artem-lifshits
Copy link
Member

Hello @CHS-OTC I've prepared a fix that will be available on next release.
However according to swiss doc api compute v2 api (which is used in this resource) isn't supported so I'd recommend switching to opentelekomcloud_ecs_instance_v1.

@CHS-OTC
Copy link
Author

CHS-OTC commented Oct 2, 2024

Hello @artem-lifshits
thanks for the update.

@sekoban
Copy link

sekoban commented Oct 2, 2024

@artem-lifshits
opentelekomcloud_ecs_instance_v1 doesn't seem to support ecs groups yet, see also issues/2665

otc-zuul bot pushed a commit that referenced this issue Oct 2, 2024
…2670)

ECS: fix `opentelekomcloud_compute_instance_v2` flavor set for SWISS

Summary of the Pull Request
Fix flavor set for swisscloud
PR Checklist

 Refers to: #2663
 Schema updated.
 Release notes added.

Reviewed-by: Anton Sidelnikov
@anton-sidelnikov
Copy link
Member

Hi @sekoban available in v1.36.22, please check.

@sekoban
Copy link

sekoban commented Oct 17, 2024

@anton-sidelnikov thanks, works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants