[one-users] problem with ebtables-xen OpenNebula

高建平 13810416995 at qq.com
Fri May 6 02:07:09 PDT 2011


Dear 
  
      I have some problem when I using ebtables to isolate vlans. My OpenNebula version is 1.4,and  i'm using Xen(3.0.3) and centos(5.4;nodes os). and I have done sone configuration according to Private Cloud Computing with OpenNebula 1.4 document:
      1. install ebtables and configure sudoers on every nodes. 
  oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*
      2. modify my one configure, /opt/nebula/ONE/etc/oned.conf:
  VM_HOOK = [
        name            ="ebtables-start",
        on              ="running",
        command         ="/opt/nebula/ONE/share/hooks/ebtables-xen",
        arguments       ="one-$VMID",
        remote          ="yes" ]
 VM_HOOK = [
        name            ="ebtables-flush",
        on              ="done",
        command         ="/opt/nebula/ONE/share/hooks/ebtables-flush",
        arguments       ="",
        remote          ="yes" ]
            but when VM is created the ebtables rules is empty,and the oned.log has this msg:
  Thu May  5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $? 1>&2
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR follows.
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: command not found
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: command not found
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 /opt/nebula/ONE/share/hooks/ebtables-xen:80: command not found: brctl show
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 /opt/nebula/ONE/share/hooks/ebtables-xen:33:in `get_bridges': undefined method `each' for nil:NilClass (NoMethodError)
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from /opt/nebula/ONE/share/hooks/ebtables-xen:47:in `get_interfaces'
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from /opt/nebula/ONE/share/hooks/ebtables-xen:58
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10 ebtables-start
  
 can you help me to fix this problem, thanks for your time.Best Regardsgaojp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110506/c0a56281/attachment-0002.htm>


More information about the Users mailing list