Reply

Terraform error: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Techie
Posts: 6
2865     1

Hi,

I am testing terraform for Infoblox. The grid is running NIOS 8.5.5 and I am using terraform version 2.4.1. I have terraform successfully initialized and then put in a simple resource block for the creation of a simple A record. However, terraform returns the error below when I run the command terraform apply.

 

infoblox_a_record.a_terraformtest: Creating...
infoblox_a_record.a_terraformtest: Still creating... [10s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [20s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [30s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [40s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [50s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m0s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m10s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m20s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m30s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m40s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [1m50s elapsed]
infoblox_a_record.a_terraformtest: Still creating... [2m0s elapsed]

│ Error: creation of A-record under DNS view 'Internal' failed: Post "https://172.31.165.195:443/wapi/v2.7/record:a": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

│ with infoblox_a_record.a_terraformtest,
│ on main.tf line 25, in resource "infoblox_a_record" "a_terraformtest":
│ 25: resource "infoblox_a_record" "a_terraformtest" {


Interestingly, that A record is acutally created and appears in the data base a few minutes later. However, when I run terraform show, it says "The state file is empty. No resources are represented." And if I run terraform apply again, it will return a 400 error and saying the record already exists. Anyone has any idea?

 

Thanks.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You