[Pkg-opennebula-devel] Bug#657323: opennebula: ebtables hook won't work

Olivier Berger olivier.berger at it-sudparis.eu
Wed Jan 25 16:37:55 UTC 2012


Package: opennebula
Version: 2.0.1-6~bpo60+1
Severity: normal

Hi.

I've tried and proceed with the addition of ebtables hooks following the docs in http://opennebula.org/documentation:archives:rel2.0:nm, and so have added :
VM_HOOK = [
    name      = "ebtables-start",
    on        = "running",
    command   = "/usr/share/one/hooks/ebtables-kvm", # or ebtables-xen
    arguments = "one-$VMID",
    remote    = "yes" ]

VM_HOOK = [
    name      = "ebtables-flush",
    on        = "done",
    command   = "/usr/share/one/hooks/ebtables-flush",
    arguments = "",
    remote    = "yes" ]
in oned.conf

But upon VM creation, I get :
Wed Jan 25 17:29:48 2012 [LCM][I]: New VM state is BOOT
Wed Jan 25 17:29:48 2012 [VMM][I]: Generating deployment file: /var/lib/one/8/deployment.0
Wed Jan 25 17:29:49 2012 [LCM][I]: New VM state is RUNNING
Wed Jan 25 17:29:49 2012 [HKM][I]: Command execution fail: '/usr/share/one/hooks/ebtables-kvm one-8'
Wed Jan 25 17:29:49 2012 [HKM][I]: STDERR follows.
Wed Jan 25 17:29:49 2012 [HKM][I]: /usr/lib/ruby/1.8/rexml/encoding.rb:48: command not found: brctl show
Wed Jan 25 17:29:49 2012 [HKM][I]: /usr/share/one/hooks/ebtables-kvm:35:in `get_bridges': undefined method `each' for nil:NilClass (NoMethodError)
Wed Jan 25 17:29:49 2012 [HKM][I]: from /usr/share/one/hooks/ebtables-kvm:49:in `get_interfaces'
Wed Jan 25 17:29:49 2012 [HKM][I]: from /usr/share/one/hooks/ebtables-kvm:61
Wed Jan 25 17:29:49 2012 [HKM][I]: ExitCode: 1
Wed Jan 25 17:29:49 2012 [HKM][E]: Error executing Hook: ebtables-start. 

There's something wrong with the hook script execution, obviously.

Thanks in advance for your help.

Best regards,

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (300, 'stable')
Architecture: i386 (i686)

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

Versions of packages opennebula depends on:
ii  libc6                             2.13-24
ii  libgcc1                           1:4.6.2-11
ii  libmysqlclient16                  5.1.58-1
ii  libpassword-ruby                  0.5.3-3
ii  libsequel-ruby                    3.31.0-1
ii  libsqlite3-0                      3.7.9-2
ii  libssl1.0.0                       1.0.0g-1
ii  libstdc++6                        4.6.2-11
ii  libxml2                           2.7.8.dfsg-5.1
ii  libxmlrpc-c++4                    1.16.33-3.1
ii  libxmlrpc-core-c3                 1.16.33-3.1
ii  opennebula-common                 2.2.1-1
ii  ruby                              4.8
ii  ruby-password [libpassword-ruby]  0.5.3-3
ii  ruby-sequel [libsequel-ruby]      3.31.0-1
ii  ruby1.8 [ruby]                    1.8.7.352-2
ii  rubygems                          1.8.10-1

Versions of packages opennebula recommends:
ii  libmysql-ruby                   2.8.2+gem2deb-1
ii  libsqlite3-ruby                 1.3.5-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:
pn  libamazonec2-ruby  <none>
pn  mysql-server       <none>

-- debconf-show failed





More information about the Pkg-opennebula-devel mailing list