Closed elsapassaro closed 3 months ago
has not been completely created
I wonder if the VM needs vmware tools installed on it so it needs to be powered on once. Or if its just taking awhile to be created and unless the state is 'poweredon', the task completes too fast if state is just 'present'
has not been completely created
I wonder if the VM needs vmware tools installed on it so it needs to be powered on once. Or if its just taking awhile to be created and unless the state is 'poweredon', the task completes too fast if state is just 'present'
I didn't have a closer look at the problem, but I tend to a timing problem here: Creating the VM hasn't been completed yet when trying to clone the VM into a template. I could test this manually tomorrow if you want me to, but I'm 100% sure you don't need VMware Tools in a VM to clone it into a template. Actually, I'm 100% sure you don't even need an OS installed. And you can't install VMware Tools on top of a non-existing OS ;-)
@mariolenz right, the VM created in this test doesn't have an OS installed (so VMware Tools is not running). Since sometimes the test was passing it indeed indicates a timing issue
SUMMARY
When running
vmware_folder_template_from_vm
integration test in Jenkins CI on real vcenter, the test is failing when trying to create the template with the following error:I tried to add a previous task that checks that the VM is created using the
community.vmware.vmware_guest_info
module:but this is not solving the issue because this task successfully retrieves the VM info but the
folder_template_from_vm
module still fails with the same error.It seems to work if we set the VM state to
poweredon
at VM creation and we power it off afterwards (link to Jenkins run)