-
Notifications
You must be signed in to change notification settings - Fork 56
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
Cluster roll failure when 2 or more VNGs are updated at once #447
Comments
@dmitrykruglov I got the same issue when trying to upgrade multiple VNGs at once, and i believe it needs to be fixed or well documented in the provider Terraform docs. If you want to rollout more than one VNG at the same time, you should do that from the Ocean cluster level (example below):
I managed to test this and it works perfectly fine for a list of VNGs. The ocean_cluster documentation has the details for the configuration: https://registry.terraform.io/providers/spotinst/spotinst/latest/docs/resources/ocean_aws#update-policy |
Hi @dmitrykruglov update_policy { |
@sharadkesarwani how can you pass vng_ids to the cluster, when |
Description
Hello,
We have 2 VNGs (
spotinst_ocean_aws_launch_spec
) that haveshould_roll
feature enabled (in order to automate cluster/VNG roll when configuration changes).When updating two VNGs at once in 1 terraform apply (for example AMI ID change), terraform fails with an error "Can't have 2 Rolls at the same time. Please stop the previous one". This is one of the reasons why we had to stop using VNGs for now and only use the default VNG to avoid this problem..
Terraform Version
1.3.9
Affected Resource(s)
spotinst_ocean_aws_launch_spec
Terraform Configuration Files
Debug Output
Expected Behavior
Terraform shouldn't crash with an error.
Cluster roll either needs to complete just once, applying changes to both VNGs, or VNGs need to roll independently at the same time.
Actual Behavior
Terraform crashes with the error "Can't have 2 Rolls at the same time" and fails to roll/apply changes to one of the VNGs.
Steps to Reproduce
spotinst/ocean-aws-k8s-vng/spotinst
module withshould_roll = true
.image_id
to a different imageThe text was updated successfully, but these errors were encountered: