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

Issue with pagerduty_schedule and rotation_virtual_start #11424

Closed
michaelcurran opened this issue Jan 26, 2017 · 2 comments
Closed

Issue with pagerduty_schedule and rotation_virtual_start #11424

michaelcurran opened this issue Jan 26, 2017 · 2 comments

Comments

@michaelcurran
Copy link

Hi there,

I am trying to use pagerduty_schedule to set a weekly rotation and rotation_virtual_start to set a specific handoff time within the schedule.

Terraform Version

Terraform v0.8.4

Affected Resource(s)

  • pagerduty_schedule

Terraform Configuration Files

resource "pagerduty_schedule" "something" {
  name      = "something"
  time_zone = "America/New_York"

  layer {
    name                         = "Layer 1"
    start                        = "2017-01-20T04:00:00-05:00"
    rotation_virtual_start       = "2017-01-20T16:00:00-05:00"
    rotation_turn_length_seconds = 604800

    users = [
      "${data.pagerduty_user.some_user.id}",
    ]
  }
}

Expected Behavior

Using rotation_virtual_start you should be able to adjust the schedule handoff time, and it should remain set to the specified time.

Actual Behavior

Once rotation_virtual_start has been set future changes to it are not detected during plans, and additional changes to the pagerduty_schedule resource, such as adding or removing users, cause the handoff time to change even though rotation_virtual_start has not been updated. I've noticed the change seems to decrease by 5 hours on each apply.

Steps to Reproduce

For rotation_virtual_start changes not being detected:

  1. Create a pagerduty_schedule resource
  2. terraform apply
  3. Update rotation_virtual_start
  4. terraform plan

For the handoff time being updated when not updating rotation_virtual_start:

  1. Create a pagerduty_schedule resource
  2. terraform apply
  3. Check the schedule in PagerDuty
  4. Add a user to the pagerduty_schedule resource (or add it directly within PagerDuty)
  5. terraform apply (the handoff time for the schedule in PagerDuty should have changed)
@iancward
Copy link

iancward commented May 9, 2017

I'm seeing similar issues, too. I can change the offset times in start and rotation_virtual_start and run terraform plan and then run terraform plan and terraform plans no changes. In fact, I can change the start date in the PagerDuty UI and then run terraform plan and terraform is completely oblivious (it still doesn't plan to change anything).

I'm using terraform 0.9.2.

@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants