Error when importing template from vcenter 6.5 to opennebula 5.4.1

Hello
when i try import template from vcenter 6.5 ihave this error:
There was an error trying to create an image for disk in vcenter template. Reason: Could not find the parent Datacenter. Trace: [VirtualMachine(“undefined”)] ["/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:91:in get_dc'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:242:inimport_vcenter_disks’", “/usr/lib/one/sunstone/routes/vcenter.rb:338:in block in '", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1611:incall’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1611:in block in compile!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:975:inblock (3 levels) in route!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:994:in route_eval'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:975:inblock (2 levels) in route!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1015:in block in process_route'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1013:incatch’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1013:in process_route'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:973:inblock in route!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:972:in each'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:972:inroute!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1085:in block in dispatch!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:inblock in invoke’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in catch'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:ininvoke’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1082:in dispatch!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:907:inblock in call!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in block in invoke'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:incatch’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in invoke'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:907:incall!’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:895:in call'", "/usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:33:incall’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:219:in call'", "/usr/lib/ruby/vendor_ruby/rack/deflater.rb:35:incall’”, “/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:225:in context'", "/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:220:incall’”, “/usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:18:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:incall’”, “/usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:18:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:incall’”, “/usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/frame_options.rb:31:incall’”, “/usr/lib/ruby/vendor_ruby/rack/nulllogger.rb:9:in call'", "/usr/lib/ruby/vendor_ruby/rack/head.rb:13:incall’”, “/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:22:in call'", "/usr/lib/ruby/vendor_ruby/sinatra/show_exceptions.rb:25:incall’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:182:in call'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:2013:incall’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1487:in block in call'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1787:insynchronize’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1487:in call'", "/usr/lib/ruby/vendor_ruby/thin/connection.rb:86:inblock in pre_process’”, “/usr/lib/ruby/vendor_ruby/thin/connection.rb:84:in catch'", "/usr/lib/ruby/vendor_ruby/thin/connection.rb:84:inpre_process’”, “/usr/lib/ruby/vendor_ruby/eventmachine.rb:1054:in call'", "/usr/lib/ruby/vendor_ruby/eventmachine.rb:1054:inblock in spawn_threadpool’”]

Also, i have tried do this from cli , and i also have seen error , but like this:
The existing disks and networks in the template are being imported, please be patient…
There was an error trying to import a vcenter template: no implicit conversion of Array into String/
["/usr/lib/one/ruby/vcenter_driver/importer.rb:437:in block (2 levels) in import_templates'", "/usr/lib/one/ruby/vcenter_driver/importer.rb:298:ineach’", “/usr/lib/one/ruby/vcenter_driver/importer.rb:298:in block in import_templates'", "/usr/lib/one/ruby/vcenter_driver/importer.rb:286:ineach’”, “/usr/lib/one/ruby/vcenter_driver/importer.rb:286:in import_templates'", "/usr/bin/onevcenter:128:inblock (2 levels) in '”, “/usr/lib/one/ruby/cli/command_parser.rb:449:in run'", "/usr/lib/one/ruby/cli/command_parser.rb:76:ininitialize’”, “/usr/bin/onevcenter:57:in new'", "/usr/bin/onevcenter:57:in'”]

have any ideas ?

there’ve been multiple bugfixes related to this in newer releases, please build the one-5.4 branch from github and try again.

Thanks a lot!