[Pkg-opennebula-devel] Bug#663072: opennebula: occi-server.rb can not find VirtualNetworkOCCI

Martin Steigerwald ms at teamix.de
Thu Mar 8 10:51:33 UTC 2012

Package: opennebula
Version: 3.2.1-1
Severity: normal

Dear Maintainer,

I am reporting this on my workstation. The opennebula server runs pure Sid.

after adding execute permissions to occi-server.rb in order to fix or
workaround debian bug 

#663065 opennebula: missing execute permissions for

I get:

oneadmin at opennebula:~$ occi-server start
Error executing occi-server.
Check /var/log/one/occi-server.log for more information
oneadmin at opennebula:~$ less /var/log/one/occi-server.log
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- VirtualNetworkOCCI (LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/one/ruby/cloud/occi/OCCIServer.rb:26
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/one/ruby/cloud/occi/occi-server.rb:56

>From there:

 23 # OCCI libs
 24 require 'VirtualMachineOCCI'
 25 require 'VirtualMachinePoolOCCI'
 26 require 'VirtualNetworkOCCI'
 27 require 'VirtualNetworkPoolOCCI'
 28 require 'ImageOCCI'
 29 require 'ImagePoolOCCI'
 30 require 'UserOCCI'
 31 require 'UserPoolOCCI'

I do not see any hints to a suitable package in the suggests from
opennebula package. Also apt-cache search does not yield a suitable

But actually its there:

oneadmin at opennebula:~$ locate VirtualNetworkOCCI

Locating VirtualMachineOCCI also included from occi-server.rb gives:

oneadmin at opennebula:~$ locate VirtualMachineOCCI

Moving the files around fixes the issue for me:

opennebula:~# cp -p /usr/lib/one/ruby/occi/* /usr/lib/one/ruby/cloud/occi/

oneadmin at opennebula:~$ occi-server start
occi-server started

I do not know whether thats a proper fix or a workaround, but I think
I provided enough detail for you to decide.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable'), (110, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages opennebula depends on:
ii  libc6                             2.13-26
ii  libgcc1                           1:4.6.3-1
ii  libmysqlclient16                  5.1.58-1
ii  libsqlite3-0                      3.7.10-1
ii  libssl1.0.0                       1.0.0g-1
ii  libstdc++6                        4.6.3-1
ii  libxml2                           2.7.8.dfsg-7
ii  libxmlrpc-c++4                    <none>
ii  libxmlrpc-core-c3                 <none>
ii  opennebula-common                 3.2.1-1
ii  ruby                              4.8
ii  ruby-password [libpassword-ruby]  0.5.3-3
ii  ruby-sequel [libsequel-ruby]      3.33.0-1
ii  ruby1.8 [ruby]          
ii  rubygems                          1.8.15-1

Versions of packages opennebula recommends:
ii  libmysql-ruby                   2.8.2+gem2deb-1
ii  ruby-mysql [libmysql-ruby]      2.8.2+gem2deb-1
ii  ruby-sqlite3 [libsqlite3-ruby]  1.3.5-1

Versions of packages opennebula suggests:
ii  mysql-server                         <none>
ii  ruby-amazon-ec2 [libamazonec2-ruby]  0.9.17-2

More information about the Pkg-opennebula-devel mailing list