ionos-cloud/terraform-provider-ionoscloud

error waiting for state change for server creation couldn't find resource (601 retries)

mitnicki opened this issue · 3 comments

Description

We try to create a Cube XXL (640GB Disk) "CS01" that is part of a module. The cube creation timeouts were set to 4 Hours

timeouts {
create :
"4h"
delete :
"4h"
create
update :
"4h"
}

After two hours we are getting the following error and the terraform run errors:

Error: error waiting for state change for server creation couldn't find resource (601 retries)
with module.ABCDE[0].ionoscloud_server.CUBE_CS01
on modules/ABCDE/main.tf line 96, in resource "ionoscloud_server" "CUBE_CS01":
resource "ionoscloud_server" "CUBE_CS01" {

Versions:

Terraform: 1.4.6
IONOS: 6.4.7

The cube finally gets created in IONOS DCD but the issue is with the terraform run being canceled and so all following tasks also cancel.

Expected behavior

Terraform / Ionos should be waiting longer for the cube creation.

Environment

Terraform version:
1.4.6

Provider version: 
6.4.7

OS:

Configuration Files

How to Reproduce

Error and Debug Output

Additional Notes

References

UPDATE: as i can see in the source code there is a "NotFoundChecks" counter implementet in the services/cloudapi/state.go file.
image

Maybe thats the cause for the error. Because we are getting the error message telling us "(601 retries)"

Error: error waiting for state change for server creation couldn't find resource (601 retries)

Thanks, yes probably that is it.

Should be fixed in latest release