vultr / terraform-provider-vultr

Terraform Vultr provider
https://www.terraform.io/docs/providers/vultr/
Mozilla Public License 2.0
191 stars 65 forks source link

Reverse DNS Entries do not accept the instance-id for Bare Metal #289

Open grant-veepshosting opened 1 year ago

grant-veepshosting commented 1 year ago

Create a bare metal instance, and try to use the resulting instance-id as an input variable for the resource "vultr_reverse_ipv6" or "vultr_reverse_ipv4". Both return the error │ Error: error creating reverse IPv4: {"error":"Invalid instance-id.","status":404}

Code we used, for reference: https://github.com/Veeps-Hosting/terraform-terragrunt-vultr/blob/main/bare_metal/main.tf#L39

Example output -

vultr_bare_metal_server.server: Still creating... [6m30s elapsed]
vultr_bare_metal_server.server: Creation complete after 6m32s [id=0017d59d-2410-4867-9447-4c69390aab7b]
vultr_reverse_ipv6.ipv6_ptr_entry: Creating...
vultr_reverse_ipv4.ipv4_ptr_entry: Creating...
vultr_dns_record.hostname_dns_entry: Creating...
vultr_dns_record.hostname_dns_entry: Creation complete after 0s [id=cd8eef03-ba34-4677-8f02-451db4c604b7]
╷
│ Error: error creating reverse IPv4: {"error":"Invalid instance-id.","status":404}
│ 
│   with vultr_reverse_ipv4.ipv4_ptr_entry,
│   on main.tf line 38, in resource "vultr_reverse_ipv4" "ipv4_ptr_entry":
│   38: resource "vultr_reverse_ipv4" "ipv4_ptr_entry" {
│ 
╵
╷
│ Error: error creating reverse IPv6: {"error":"Invalid instance-id.","status":404}
│ 
│   with vultr_reverse_ipv6.ipv6_ptr_entry,
│   on main.tf line 45, in resource "vultr_reverse_ipv6" "ipv6_ptr_entry":
│   45: resource "vultr_reverse_ipv6" "ipv6_ptr_entry" {
│ 
╵
ERRO[0402] Hit multiple errors:
mmahut commented 1 year ago

Having the same problem.

optik-aper commented 1 year ago

@mmahut @grant-veepshosting Thanks for the report. This looks to be an issue in the API which I'll investigate. It's possible the reverse DNS isn't supported on BM instances but I need to confirm that.

mmahut commented 1 year ago

@optik-aper it is working fine when setting it using the Vultr dashboard.