In Vspere environment OpenNebula 6.0.0.2 could not create VM from tamplate

Please, describe the problem here and provide additional information below (if applicable) …
We implemented open nebula on centos 7 and İmported ds,nw other stuff from vsphere env.
we attempted to creta vm from template we observed that while it was clonning from the template it was also raised error to ‘name exist’ but it’s not and then vm creation state was still in failure mode.

logs were arrised that : Mon Sep 6 11:24:10 2021 [Z0][VM][I]: New state is ACTIVE
Mon Sep 6 11:24:10 2021 [Z0][VM][I]: New LCM state is PROLOG
Mon Sep 6 11:39:35 2021 [Z0][VM][I]: New LCM state is BOOT
Mon Sep 6 11:39:35 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/7/deployment.0
Mon Sep 6 11:39:40 2021 [Z0][VMM][E]: DEPLOY
Mon Sep 6 11:39:40 2021 [Z0][VM][I]: New LCM state is BOOT_FAILURE

we could have any logs that sign that issue ,

regards.

Please change the following setting in /var/lib/one/remotes/etc/vmm/vcenter/vcenterrc and try again, let us know the contents of the log:

# Show stacktraces on every exception
:debug_information: 'False'

Hi , Yes I just did it;
But result is same,
I couldnt find the stack trace log file where teh error logs reside

Same error previously provided
Wed Sep 8 13:49:34 2021 [Z0][VM][I]: New state is ACTIVE
Wed Sep 8 13:49:34 2021 [Z0][VM][I]: New LCM state is PROLOG
Wed Sep 8 14:04:58 2021 [Z0][VM][I]: New LCM state is BOOT
Wed Sep 8 14:04:58 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/8/deployment.0
Wed Sep 8 14:05:02 2021 [Z0][VMM][E]: DEPLOY
Wed Sep 8 14:05:02 2021 [Z0][VM][I]: New LCM state is BOOT_FAILURE

can you check in oned.log? error should be logged there

Hi;

I got thoese errors;

Thu Sep 9 23:02:28 2021 [Z0][TrM][D]: Message received: TRANSFER SUCCESS 10 -

Thu Sep 9 23:02:28 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Thu Sep 9 23:02:28 2021 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Sep 9 23:02:28 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Thu Sep 9 23:02:28 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one/vms/10/vm.xml.
Thu Sep 9 23:02:28 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one/vms/10/ds.xml.

Command execution failed (exit code: 255): /var/lib/one/remotes/vmm/vcenter/deploy ‘/var/lib/one/vms/10/deployment.0’ ‘Lab-Cluster’ 10 Lab-Cluster
Thu Sep 9 23:02:32 2021 [Z0][VMM][E]: deploy: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #0.
Thu Sep 9 23:02:32 2021 [Z0][VMM][I]: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #0. [”/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:63:in parse_response'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:92:in call’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:213:in _call'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:191:in _get_property'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:37:in block (2 levels) in init’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:896:in vcenter_folder'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:635:in clone_vm’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3462:in block in new_from_clone'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in tap’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in new_from_clone'", "/var/lib/one/remotes/vmm/vcenter/deploy:88:in '”]
Thu Sep 9 23:02:32 2021 [Z0][VMM][E]: deploy: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #1.
Thu Sep 9 23:02:32 2021 [Z0][VMM][I]: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #1. [”/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:63:in parse_response'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:92:in call’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:213:in _call'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:191:in _get_property'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:37:in block (2 levels) in init’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:896:in vcenter_folder'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:635:in clone_vm’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3462:in block in new_from_clone'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in tap’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in new_from_clone'", "/var/lib/one/remotes/vmm/vcenter/deploy:88:in '”]
Thu Sep 9 23:02:32 2021 [Z0][VMM][E]: deploy: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #2.
Thu Sep 9 23:02:32 2021 [Z0][VMM][I]: Deploy of VM 10 on vCenter cluster Lab-Cluster with /var/lib/one/vms/10/deployment.0 failed due to “ManagedObjectNotFound: The object ‘vim.VirtualMachine:’ has already been deleted or has not been completely created"on attempt #2. [”/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:63:in parse_response'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/connection.rb:92:in call’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:213:in _call'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init’”, “/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:191:in _get_property'", "/usr/share/one/gems-dist/gems/rbvmomi-2.2.0/lib/rbvmomi/basic_types.rb:37:in block (2 levels) in init’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:896:in vcenter_folder'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:635:in clone_vm’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3462:in block in new_from_clone'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in tap’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:3461:in new_from_clone'", "/var/lib/one/remotes/vmm/vcenter/deploy:88:in '”]
Thu Sep 9 23:02:33 2021 [Z0][ReM][D]: Req:7968 UID:0 IP:127.0.0.1 one.hostpool.info invoked , -2, -1, -1
Thu Sep 9 23:02:33 2021 [Z0][ReM][D]: Req:7968 UID:0 one.hostpool.info result SUCCESS, “<HOST_POOL><ID…”
Thu Sep 9 23:02:33 2021 [Z0][ReM][D]: Req:9408 UID:0 IP:127.0.0.1 one.host.info invoked , 0, false
Thu Sep 9 23:02:33 2021 [Z0][ReM][D]: Req:9408 UID:0 one.host.info result SUCCESS, “0<NAM…”
Thu Sep 9 23:02:33 2021 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Thu Sep 9 23:02:33 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Thu Sep 9 23:02:33 2021 [Z0][IPM][D]: Message received: DEPLOY FAILURE 10 -

OK, then

problem was solved, the reason for throwing that exception unmounted iso on vm template.

regards