-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to create an instance with cloudamqp_rabbitmq_configuration
with heartbeat value set to 0
#214
Comments
I could not reproduce these issues, tried with >0 and 0 Are you still having issues @thar? The problems could be related to the load of your cluster. Please reach out to https://www.cloudamqp.com/support.html (feel free to reference this issue) and we will help you. |
That was against RabbitMQ 3.12.1, where I in my first run used Doing a run with
|
resource "cloudamqp_rabbitmq_configuration" "rabbitmq_config" {
instance_id = cloudamqp_instance.cluster.id
heartbeat = 0
} Interesting thing is that I can see |
I can see that the PUT request to |
I think you can workaround the ...but we should address this as a run like this fails resource "cloudamqp_instance" "cluster" {
name = "terraform"
plan = "bunny-1"
region = "amazon-web-services::eu-north-1"
}
resource "cloudamqp_rabbitmq_configuration" "rabbitmq_config" {
instance_id = cloudamqp_instance.cluster.id
heartbeat = 0
} |
cloudamqp_rabbitmq_configuration
with heartbeat value set to 0
I have a strong suspicious that the provider is not allowing terraform-provider-cloudamqp/cloudamqp/resource_cloudamqp_rabbitmq_configuration.go Lines 157 to 164 in 00f4368
|
Thanks, that indeed looks like the issue. It comes from #166. Looks like some more elaborate handling is needed. Let's wait until @tbroden84 is back from vacation. |
We are using an old So when using this the first time, there is no difference between resource "cloudamqp_rabbitmq_configuration" "rabbitmq_config" {
instance_id = cloudamqp_instance.cluster.id
heartbeat = 0
} During the second run, there will be a diff from read values against your configuration. It's then possible to detect the Tried to clean up the code a bit in #215 but will unfortunately not solve this. We would need to upgrade to |
Ah, so we can't see the difference between user doing |
Correct, so during the initial create run they will both be 0 without any changes detected. During the second run or a run after an import there will be a difference. State file says |
Should we address this with improved documentation for now @tbroden84? |
Yes good point, added it as a task. |
Hi
When creating a cloudamqp_rabbitmq_configuration resource and applying it I'm always getting errors.
I'm creating it the following way:
If the heartbeat value is greater than 0 I get the following error:
Error: Put "https://customer.cloudamqp.com/api/instances/220352/config": EOF
The debug log shows:
I've also detected that when setting heartbeat value to 0 I receive the following error:
Error: Update RabbitMQ configuration failed, status: 400, message: map[error:No settings to validate]
Do you know this issue?
Thanks in advance
The text was updated successfully, but these errors were encountered: