{"action":"closed","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/46","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/46/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/46/events","html_url":"https://github.com/terraform-providers/terraform-provider-packet/issues/46","id":296112524,"number":46,"title":"Updating `ipxe_script_url` \"works\" but doesn't actually work","user":{"login":"grahamc","id":76716,"avatar_url":"https://avatars3.githubusercontent.com/u/76716?v=4","gravatar_id":"","url":"https://api.github.com/users/grahamc","html_url":"https://github.com/grahamc","followers_url":"https://api.github.com/users/grahamc/followers","following_url":"https://api.github.com/users/grahamc/following{/other_user}","gists_url":"https://api.github.com/users/grahamc/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamc/subscriptions","organizations_url":"https://api.github.com/users/grahamc/orgs","repos_url":"https://api.github.com/users/grahamc/repos","events_url":"https://api.github.com/users/grahamc/events{/privacy}","received_events_url":"https://api.github.com/users/grahamc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-10T16:19:30Z","updated_at":"2018-03-06T19:48:23Z","closed_at":"2018-03-06T19:48:23Z","author_association":"NONE","body":"\r\n> Terraform v0.11.1\r\n\r\n### Affected Resource(s)\r\nPlease list the resources as a list, for example:\r\n - packet_device\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nvariable \"auth_token\" {}\r\nvariable \"project_id\" {}\r\nvariable \"ipxe_script_url\" {}\r\n\r\nprovider \"packet\" {\r\n  auth_token = \"${var.auth_token}\"\r\n}\r\n\r\n# Create a device and add it to tf_project_1\r\nresource \"packet_device\" \"web1\" {\r\n  hostname         = \"my-server\"\r\n  plan             = \"baremetal_2a\"\r\n  facility         = \"ewr1\"\r\n  operating_system = \"custom_ipxe\"\r\n  ipxe_script_url  = \"${var.ipxe_script_url}\"\r\n  always_pxe       = true\r\n  billing_cycle    = \"hourly\"\r\n  project_id       = \"${var.project_id}\"\r\n}\r\n```\r\n\r\n### Debug Output\r\nI left this out because it was too hard to strip out the secrets.\r\n\r\n### Panic Output\r\nna\r\n\r\n### Expected Behavior\r\n\r\nRunning terraform apply should update the PXE URL configured for the host.\r\n\r\n### Actual Behavior\r\nWhat actually happened?\r\n\r\n```\r\n$ terraform apply\r\npacket_device.web1: Refreshing state... (ID: ...)\r\n\r\nAn execution plan has been generated and is shown below.\r\nResource actions are indicated with the following symbols:\r\n  ~ update in-place\r\n\r\nTerraform will perform the following actions:\r\n\r\n  ~ packet_device.web1\r\n      ipxe_script_url: \"02-10v1/netboot.ipxe\" => \"bogus/netboot.ipxe\"\r\n\r\n\r\nPlan: 0 to add, 1 to change, 0 to destroy.\r\n\r\nDo you want to perform these actions?\r\n  Terraform will perform the actions described above.\r\n  Only 'yes' will be accepted to approve.\r\n\r\n  Enter a value: yes\r\n\r\npacket_device.web1: Modifying... (ID: ...)\r\n  ipxe_script_url: \"02-10v1/netboot.ipxe\" => \"bogus/netboot.ipxe\"\r\npacket_device.web1: Modifications complete after 1s (ID: ...)\r\n```\r\n\r\nbut the device's pxe URL is not updated. Running terraform apply again tries to do it again, as well.\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. `terraform apply`\r\n2. change the URL in the config\r\n3. terraform apply again, notice the URL isn't updated on the server\r\n"}}
{"actor":{"display_login":"t0mk"}}