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

Add Poweroff/poweron on addition ECS to huaweicloud_compute_servergroup #1044

Closed
aaovchinnikov opened this issue Apr 7, 2021 · 2 comments · Fixed by #1134
Closed

Add Poweroff/poweron on addition ECS to huaweicloud_compute_servergroup #1044

aaovchinnikov opened this issue Apr 7, 2021 · 2 comments · Fixed by #1134
Assignees
Milestone

Comments

@aaovchinnikov
Copy link

Hello,

Terraform Version

Terraform v0.14.8

Affected Resource(s)

Please list the resources as a list, for example:

  • huaweicloud_compute_instance
  • huaweicloud_compute_servergroup

Actual Behavior

For now ECS is not automatically stopped/started when it's added to huaweicloud_compute_servergroup. This causes errors such as:

Error: Error to add a instance to ECS server group, err=Bad request with: [POST https://....], error message: {"error":{"message":"{\"badRequest\": {\"message\": \"Instance ... can not add, cause its state is not STOPPED\", \"code\": 400}}","code":"Ecs.1000"}}

and forces administrator to stop ECSes manually as prerequisite to servergroup operations.

Expected Behavior

It would be nice to embed this ECS auto-stop/start into servergroup operation process like it's implemented for ECS flavor switching operation.

@aaovchinnikov
Copy link
Author

Actually, we use members attribute of huaweicloud_compute_servergroup for this task.

@ShiChangkuo ShiChangkuo added this to the v1.25.0 milestone Apr 27, 2021
@ShiChangkuo
Copy link
Collaborator

@aaovchinnikov we will implement this feature in v1.25.0

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

Successfully merging a pull request may close this issue.

3 participants