Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Provider Hangs Endlessly When Using for_each #31

Open
AMcManigal opened this issue Oct 15, 2019 · 7 comments · May be fixed by #35
Open

Provider Hangs Endlessly When Using for_each #31

AMcManigal opened this issue Oct 15, 2019 · 7 comments · May be fixed by #35

Comments

@AMcManigal
Copy link

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
Copy link
Contributor

xonstone commented Oct 18, 2019

Seems like this has something to do with the StdOut/StdErr of the runscope lib. After my pr (#30) I don't have it anymore.

@tomwassenberg
Copy link

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
Copy link

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

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

@tljdebrouwer
Copy link

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

@sylvainlegault
Copy link

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
Copy link

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

cc @ewilde

@codezninja codezninja linked a pull request Oct 13, 2020 that will close this issue
@wolf31o2
Copy link

FYI, recompiling as mentioned in #31 (comment) 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants