terraform-provider-openstack: unexpected state 'ERROR', wanted target 'ACTIVE'. last error: %!s()

This issue was originally opened by @Al2Klimov as hashicorp/terraform#23597. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

f281eb2b447dc3e3f7847295ccede2ce2c54297c

Terraform Configuration Files

https://nextcloud.icinga.com/index.php/s/C8etjyDgCWJAxT8

Debug Output

https://nextcloud.icinga.com/index.php/s/DXnzTxx4dsppXjL

Crash Output

N/A

Expected Behavior

Terraform should show me the concrete error.

Actual Behavior

It shows just %!s(<nil>).

Steps to Reproduce

  1. Create an environment like mine (see above) with a host with an IP not matching the host’s network.
  2. terraform init
  3. terraform apply

Additional Context

N/A

References

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 5
  • Comments: 15

Most upvoted comments

Good afternoon,

I have the same issue during the deployment instance or Kubernetes cluster. How we can fix this issue more quickly?
Can you help me resolve this issue?

Best Regards, Yurii

@Al2Klimov thanks for the bug report.

It shows just %!s(<nil>)

Actually it shows ERROR', wanted target 'ACTIVE'. last error: %!s(<nil>), which means that openstack returns an ERROR status for the compute instance resource. This usually caused by a quota limits, applied to a project. Please make sure that quota is fine.

You can also verify the actual error message by executing the command below:

$ openstack server show 8d9da883-edf8-4cfb-8ab0-ea09d1790268 -c fault -f value
$ openstack server show f83815c6-0b3e-40dc-ac2a-3030a18d695b -c fault -f value