-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
aws: aws_elasticache_cluster doesn't wait till completed #2732
Comments
Hey @mzupan – I'll check this out, however we've been down this road in #2051 and both @phinze and I can't seem to reproduce it after several attempts. There is code in the resource that waits for the nodes to become available, which should populate the attribute before you're getting to this point. Maybe you can spot something in the logic that we're missing? |
+1 - I'm having exactly the same issue with terraform 0.6.0 |
Yes, I'm getting it most of the time (just tested on 0.6.1) - @catsby ping me directly for stack/logs. |
I'm looking for a configuration that reproduces this. Can you reproduce this with the configuration above, or the one I shared in this gist? I believe this is happening... I just can't track down where, I'm not able to reproduce it even a single time 😦 |
I'm not sure I follow your meaning here. I've tried the mentioned config and config I shared in this gist, has anyone managed to reproduce this issue with either? I've tried several regions as well. I've seen logs that demonstrate the error(s) so I believe this to be happening. @munhitsu – thanks for the info you shared privately. I tried pairing your example back to just the cluster related things, but still no success reproducing it. An important observation from your logs though...
In your log, those are the only two lines output of that status. When I create the cluster, I get this output: Which is about 5 minutes of That seems to be a mistake on AWS's side... I'm not sure what else would happen here, we're reading that value from what the API returns. I pushed a branch https://github.com/hashicorp/terraform/tree/aws-elasticache-debug that has extra debugging for the Cluster creation and checking of the nodes. If anyone can reproduce this, please try with that branch if possible and examine the logs. I've changed the output to be I'm trying to re-run this with the that branch. |
Specific debug additions: 6469c32 |
At long (long) last, I think I have insight here. Working on testing my theory and fixing ... Thank you all for your help and patience here |
I think #2842 fixes this. The only way I could reproduce this is if I was creating (or had a prior existing) cluster in the same region. There were bugs in the code that wasn't searching correctly, and wasn't comparing the right cluster information.. Sorry for dragging this on, I really appreciate all the help and patience here. Please let me know if you can checkout #2842 |
have this issue today with terraform 0.9.1,
updatesI found another issue that |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Haven't looked at the aws library to see if this is possible but the aws_elasticache_cluster creation at least for redis doesn't wait until a cache node is created so anything referencing the attribute will fail.
For example
It fails on the route53 creation
Once the cache node is created it works fine
The text was updated successfully, but these errors were encountered: