-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Failed ES domain upgrade error isn't helpful #11061
Comments
Hey @tomelliff 👋 Thank you for taking the time to file this issue! Given that there's been a number of AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior? |
@justinretzolk just got it reproduced with Terraform AWS provider 3.75.1 (latest pre 4.0 version) My branch fixes this as follows
still working on adding appropriate tests and more insights as well as running regression tests |
With a new commit in my branch above I was also able to retrieve more detailed information as follows:
|
Failed ES domain upgrade error isn't helpful
Hi Hashicorp / AWS TF provider core team. in the past I have submitted some patches against the master repo but my fixed branch is currently based on tag 3.75.1 What would be the appropriate method to submit my fix for this issue please ? Should I try to cherry-pick the changes in the master ? |
So far I was not able to successfully run the regression tests agains us-west-1 zone:
I moved from 3h to 4h without more success (making parallelism set to 2 because of my laptop constraints). |
For the 3 zones error I just found out that us-west-1 is only 2 zone will change to us-west-2 (4 zones) |
:-( just a little bit more luck after 8h on us-west-2: at least the previously failing test passed successfully
|
any insights on this please ? |
Failed ES domain upgrade error isn't helpful
Can someone help with this please ? |
Anyone ? |
Failed ES domain upgrade error isn't helpful
Failed ES domain upgrade error isn't helpful
Community Note
Terraform Version
Terraform v0.12.10
Affected Resource(s)
Terraform Configuration Files
Debug Output
The relevant part of the debug log is small so posting it directly here:
Expected Behavior
My cluster is failing the upgrade eligibility checks but I'd expect to see the error correctly reported by Terraform with something like the following:
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
I've moved from a 2 AZ ES cluster to a 3 AZ ES cluster in place and then immediately moved to 6.8 and then attempted to again upgrade to 7.2 but this is causing the above error on the AWS side. That bit is fine but I'd expect Terraform to properly show the error instead of
%!s(<nil>)
I wrote this in place upgrade code but didn't have a good way of inducing an upgrade failure so couldn't really test what happened in that case but it looks like AWS's API doesn't return an error, just the
FAILED
StepStatus
field. TheGetUpgradeHistory
API endpoint will show the results of any attempted upgrades in reverse chronological order so it's possible we could retrieve the first failed result from that for the domain and return the list ofUpgradeStepItem.Issues
.I am wary that I don't know a good way to force an ES cluster into a bad state though so this might be tricky to test once my ES cluster is back in to a good place.
References
The text was updated successfully, but these errors were encountered: