Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Terraform apply returns empty ip address #27

Closed
diogoferreirasky opened this issue Aug 16, 2019 · 2 comments
Closed

Terraform apply returns empty ip address #27

diogoferreirasky opened this issue Aug 16, 2019 · 2 comments
Assignees

Comments

@diogoferreirasky
Copy link

vRA 7.x version
7.6.0
Terraform version
0.12.6
terraform-provider-vra7 plugin version
0.4

Describe the bug
Cannot output the IP Address. IP Address is still empty after deploying the VM.

To Reproduce
Steps to reproduce the behavior:

  1. Terraform config file
resource "vra7_deployment" "vm" {
count = 1
catalog_item_name = "${var.catalog_name}"
catalog_item_id = "${var.catalog_id}"
description  = "${var.description}"
deployment_configuration = {
  _leaseDays = 6
}
resource_configuration = {
  "Machine.description" = "${var.description}"
  "Machine.cpu" = 1
  "Machine.memory" = 1024
.... (neccessary network configuration and others...) ......
  "Machine.ip_address" = ""
  "Machine.name"       = ""
  }
} 
  1. Terraform command
    terraform apply

  2. Error
    If you output the ip address, you will be able to see that no ip address is returned.
    IP Address is still empty
    "Machine.ip_address" = ""

Expected behavior
IP Address variable should have a value after deploying the VM.
"Machine.ip_address" = "10.0.0.1"

Logs
There is no reference to ip address in the logs.

Desktop:

  • OS: Windows/Red Hat.

Additional context
Machine.name appears with the correct hostname.

@hobovirtual
Copy link

Looks like a duplicate of issue #16?

@Prativa20 Prativa20 self-assigned this Apr 5, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 7, 2020
Prativa20 referenced this issue Apr 7, 2020
Prativa20 referenced this issue Apr 8, 2020
markpeek referenced this issue Apr 8, 2020
@Prativa20
Copy link
Contributor

Duplicate of #16 Closing this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants