-
Notifications
You must be signed in to change notification settings - Fork 89
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
Changing deployment_template_id for Elastic instances Failing via code #626
Comments
@HMarvellNW we've made a bunch of changes to how this scenario is handled in more recent provider versions. Are you able to test this against |
Hey @tobio - Quick question on this one: We have a large number of clusters here and I'm conscious there is the TypeMap issue on topologies on these versions that's fixed in 0.6.0 (#336). Do you think the zero size workaround (#472) will attempt to reorder our topology elements by adding the empty defaults (since we are currently only defining a subset of those we need), and potentially throw errors by trying to change node types / hardware profiles about? If not then brill! I'm just conscious of having to unpick things manually since our number of clusters is currently around the 100 mark... |
Without specifics, yea it probably will sorry. It sounds like you're facing two issues:
Just so it's clear, the change in #472 only impacts deployments with autoscaling enabled. Any deployments working with 0.3, where autoscaling is not enabled should be expected to continue to work without change in 0.5. Deployments with autoscaling enabled, would require zero sized topology elements where But, I understand migrating a large number of deployments for 0.5 and then 0.7 is pretty horrible. I'll follow up on the remaining 0.7 tasks and see if we can get 0.7 out which fixes both this bug and the topology ordering issue so there's only a single migration. |
Yeah all of our clusters have autoscaling configured currently so would need updating unfortunately. Yeah our current code will just generate a list containing the minimum elements unfortunately, so elements like zero sized cold nodes (alphabetically preceding existing nodes) would reorder things like hot-warm configs as it'll update the order 😢 @HMarvellNW - Sounds like we have 3 main options really then:
Thanks for helping advise on this one as always @tobio, very much appreciated! 👍 |
@RobsonSutton we were discussing the timelines here. I'll get a 0.7 version released sometime this week to close off this issue. |
Readiness Checklist
Expected Behavior
The expected behaviour of changes via terraform should allow our deployments to change/upgrade deployment template versions without any manual intervention within EC.
Current Behavior
We are currently experiencing issues with template upgrades via code within the Hot-warm deployment template family (Hot-warm-v2 to Hot-warm-v4), our main issue is seen when version bumping from v2 to a later version of the template. Errors that we see are within the terraform apply step, calling api errors as the issue, please see screenshot. Our current work around for this is to manually change the deployment template within the EC and then we are able update our infrastructure as code to match these changes.
This is created when the following message is available within EC.
This error doesn't appear to present when changing from CPU-optimized-arm-v5 and the hot-warm templates, only within the hot-warm deployment templates.
## Terraform definition
Steps to Reproduce
Context
The context of this issue is that we are currently trying to upgrade our deployment templates to the latest version to maintain parity across our deployments.
Your Environment
The text was updated successfully, but these errors were encountered: