Closed hashibot closed 6 years ago
Hey @JamesTGrant, just FYI we have a new PR coming in soon which should address these issues.
After that is in I will probably close this issue on advice that you try out the new version of the resource, or have you confirm if building from master fixes things before closing (if it's possible for you to do so).
Stay tune on #244 which should be in in the next week or two (thanksgiving schedules pending).
Thanks!
using terraform 0.11 with the new vSphere provider 0.4.2 I can confirm this issue is fixed. Also - the new provider is sooo much better and more reliable - not had a single crash in the past few days
Looks like we forgot to close this issue when #244 was completed - closing it now.
This issue was originally opened by @JamesTGrant as hashicorp/terraform#16421. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
0.10.7
Terraform Configuration Files
variables.tf
variable "vsphere_vcenter" {} variable "vsphere_user" {} variable "vsphere_password" {} variable "ssh_root_password" {}
variable "vsphere_datacenter" {}
variable "datastore" { description = "datastore is really a property of resource pool so this is a map" type = "map" }
variable "vm_per_server" {} variable "template" {}
terraform.tfvars
access critera for VMWare vCenter
vsphere_vcenter = "" vsphere_user = "" vsphere_password = "" ssh_root_password = ""
Data center and resource pool pair used to find resource on which to create VM
vsphere_datacenter = "
resource pool determines required datastore
datastore={ "All of dot1" = "Node1_HDD1" "All of dot2" = "Node2_HDD1" "All of dot3" = "Node3_HDD1" "All of dot4" = "Node4_HDD1" "All of dot5" = "Node5_HDD1" }
number of VMs per server
vm_per_server = "4"
which template to use including path
template = ""
build.tf
Configure the VMware vSphere Provider
provider "vsphere" { vsphere_server = "${var.vsphere_vcenter}" user = "${var.vsphere_user}" password = "${var.vsphere_password}" allow_unverified_ssl = true }
First server nodes
resource "vsphere_virtual_machine" "Nodes" { count = 17 datacenter = "${var.vsphere_datacenter}" resource_pool = "All of dot${floor(count.index / var.vm_per_server) +1}" #will put the first n VMs on 1st server, next n on second server, etc. name = "Amazeballs_CentOS_7_3_192_16833${count.index + 7}" hostname = "vm${count.index + 1}" vcpu = "24" memory = 12288 domain = ""
}
Debug Output
Should all be in crash log
Crash Output
crash.log
Expected Behavior
Should have reported none to add, change or delete
Actual Behavior
crash error message
Steps to Reproduce