F5Networks / terraform-gcp-bigip-module

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

Unable to login to F5 VM after deployment #30

Closed auto2mate closed 1 year ago

auto2mate commented 2 years ago

Environment

TMOS/Bigip Version: 5-bigip-16-1-2-2-0-0-28 Terraform Version: 1.2.6 Terraform bigip provider Version: 3.90.1 Cloud Platform: GCP

Summary

I have deployed the below Image successfully but I can't login with the password I have set. I tried to login via my ssh key also but no luck. It does prompt for credential using HTTPS as well for SSH though. I am using the byol image.

I have not modified or added any other files/script.

variable.tf -->

variable "instance_count" { description = "Number of Bigip instances to create( From terraform 0.13, module supports count feature to spin mutliple instances )" type = number default = 1 } variable "prefix" { description = "Prefix for resources created by this module" type = string default = "gcp" } variable "project_id" { type = string description = "The GCP project identifier where the cluster will be created." default = "###########" } variable "region" { type = string description = "The compute region which will host the BIG-IP VMs" default = "#######" } variable "zone" { type = string default = "########" description = "The compute zones which will host the BIG-IP VMs" } variable "image" { type = string default = "projects/f5-7626-networks-public/global/images/f5-bigip-16-1-2-2-0-0-28-byol-all-modules-2boot-loc-0505081937" description = "The self-link URI for a BIG-IP image to use as a base for the VM cluster.This can be an official F5 image from GCP Marketplace, or a customised image." }

variable "service_account" { description = "service account email to use with BIG-IP vms" type = string default = "#######" }

variable "f5_ssh_publickey" { description = "Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub" default = "~/.ssh/id_rsa.pub" }

variable "vm_name" { description = "Name of F5 BIGIP VM to be used, default is empty string meaning module adds with prefix + random_id" default = "testlb" }

variable "disk_type" { type = string default = "pd-ssd" description = "The GCE disk type. May be set to pd-standard, pd-balanced or pd-ssd." }

variable "f5_username" { description = "The admin username of the F5 Bigip that will be deployed" default = "test" }

variable "f5_password" { description = "The admin password of the F5 Bigip that will be deployed" default = "#######" }

main.tf -->

terraform { required_providers { google = { source = "hashicorp/google" version = "~>3.0" } } }

provider "google" { project = var.project_id region = var.region zone = var.zone }

data "google_compute_subnetwork" "mgmt"{ name = "xxxxx" } data "google_compute_subnetwork" "ext"{ name = "xxxxxxxx" } data "google_compute_subnetwork" "int"{ name = "XXXXX" }

module "bigip" { count = var.instance_count source = "F5Networks/bigip-module/gcp" prefix = var.prefix project_id = var.project_id zone = var.zone image = var.image f5_username = var.f5_username f5_password = var.f5_password vm_name = var.vm_name service_account = var.service_account mgmt_subnet_ids = [{ "subnet_id" = data.google_compute_subnetwork.mgmt.id, "public_ip" = false, "private_ip_primary" = "" }] external_subnet_ids = [{ "subnet_id" = data.google_compute_subnetwork.ext.id, "public_ip" = false, "private_ip_primary" = "", "private_ip_secondary" = "" }] internal_subnet_ids = [{ "subnet_id" = data.google_compute_subnetwork.int.id, "public_ip" = false, "private_ip_primary" = "" }] }

auto2mate commented 2 years ago

Any help on this?

auto2mate commented 1 year ago

Any help to fix the issue?

RavinderReddyF5 commented 1 year ago

i didn't run into any issue

KrithikaChidambaram commented 1 year ago

Hi, if you are still facing this issue, please reach out or open a support ticket. Thanks!

KrithikaChidambaram commented 1 year ago

Closing this now. Please reopen if needed!

jon-meadows commented 1 year ago

Anyone else having this issue? I tried deploying F5 BIGIP multiple times with the default and custom settings with no success in logging into the instances.