hashicorp / terraform-provider-runscope

Terraform runscope provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://www.terraform.io/docs/providers/runscope/
Other
8 stars 25 forks source link

Provider Hangs Endlessly When Using for_each #31

Open AMcManigal opened 4 years ago

AMcManigal commented 4 years ago

When you try to create anything with a for_each construct with on object with a lot of properties (I think around 20)the provider will hang endlessly. It works for short iterations. For example:

  for_each = module.stack.tests
  bucket_id = module.stack.bucket.id
  step_type = "request"
  test_id = each.value.id
  ...

Output:

runscope_step.internal["naa"]: Still creating... [1m30s elapsed]
runscope_step.internal["ayca"]: Still creating... [1m40s elapsed]
runscope_step.internal["rome"]: Still creating... [1m39s elapsed]
runscope_step.internal["bcaa"]: Still creating... [1m40s elapsed]
xonstone commented 4 years ago

Seems like this has something to do with the StdOut/StdErr of the runscope lib. After my pr (https://github.com/terraform-providers/terraform-provider-runscope/pull/30) I don't have it anymore.

tomwassenberg commented 4 years ago

While upgrading our Terraform config to v0.12, we're also repeatedly experiencing endlessly hanged runs of terraform plan. On Terraform v0.11.13, it's working fine. We have about ~125 Runscope resources, without any for_each constructs.

With TF_LOG set to debug, I'm getting some output during the hang, but it's truncated (I've redacted our resource names):

g for "runscope_test.<redacted_1>"
r "runscope_test.<redacted_1>"
 "runscope_test.<redacted_1>"
r "runscope_test.<redacted_1>"
cope_step.<redacted_2>" is waiting for "runscope_test.<redacted_1>"
est"
or "runscope_test.<redacted_1>"
runscope_test.<redacted_1>"
 vertex "runscope_step.<redacted_3>" is waiting for "runscope_test.<redacted_1>"
cope_test.<redacted_1>"
 for "runscope_test.<redacted_1>"
CE] dag/walk: vertex "runscope_step.<redacted_4>" is waiting for "runscope_test.<redacted_1>"
bjaworski3 commented 4 years ago

Same issue after upgrading to v0.12, any work around for this?

Similar output as @tomwassenberg, stuck on waiting for resources.

tljdebrouwer commented 4 years ago

I “solved” this by recompiling the plug-in and the ewilde/go-runscope library. Maybe that also works for you..

sylvainlegault commented 4 years ago

Any progress on this? similar output as @tomwassenberg and @bjaworski3 apply just stay indefinitely on 'Still creating' after migrating to TF v.12.29 and v.6.0.0 for the plugin. Looks like if there are many steps it just hang.

Sylvain-Royer commented 4 years ago

This problem still seems to persist. Is this repository no longer being upgraded with bug fixes?

cc @ewilde

wolf31o2 commented 3 years ago

FYI, recompiling as mentioned in https://github.com/terraform-providers/terraform-provider-runscope/issues/31#issuecomment-573289599 seems to have resolved the issue for us when we upgraded to TF 0.12 and it appeared to happen on any large number of runscope resources.