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

Error doing power action #1268

Closed
gmafk opened this issue Jul 7, 2021 · 0 comments · Fixed by #1274
Closed

Error doing power action #1268

gmafk opened this issue Jul 7, 2021 · 0 comments · Fixed by #1274
Assignees
Labels
Projects
Milestone

Comments

@gmafk
Copy link

gmafk commented Jul 7, 2021

Hello,

Terraform Version

Terraform v1.0.1
on darwin_amd64
+ provider registry.terraform.io/huaweicloud/huaweicloud v1.26.0

Affected Resource(s)

huaweicloud_compute_instance

resource "huaweicloud_compute_instance" "server" {
  [skipped]
  power_action = "OFF"
}
  1. The ECS has been created some time ago with the 'power_action = "OFF"'.
  2. Today I have removed the 'power_action = "OFF"' line and ran plan. Here is the plan output:
  ~ resource "huaweicloud_compute_instance" "server" {
        id                    = "[skipped]"
        name                  = "[skipped]"
      - power_action          = "OFF" -> null
        tags                  = {
            "service" = "[skipped]"
        }
        # (17 unchanged attributes hidden)
        # (2 unchanged blocks hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
  1. However, apply process failed with the error message:
│ Error: Doing power action () for instance ([skipped]) failed: The powerMap does not contain option ()
│ 
│   with module.[skipped].huaweicloud_compute_instance.server[0],
│   on ../modules/cluster/server.tf line 1, in resource "huaweicloud_compute_instance" "server":
│    1: resource "huaweicloud_compute_instance" "server" {
│ 

Actual Behavior

Apply process failed to remove the power_action flag.

Expected Behavior

I think the 'power_action = "OFF"' flag should just be removed. There is no need to power on server or something. Just remove the "OFF" flag.

@github-actions github-actions bot added this to To do in kanban Jul 7, 2021
@ShiChangkuo ShiChangkuo added the bug label Jul 7, 2021
@niuzhenguo niuzhenguo added this to the v1.27.0 milestone Jul 7, 2021
kanban automation moved this from To do to Done Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

4 participants