F5Networks / terraform-gcp-bigip-module

Terraform module for Deploying BIG-IP in GCP
Apache License 2.0
9 stars 11 forks source link

BIG-IP VM does not initialise due to DNS failure #34

Closed memes closed 1 year ago

memes commented 1 year ago

Alerted to this issue after multiple customers complained that they could not login to BIG-IP VMs deployed with this module. My testing showed that BIG-IP VM consistently failed to resolve cdn.f5.com while trying to download runtime-init installer. This failure has a knock on effect, since DO - which sets the admin and bigipuser passwords, for example - is never installed.

A fix is to explicitly set DNS resolution to use GCE metadata resolver; this allows the post-nic swap script to download runtime-init, which in turn installs DO, AS3, TS, and FAST extensions and configurations.

This is also likely to be the root cause of #30 which was reported previously.

memes commented 1 year ago

@Azorazhai - I will reply on our email thread too, but can you verify if the fix in my PR resolves your issue?

E.g. change your Terraform to refer to my branch like below

module "bigip" {
  source = "git::https://github.com/memes/terraform-gcp-bigip-module?ref=fix/34_resolve_dns"
  # source  = "F5Networks/bigip-module/gcp"
  # version  = "1.1.10"
  ...
}
jon-meadows commented 1 year ago

Confirmed that this fixed my issue. Thank you!

pgouband commented 1 year ago

Hi,

The merged will be done in the next release.