Skip to content
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

Inconsistent result error with recurring_schedule start field in Datadog_downtime_schedule creation #2640

Open
Rams2408 opened this issue Nov 4, 2024 · 0 comments
Labels

Comments

@Rams2408
Copy link

Rams2408 commented Nov 4, 2024

Datadog Terraform Provider Version

v3.46.0

Terraform Version

v1.5.7

What resources or data sources are affected?

datadog_downtime_schedule

Terraform Configuration Files

resource "datadog_downtime_schedule" "mq_broker_maintenance" {
count = var.enable ? 1 : 0
scope = "env:${var.environment}"

monitor_identifier {
monitor_id = datadog_monitor.heap_momory_usage_monitor[0].id
}

recurring_schedule {
recurrence {
duration = "2h" # Duration of the downtime (2 hours from 23:59 to 01:59 UTC)
rrule = "FREQ=WEEKLY;INTERVAL=1;BYDAY=SA" # Weekly recurrence on Saturdays
start = "2024-11-02T23:59" # Example date and time for the first occurrence of the downtime
}
timezone = "UTC" # Use UTC or adjust to your preferred timezone
}

display_timezone = "UTC"
message = "Scheduled weekly maintenance window for minor version upgrades on the MQ broker"
mute_first_recovery_notification = true
notify_end_states = ["alert", "warn"]
notify_end_types = ["canceled", "expired"]
}

Relevant debug or panic output

The following error appears when I run terraform apply:

Error: Provider produced inconsistent result after apply

│ When applying changes to module.datadog_dashboards_and_monitors.module.heap_memory_usage_monitor.datadog_downtime_schedule.mq_broker_maintenance[0], provider
│ "provider["registry.terraform.io/datadog/datadog"]" produced an unexpected new value: .recurring_schedule.recurrence[0].start: was cty.StringVal("2024-11-02T23:59"),
│ but now cty.StringVal("2024-11-02T23:59:00").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Expected Behavior

The recurring downtime schedule should be created with the specified start time in the correct format, without resulting in an "inconsistent result" error.

Actual Behavior

When running terraform apply to create the datadog_downtime_schedule resource, I encounter an error indicating an "inconsistent result" due to a discrepancy in the start field.

Steps to Reproduce

terraform apply

Important Factoids

No response

References

#2535

@Rams2408 Rams2408 added the bug label Nov 4, 2024
@Rams2408 Rams2408 changed the title Inconsistent result error with recurring_schedule start field in Datadog downtime schedule Inconsistent result error with recurring_schedule start field in Datadog downtime schedule Nov 4, 2024
@Rams2408 Rams2408 changed the title Inconsistent result error with recurring_schedule start field in Datadog downtime schedule Inconsistent result error with recurring_schedule start field in Datadog_downtime_schedule creation Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant