Closed rushi47 closed 5 years ago
@bflad, @vancluever guys can you please look into it. It will be great help.
@rushi47 Sorry you're running into issues with customization. Please take a look here and confirm your source VM meets the guest customization requirements. If it does, can you try cloning and customizing the VM with the same parameters through the vCenter client, and then checking the logs on the cloned VM to make sure customization is working when done manually?
@bill-rich, Thanks a lot for the reply, I checked the same and manually vm gets provisioned, same in case of terraform. Terraform provisions the vm, do customization, do steps defined everything. Only it gets timeout else vm customization and launching part works perfectly reason why it mark the resource as tainted. Can I know exactly what all parameter it checks for acknowledgement, i noticed that it attempts to restart the provision vm and it fails while doing so that can also be one of the case. So it will be great if you can let me know what all the steps terraform checks for the acknowledgement.
Once the vSphere provider sends the customization spec and powers on the VM, it waits for one of three things:
customize
timeout attribute has passed since customization started.Have tried adding timeout in customization and it shows complete now. Does it mean that my provisioning was successful? Also, it seems that when am trying to output default_ip_address its outputting the blank value same even if I change it to guest_ip_addresses so its because of timeout or its the default behavior.
Since the Terraform is completing without errors, it means the customization is completing successfully. If the timer expires, or the CustomizationFailed event is received, the run will end with an error.
For the issue of the IP addresses not being populated, try removing wait_for_guest_net_timeout
(or set it to a >0 time). Populating the IP can take a few minutes after the VM is created because the IP is pulled from VMware Tools after the operating system is up and running. Without the wait_for_guest_net_timeout
option, Terraform will mark the resource as complete as soon as customization completes.
Hello Team,
So it seems that sometimes plan get completed successfully which is 1 in 100 times other time it gets timed out.
Tried everything from the previous issues, like #312 but my issue is not solved.
Tried using both as I felt its network issue :
wait_for_guest_net_routable = false wait_for_guest_net_timeout = 0
Apart from this in the logs which is inside /var/log/VMware-imc/toolsDeployPkg.log it shows:
Error code 127 for telinet, but from other observation I found that even if the plans get executed successfully error still exists in logs.
Below is the code for same, it will be great if anyone can help ASAP as its halting our automations.