-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
MSK EBS issue on enabling storage autoscaling #20327
Comments
I've encountered the same issue. Try to update your TF config in a way for the initial ebs volume size matches what it currently is in AWS. In my case TF was trying to reduce it back to the initial size which is no longer the case after a couple of auto-scaling events Note that the above is just a workaround to keep things moving. IMO, this should not really be the case and the initial size is treated as per what it really is, i.e. initial |
The following worked well for us:
A bit of an unexpected syntax, but solved the issue and TF apply won't attempt to reset it back after it has changed via either auto/manual scaling! |
@HackerTheMonkey hack worked for me, although I had to use a different syntax as well
|
is there any timeline to add support for EBS autoscaling in the |
With the latest provider version the correct syntax is:
|
This is not directly related though is about |
@yermulnik do you have autoscaling enabled and the lifecycle {
ignore_changes = [
broker_node_group_info[0].storage_info[0].ebs_storage_info[0].volume_size
]
} ... included in your template? if so sounds like "expected behavior" given this issue is still open. |
@jhovell Yeah, I missed to update this thread, sorry. This indeed was |
@pascal-hofmann's comment above fixed it for me and successfully excluded external changes from the plan. However as I did not specify anything for ~ storage_info {
~ ebs_storage_info {
# (1 unchanged attribute hidden)
- provisioned_throughput {
- enabled = false -> null
- volume_throughput = 0 -> null
}
}
} Which AWS didn't like:
Explicitly setting ebs_storage_info {
volume_size = var.initial_volume_size_gib
provisioned_throughput {
enabled = false
}
} Ignoring changes to the entire lifecycle {
ignore_changes = [
broker_node_group_info[0].storage_info[0].ebs_storage_info
]
} EDIT: Forget it. I thought I tested this thoroughly but I'm still having issues. Getting the exact same error as this: #26031 (comment), although my plan now thinks that it needs to make a change whereas what I tested above produced no plan change at all. Now I get: ~ broker_node_group_info {
# (4 unchanged attributes hidden)
~ storage_info {
~ ebs_storage_info {
# (1 unchanged attribute hidden)
+ provisioned_throughput {
+ enabled = false
}
}
}
# (1 unchanged block hidden)
} and the same error about no change being made. Not sure why that should be an issue anyway - the request should be idempotent and simply take no action if nothing needs to change |
Relates #34480. |
Hi,
I have enabled ebs autoscaling for kafka cluster.
resource "aws_msk_cluster" "kafka" { ..................... broker_node_group_info { instance_type = <dummy> **ebs_volume_size = 1** ............... security_groups = [aws_security_group.kafka_private_sg.id] } ................ }
I have the ebs autoscaling enabled for this cluster. The initial ebs volume was 1 GB. Later, the ebs volume size got expanded because of the autoscalig enabled. The next time I apply some changes( after the ebs resize happened); terraform tries to reduce the ebs volume back to the 1 which was set initially and fails with a error.
It fails with the following error message
Error: error updating MSK Cluster (arn:aws:kafka:us-east-2:798036251187:cluster/Edhperf-msk-cluster/f33753ee-8a35-48dd-abb1-b0262001800a-4) broker storage: BadRequestException: To update storage, you must increase it by at least 10 GiB.
Can somebody help me on this.
The text was updated successfully, but these errors were encountered: