Error : Import Template Vcenter (Opennebula 5.4)

Hello,

I got a global error:

here is HTTP error

App 1971 stdout:
[ E 2017-10-09 16:07:10.8906 1324/Te age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/lib/one/sunst
one: An error occurred while starting up the preloader.
Error ID: 8105d99b
Error details saved to: /tmp/passenger-error-sPpeHv.html
Message from application: /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:7: syntax error, unexpected ‘<’

^
/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:8: syntax error, unexpected ‘<’

^ /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:9: syntax error, unexpected '<' ^ /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:11: syntax error, unexpected '<' ^ /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:11: syntax error, unexpected tIDENTIFIER, expecting end-of-input ^ (SyntaxError) /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/lib/one/ruby/vcenter_driver.rb:57:in `' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/lib/one/sunstone/routes/vcenter.rb:28:in `' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/lib/one/sunstone/sunstone-server.rb:442:in `block in ' /usr/lib/one/sunstone/sunstone-server.rb:441:in `each' /usr/lib/one/sunstone/sunstone-server.rb:441:in `' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' config.ru:9:in `block in ' /usr/local/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval' /usr/local/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize' config.ru:1:in `new' config.ru:1:in `' /usr/local/share/gems/gems/passenger-5.1.8/src/helper-scripts/rack-preloader.rb:110:in `eval' /usr/local/share/gems/gems/passenger-5.1.8/src/helper-scripts/rack-preloader.rb:110:in `preload_app' /usr/local/share/gems/gems/passenger-5.1.8/src/helper-scripts/rack-preloader.rb:156:in `' /usr/local/share/gems/gems/passenger-5.1.8/src/helper-scripts/rack-preloader.rb:30:in `' /usr/local/share/gems/gems/passenger-5.1.8/src/helper-scripts/rack-preloader.rb:29:in `'

I use vOneCloud 3.0.2

Thanks !

Ruby is complaining about a syntax error, which doesn’t show up in our tests. Could you check that the file in your filesystem and the one in github are indeed the same one?

I get the following error with 5.4.1 and the replaced file

There was an error trying to create an image for disk in vcenter template. Reason: ManagedObjectNotFound: The object ‘vim.VirtualMachine:undefined’ has already been deleted or has not been completely created ["/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:61:in parse_response'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:90:incall’", “/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:211:in _call'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:74:inblock (2 levels) in init’”, “/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:189:in _get_property'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:35:inblock (2 levels) in init’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:78:in get_dc'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:230:inimport_vcenter_disks’”, “/usr/lib/one/sunstone/routes/vcenter.rb:338:in block in '", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in block in compile!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in[]’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in block (3 levels) in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:inroute_eval’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in block (2 levels) in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:inblock in process_route’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in catch'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:inprocess_route’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in block in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:ineach’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:inblock in dispatch!’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in block in invoke'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:incatch’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in invoke'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:indispatch!’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in block in call!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:inblock in invoke’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in catch'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:ininvoke’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in call!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/commonlogger.rb:33:in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:219:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/deflater.rb:35:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:incontext’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/nulllogger.rb:9:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/head.rb:13:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:inblock in call’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in synchronize'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:incall’”, “/usr/local/share/gems/gems/thin-1.7.0/lib/thin/connection.rb:86:in block in pre_process'", "/usr/local/share/gems/gems/thin-1.7.0/lib/thin/connection.rb:84:incatch’”, “/usr/local/share/gems/gems/thin-1.7.0/lib/thin/connection.rb:84:in pre_process'", "/usr/local/share/gems/gems/thin-1.7.0/lib/thin/connection.rb:50:inblock in process’”, “/usr/local/share/gems/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:1076:in call'", "/usr/local/share/gems/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:1076:inblock in spawn_threadpool’”]

I do the test. I got the same error :
There was an error trying to create an image for disk in vcenter template. Reason: undefined method _ref' for nil:NilClass ["/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:247:inblock in import_vcenter_disks’", “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:246:in each'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:246:inimport_vcenter_disks’”, “/usr/lib/one/sunstone/routes/vcenter.rb:338:in block in '", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in block in compile!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in[]’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in block (3 levels) in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:inroute_eval’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in block (2 levels) in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:inblock in process_route’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in catch'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:inprocess_route’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in block in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:ineach’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in route!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:inblock in dispatch!’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in block in invoke'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:incatch’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in invoke'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:indispatch!’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in block in call!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:inblock in invoke’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in catch'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:ininvoke’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in call!'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/commonlogger.rb:33:in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:219:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/deflater.rb:35:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:incontext’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in call'", "/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:incall’”, “/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/nulllogger.rb:9:incall’”, “/usr/local/share/gems/gems/rack-1.6.4/lib/rack/head.rb:13:in call'", "/usr/local/share/gems/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:incall’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in block in call'", "/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:insynchronize’”, “/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in call'", "/usr/local/share/gems/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:inprocess_request’”, “/usr/local/share/gems/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in accept_and_process_next_request'", "/usr/local/share/gems/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:inmain_loop’”, “/usr/local/share/gems/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in block (3 levels) in start_threads'", "/usr/local/share/gems/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/utils.rb:113:inblock in create_thread_and_abort_on_exception’”]

There are two different issues here.

Kevin, I believe the problem is that one of the disks of the VM (or one of the CDs) does not have a datastore as backend. Can you send us the .vmx file of the VM Template?

Brian, I think your issue is related to Sunstone. Can you please install 5.4.2 and let us know if the problem persists?

There was an error trying to create an image for disk in vcenter template. Reason: ManagedObjectNotFound: The object ‘vim.VirtualMachine:undefined’ has already been deleted or has not been completely created [“/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:61:in parse_response'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:90:in call’”, “/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:211:in _call'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:74:in block (2 levels) in init’”, “/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:189:in _get_property'", "/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/basic_types.rb:35:in block (2 levels) in init’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:78:in get_dc'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:230:in import_vcenter_disks’”, “/usr/lib/one/sunstone/routes/vcenter.rb:338:in block in '", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1611:in call’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1611:in block in compile!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:975:in block (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:in block (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:in catch’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1013:in process_route'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:973:in block in route!'”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:972:in each'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:972:in route!'”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1085:in block in dispatch!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in block in invoke’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in catch'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in invoke’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1082:in dispatch!'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:907:in block in call!'”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in block in invoke'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in catch’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1067:in invoke'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:907:in call!'”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:895:in call'", "/usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:33:in call’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:219:in call'", "/usr/lib/ruby/vendor_ruby/rack/deflater.rb:35:in call’”, “/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:225:in context'", "/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:220:in call’”, “/usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:18:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:in call’”, “/usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:18:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:in call’”, “/usr/lib/ruby/vendor_ruby/rack/protection/base.rb:49:in call'", "/usr/lib/ruby/vendor_ruby/rack/protection/frame_options.rb:31:in call’”, “/usr/lib/ruby/vendor_ruby/rack/nulllogger.rb:9:in call'", "/usr/lib/ruby/vendor_ruby/rack/head.rb:13:in call’”, “/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:22:in call'", "/usr/lib/ruby/vendor_ruby/sinatra/show_exceptions.rb:25:in call’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:182:in call'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:2013:in call’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1487:in block in call'", "/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1787:in synchronize’”, “/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1487:in call'", "/usr/lib/ruby/vendor_ruby/thin/connection.rb:86:in block in pre_process’”, “/usr/lib/ruby/vendor_ruby/thin/connection.rb:84:in catch'", "/usr/lib/ruby/vendor_ruby/thin/connection.rb:84:in pre_process’”, “/usr/lib/ruby/vendor_ruby/eventmachine.rb:1054:in call'", "/usr/lib/ruby/vendor_ruby/eventmachine.rb:1054:in block in spawn_threadpool’”]

Hi Tino ,

Thanks for your reply .
Here is the vmtx . Ubuntu 1604 Context.vmtx (4.1 KB)

If you see something wrong , keep me informed.

Thanks !

Hi Kevin,

Just a guess, but I’m seeing:

ide1:0.fileName = “emptyBackingString”

Does the CDROM have an valid ISO? or is it an empty drive?

Tino,

should I be able to do a yum install openebula and all the various packages? It wasnt seeing anything newer than 5.4.1 for me.

Hi Tino,

well done !

I change a settings on the Cdrom.

Rubby error disappear.

I got another error

Let me check why, if i do not find this issue, i will come back :wink:

Thanks for your help !

when I try to upgrade after doing a yum makecache i get the following

Package opennebula-server-5.4.1-1.x86_64 already installed and latest version
Package opennebula-sunstone-5.4.1-1.x86_64 already installed and latest version
Package opennebula-ruby-5.4.1-1.x86_64 already installed and latest version
Package opennebula-gate-5.4.1-1.x86_64 already installed and latest version
Package opennebula-flow-5.4.1-1.x86_64 already installed and latest version

Brian, 5.4.2 is a hotfix release:

 http://docs.opennebula.org/5.4/intro_release_notes/release_notes_hotfix/what_is_hotfix.html

Kevin, we cannot reproduce this problem. What happens if you import it through the CLI “onevcenter templates”?