Cannot clone VM Template: undefined method `parent' for nil:NilClass

Wed Aug 9 17:21:21 2017 [Z0][VM][I]: New state is ACTIVE
Wed Aug 9 17:21:21 2017 [Z0][VM][I]: New LCM state is PROLOG
Wed Aug 9 17:21:21 2017 [Z0][VM][I]: New LCM state is BOOT
Wed Aug 9 17:21:21 2017 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/158/deployment.0
Wed Aug 9 17:21:21 2017 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vcenter/deploy ‘/var/lib/one/vms/158/deployment.0’ ‘GIDCADRS002’ 158 GIDCADRS002
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: /usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/type_loader.rb:66: warning: already initialized constant RbVmomi::VIM::Datastore
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver.rb:50: warning: previous definition of Datastore was here
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: Deploy of VM 158 on host GIDCADRS002 with /var/lib/one/vms/158/deployment.0 failed due to "Cannot clone VM Template: undefined method `parent’ for nil:NilClass"
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: ExitCode: 255
Wed Aug 9 17:21:22 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Wed Aug 9 17:21:22 2017 [Z0][VMM][E]: Error deploying virtual machine
Wed Aug 9 17:21:22 2017 [Z0][VM][I]: New LCM state is BOOT_FAILURE

I am facing issue. while deploying datacenter to datacenter in the same vCenter. i can able to deploy cluster to cluster. Please guide me to proceed further…