-
Notifications
You must be signed in to change notification settings - Fork 28
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
two alerts for one tests state is not persisting #111
Comments
Hi @Sraza11 , Thanks for reporting this. Thanks, |
the following snippet of terraform code that is triggering this behavior. if I remove the second alert rule (rule_id=448261) the issue goes away. alert_rules {
rule_id = 448261
} this plan is not showing changes to path_trace_mode but just the Alert rule. here is what it offers the difference it will apply with terraform apply. ~ resource "thousandeyes_agent_to_server" "subnet-136-1" {
id = "3168076"
# (25 unchanged attributes hidden)
+ alert_rules {
+ rule_id = 448261
}
# (6 unchanged blocks hidden)
} |
@Sraza11 can you share the full resource with us, please? I want to try to reproduce the issue. |
Here is the complete resource resource "thousandeyes_agent_to_server" "Akamai-subnet-161-215-209" {
test_name = "PUBLIC Prefix 161.215.209.0/24_TF"
description = "Description"
interval = 600
alerts_enabled = true
enabled = true
server = "161.215.209.19"
protocol = "TCP"
port = "443"
path_trace_mode = "inSession"
bgp_measurements = true
use_public_bgp = true
bandwidth_measurements = false
groups {
group_id = var.Prolexic_TAG
}
groups {
group_id = var.tfTAG
}
agents {
agent_id = 92379 #Alibaba Agent
}
agents {
agent_id = 55869 #Chicago agent
}
agents {
agent_id = 7056 # Houston agent
}
alert_rules {
rule_id = var.ProlexicRule
}
alert_rules {
rule_id = var.BgpAlertRule
}
}
variable "ProlexicRule" {
description = "Prolexic Alert rule"
type = number
default = "1240429"
}
variable "BgpAlertRule" {
description = "Bgp alert rule"
type = number
default = "448261"
}
variable "tfTAG" {
description = "tf tag"
type = number
default = "421071"
}
variable "Prolexic_TAG" {
description = "Prolexic Tag"
type = number
default = 88494
} |
@Sraza11 while debugging this I found out that this only happens if one of the Alert Rules is a "default" one. Still not sure why, but just letting you know in case you need unblocking for this. |
I have two alerts attached to a test. Even after the "terraform apply" if I run terraform plan it shows pending change.
@tduzan-te @sfreitas-te @pedro-te
The text was updated successfully, but these errors were encountered: