-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
vsphere_virtual_machine.vm does not have attribute 'default_ip_address' #402
Comments
@den-is this is usually due to an error higher up the dependency chain. Can you try removing the output and planning again and see if you can plan successfully? Thanks! |
@vancluever yes of course when I'm removing it everything works fine. |
@den-is - I think I see the error in your output actually:
The resource address implies that there is only one VM (ie: no |
hmmmm can't get it... module "tftest" {
source = "./vmwareprod"
servers = 2
hostname_prefix = "tftest"
domain = "int.example.com"
template = "template-centos-7.4"
cluster = "prod"
datastore = "VM_SATA_NFS_Linux_01"
ipaddresses = ["10.55.1.99", "10.55.1.100"]
network = "int"
mask = 23
gateway = "10.55.1.1"
dns = ["10.55.1.17", "10.55.1.18"]
} module has this outputs declaration: output "ip_addresses" {
value = "${vsphere_virtual_machine.vm.*.default_ip_address}"
} external to module outputs declaration, what user sees: output "vm_IPs" {
value = "${module.tftest.ip_addresses}"
} there is |
I am running into a similar issue. I am running
and I am seeing
|
Hey @den-is and @kevinskim93, thanks for the input. I've changed this to a bug. I can't reproduce it over here with a basic configuration, unfortunately, so it might be hard to track down on this end. I am going to attempt the upgrade path to see if it's easy to re-produce that way. |
I have the same issue:
I wrote myself a terraform module that create a vSphere VM. I tested it with vSphere 6.0 and vSphere provider 1.3.2 and 1.3.3 |
I am getting same issue. |
any progress on this... this bug is compromising our automated destroy of environments |
Seeing this issue as well, anyway to make this a priority? |
Another issue that I think is related to this is that I'm not even able to run a remote-exec provisioner if the host IP is assigned by DHCP. It doesn't seem like I can actually access the default_ip_address from TF. Here is an example of my provisioner where I run into the issue...
|
@spstratis any hint about this issue? did you achieve to get the host ip in another way? |
This issue has been open 180 days with no activity. If this issue is reproducible with the latest version of the provider and with Terraform 0.12, please comment. Otherwise this issue will be closed in 30 days. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
After upgrading vCenter from 5.5 to 6.5 some optional steps stopped working.
In this case
terraform plan
is trying to get VM IP before VM is actually created.Versions
Affected Resource(s)
outputs.tf
The text was updated successfully, but these errors were encountered: