OpenNebula / addon-vcloud-driver

Other
0 stars 3 forks source link

cannot load such file -- ruby_vcloud_sdk/xml/wrapper_classes/envelope #1

Closed TheGuyDanish closed 7 years ago

TheGuyDanish commented 7 years ago

After installing OpenNebula according to documentation on a fresh Debian 8 machine, as well as the docs of this project, afterwards following the documentation listed in Guide.md, however any attempts at using the onevcloud app reults in this:

/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ruby_vcloud_sdk/xml/wrapper_classes/envelope (LoadError) from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /var/lib/gems/2.1.0/gems/ruby_vcloud_sdk-0.7.8/lib/ruby_vcloud_sdk/xml/wrapper_classes.rb:13:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /var/lib/gems/2.1.0/gems/ruby_vcloud_sdk-0.7.8/lib/ruby_vcloud_sdk.rb:7:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require' from /usr/lib/one/ruby/vcloud_driver.rb:36:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/bin/onevcloud:34:in `<main>'

Am I missing something here?

acolominas commented 7 years ago

Hi @TheGuyDanish ,

Make sure that file "/var/lib/gems/2.1.0/gems/ruby_vcloud_sdk-0.7.8/lib/ruby_vcloud_sdk/xml/wrapper_classes/envelope.rb" exists. If "envelope.rb" doesn't exist, we have uploaded a new version gem. Download "ruby_vcloud_sdk-0.7.9.gem" and install it.

Try this and comment how has it gone. Thanks.

acolominas commented 7 years ago

Hi! We have fixed some bugs in OpenNebula-vCloud-Driver/5.0/remotes/vmm/vcloud/vcloud_driver.rb Please, download it again and copy it to /usr/lib/one/ruby/vcloud_driver.rb Thanks.

TheGuyDanish commented 7 years ago

With the new ruby_cloud_sdk gem the onevcloud application runs just fine, my only problem now is that I'm unable to connect to vCloud. Are there any specific configurations to keep in mind? The command I'm using is (With details removed):

onevcloud hosts --vcloud --vuser --vpass --vdc

I get an:

Error getting oned configuration : [SystemConfig] User couldn't be authenticated, aborting call.

Is this a vCloud-related, or an OpenNebula-related error?

acolominas commented 7 years ago

Hi, I think this is a OpenNebula-related error. Make sure that credentials stored in /var/lib/one/.one/one_auth are correct.

TheGuyDanish commented 7 years ago

This turned out to be it. I have my vCloud setup imported into OpenNebula now and I'm able to create VMs. Thank you!