Closed cosmindev closed 6 years ago
For the first error with the cert creation the root cause in the log is:
go-oracle-terraform: Encountered HTTP (504) Error: <html>
<head><title>504 Gateway Time-out</title></head>
It then looks like the retry is not sending the original request payload:
go-oracle-terraform: 1/3 retries left
* opc_lbaas_certificate.pod-manager-lbaas-ssl-cert: Error creating Load Balancer Server Pool: Post https://lbaas-e68d31cffd5648c388c23f3eeceb174e.balancer.c9dev1.oc9qadev.com/certs: http: ContentLength=4852 with Body length 0
Also the error text is incorrect - should be: Error creating Load Balancer Certificate: ...
For the issue with the Diff, it looks like the server
name passed into the server_pool config as:
servers = ["${module.pod_manager.dns}:8080"]
evaluates to fa-pod-manager-0-test-cotud-podmanager.fa.ocic.cloud:8080
during the plan
, but on apply
it evaluated to fa-pod-manager-0-test-cotud-podmanager:8080
servers.#: "1"
servers.3434358179: "fa-pod-manager-0-test-cotud-podmanager.fa.ocic.cloud:8080"
Hey @cosmindev. It looks like the server id you're passing in is different than the one that is being returned. Terraform is looking for fa-pod-manager-0-test-cotud-podmanager.fa.ocic.cloud:8080
but it's receiving fa-pod-manager-0-test-cotud-podmanager:8080
. Can you confirm whether the hostname for the server is fa-pod-manager-0-test-cotud-podmanager
or fa-pod-manager-0-test-cotud-podmanager.fa.ocic.cloud
Hey @mbfrahry, I confirmed you observations above - this was caused by the way I was picking, in tf, the dns names of my servers that are to be added to the server pool. This is fixed now and we can close the ticket. Thanks, Cosmin
Hi there,
Terraform Version
Affected Resource(s)
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Error
Output