[one-users] problem with ebtables-xen OpenNebula

Jaime Melis jmelis at opennebula.org
Fri May 6 03:15:56 PDT 2011


Hi,

change lines 54 and 55 of ebtables-xen script to reflect the full path of
the xm executable (typically /usr/sbin/xm).

I suggest you migrate to OpenNebula 2.2

cheers,
Jaime


2011/5/6 高建平 <13810416995 at qq.com>

>  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 Regards
>
> gaojp
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110506/32433c24/attachment-0003.htm>


More information about the Users mailing list