{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/8","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/8/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/8/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/8/events","html_url":"https://github.com/terraform-providers/terraform-provider-packet/issues/8","id":249694037,"number":8,"title":"Unable to provision reserved instances","user":{"login":"brownjohnf","id":1001049,"avatar_url":"https://avatars2.githubusercontent.com/u/1001049?v=4","gravatar_id":"","url":"https://api.github.com/users/brownjohnf","html_url":"https://github.com/brownjohnf","followers_url":"https://api.github.com/users/brownjohnf/followers","following_url":"https://api.github.com/users/brownjohnf/following{/other_user}","gists_url":"https://api.github.com/users/brownjohnf/gists{/gist_id}","starred_url":"https://api.github.com/users/brownjohnf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brownjohnf/subscriptions","organizations_url":"https://api.github.com/users/brownjohnf/orgs","repos_url":"https://api.github.com/users/brownjohnf/repos","events_url":"https://api.github.com/users/brownjohnf/events{/privacy}","received_events_url":"https://api.github.com/users/brownjohnf/received_events","type":"User","site_admin":false},"labels":[{"id":620326722,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-11T17:05:28Z","updated_at":"2017-08-11T18:16:47Z","closed_at":null,"body":"Hi there,\r\n\r\nThank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.\r\n\r\n### Terraform Version\r\n\r\nTerraform v0.10.0\r\n\r\n### Affected Resource(s)\r\n\r\n- packet_device\r\n\r\nOnly appears to impact provisioning reserved hardware.\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\n# BEGIN Outputs\r\n\r\noutput \"ips\" {\r\n  value = \"${zipmap(packet_device.arm-builders.*.hostname, packet_device.arm-builders.*.network)}\"\r\n}\r\n\r\n# END Outputs\r\n\r\n# packet_devices.tf\r\n\r\nresource \"packet_device\" \"arm-builders\" {\r\n  count            = \"${var.host_count[\"arm_builders\"]}\"\r\n  hostname         = \"arm0${count.index + 1}\"\r\n  project_id       = \"${packet_project.sponsored-testing.id}\"\r\n  operating_system = \"ubuntu_16_04\"\r\n  facility         = \"ams1\"\r\n  plan             = \"baremetal_2a2\"\r\n  billing_cycle    = \"monthly\"\r\n  user_data        = \"${file(\"./user_data/ubuntu/docker-tls.yml\")}\"\r\n}\r\n\r\nresource \"packet_project\" \"sponsored-testing\" {\r\n  name = \"foobar\"\r\n}\r\n\r\n# providers.tf\r\n\r\nprovider \"packet\" {\r\n  # Specify a PACKET_AUTH_TOKEN env var\r\n}\r\n\r\nvariable \"host_count\" {\r\n  type = \"map\"\r\n  default = {\r\n    arm_builders = \"1\"\r\n  }\r\n}\r\n```\r\n\r\n### Debug Output\r\n\r\nhttps://gist.github.com/brownjohnf/a9a81deba1e431fe3787dff198306bdf\r\n\r\n### Panic Output\r\n\r\nNone\r\n\r\n### Expected Behavior\r\n\r\nThe `baremetal_2a2` should have provisioned.\r\n\r\n### Actual Behavior\r\n\r\n```\r\nError applying plan:                                                                                                                                                                                               \r\n1 error(s) occurred:                                                                                                                                                                                               \r\n* packet_device.arm-builders: 1 error(s) occurred:\r\n* packet_device.arm-builders: You are not allowed to provision baremetal_2a2 servers\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. `terraform apply`\r\n\r\n### Important Factoids\r\n\r\nUsing an experimental machine type, but it works fine in the Packet.net dashboard. Also, if I change the type to `baremetal_2a` everything provisions just fine. This seems to be an issue specifically with provisioning reserved instances.\r\n\r\n### References\r\n\r\nNone known of.\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/comments/321883528","html_url":"https://github.com/terraform-providers/terraform-provider-packet/issues/8#issuecomment-321883528","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-packet/issues/8","id":321883528,"user":{"login":"brownjohnf","id":1001049,"avatar_url":"https://avatars2.githubusercontent.com/u/1001049?v=4","gravatar_id":"","url":"https://api.github.com/users/brownjohnf","html_url":"https://github.com/brownjohnf","followers_url":"https://api.github.com/users/brownjohnf/followers","following_url":"https://api.github.com/users/brownjohnf/following{/other_user}","gists_url":"https://api.github.com/users/brownjohnf/gists{/gist_id}","starred_url":"https://api.github.com/users/brownjohnf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brownjohnf/subscriptions","organizations_url":"https://api.github.com/users/brownjohnf/orgs","repos_url":"https://api.github.com/users/brownjohnf/repos","events_url":"https://api.github.com/users/brownjohnf/events{/privacy}","received_events_url":"https://api.github.com/users/brownjohnf/received_events","type":"User","site_admin":false},"created_at":"2017-08-11T18:16:47Z","updated_at":"2017-08-11T18:16:47Z","body":"Sure, I can do that. Ed made some sort of change that unblocked us and got things working, but I then received:\r\n\r\n`* packet_device.arm-builders: Billing cycle must be one of the following: hourly`\r\n\r\nSwitching to an hourly billing cycle allowed me to provision."}}
{"actor":{"display_login":"brownjohnf"}}