Dear Tino,<div><br></div><div>Thank you for your reply.</div><div>I haven't this error in the log file but when I stop a VM I have this error:</div><div><br></div><div>######################################################################################################</div>
<div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 Command execution fail: '/data1/opennebula/share/hooks/ebtables-flush ""'</b></div><div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 STDERR follows.</b></div>
<div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 sudo: sorry, you must have a tty to run sudo</b></div><div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 /srv/cloud/share/hooks/ebtables-flush:37:in `get_rules': undefined method `collect' for nil:NilClass (NoMethodError)</b></div>
<div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-weight: normal; "><b>/srv/cloud/</b></span>share/hooks/ebtables-flush:35:in `each'</b></div>
<div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-weight: normal; "><b>/srv/cloud/</b></span>share/hooks/ebtables-flush:35:in `get_rules'</b></div>
<div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 from <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-weight: normal; "><b>/srv/cloud/</b></span>share/hooks/ebtables-flush:58</b></div>
<div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: LOG - 152 ExitCode: 1</b></div><div><b><br></b></div><div><b>Mon Apr 11 16:14:31 2011 [HKM][D]: Message received: EXECUTE FAILURE 152 ebtables-flush</b></div>
</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">######################################################################################################</div><div><br></div><div>Best Regards</div>
<div>Marwen <br><br><div class="gmail_quote">2011/4/11 Tino Vazquez <span dir="ltr"><<a href="mailto:tinova79@gmail.com">tinova79@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Leong, Marwen,<br>
<br>
If you are experiencing the following in the logs<br>
<div class="im"><br>
Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command<br>
<br>
</div>it may be due to a missing dependency, we can walk you on finding out which one.<br>
<br>
Otherwise, please say so and we will look at other possible causes.<br>
<br>
Regards,<br>
<br>
-Tino<br>
<font color="#888888"><br>
--<br>
Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a><br>
Virtualization Technology Engineer / Researcher<br>
OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Mon, Apr 11, 2011 at 9:13 AM, Leong Marco <<a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a>> wrote:<br>
> Hi,<br>
> I have the same problem as Marwen. With this log message.<br>
> Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf<br>
> /var/lib/one/2603e38607a144aef3bef07283d77095".<br>
> Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT<br>
> Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:<br>
> /var/lib/one/165/deployment.1<br>
> Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING<br>
> Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully<br>
> executed.<br>
> However, if I do a list to ebtables, it is empty.<br>
> [oneadmin@geek root]$ sudo ebtables --list<br>
> Bridge table: filter<br>
> Bridge chain: INPUT, entries: 0, policy: ACCEPT<br>
> Bridge chain: FORWARD, entries: 0, policy: ACCEPT<br>
> Bridge chain: OUTPUT, entries: 0, policy: ACCEPT<br>
> When I run some ebtables command like this one, it works<br>
> sudo ebtables -A FORWARD -p IPv4 -j ACCEPT<br>
> this does add the rules to the table.<br>
> What can I provide to help you to debug this problem?<br>
><br>
> Leong Marco<br>
> <a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br>
><br>
><br>
> On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:<br>
><br>
> Hi Zaina<br>
> Yes I added oneadmin in the sudoers file of the physical host where the VM<br>
> is allocated.<br>
> And when I create the VM I specify the host where the VM will be allocated.<br>
> But the problem is not resolved.<br>
> Do you think that we must add this command in sudoers file of all cluster<br>
> nodes.<br>
> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *<br>
> Best regards<br>
> Marwen<br>
><br>
>> From: Zaina AFOULKI <<a href="mailto:zaina.afoulki@ensi-bourges.fr">zaina.afoulki@ensi-bourges.fr</a>><br>
>> To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
>> Subject: Re: [one-users] Problem with ebtables OpenNebula<br>
>> Message-ID: <<a href="mailto:4D9CB10C.6080104@ensi-bourges.fr">4D9CB10C.6080104@ensi-bourges.fr</a>><br>
>> Content-Type: text/plain; charset=ISO-8859-1<br>
>><br>
>> Hi Marwen,<br>
>><br>
>> Did you make sure that oneadmin is added in the /etc/sudoers file with<br>
>> oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?<br>
>><br>
>> <a href="http://opennebula.org/documentation:archives:rel2.0:nm" target="_blank">http://opennebula.org/documentation:archives:rel2.0:nm</a><br>
>><br>
>> --<br>
>> Zaina<br>
>><br>
>><br>
>> On 04/06/2011 06:40 PM, marwen marwen wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I'm using ebtables to isolate virtual network in OpenNebula.<br>
>> > I have a problem when OpenNebula execute ebtables-kvm script.<br>
>> > In fact, the log file mention no error "Wed Apr  6 18:22:02 2011<br>
>> > [HKM][D]:<br>
>> > Message received: EXECUTE SUCCESS 146 ebtables-start".<br>
>> > But there are no rule added to the list rules of ebtables in the<br>
>> > physical<br>
>> > host where the VM is allocated.<br>
>> ><br>
>> > ###############################################<br>
>> > sudo ebtables -L<br>
>> ><br>
>> > Bridge table: filter<br>
>> ><br>
>> > Bridge chain: INPUT, entries: 0, policy: ACCEPT<br>
>> ><br>
>> > Bridge chain: FORWARD, entries: 0, policy: ACCEPT<br>
>> ><br>
>> > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT<br>
>> > ###############################################<br>
>> ><br>
>> > And when I execute manually the script on the worker node, the rules are<br>
>> > added.<br>
>> > In the oned.conf we put this configuration<br>
>> ><br>
>> > ###############################################<br>
>> > VM_HOOK = [<br>
>> >     name      = "ebtables-start",<br>
>> >     on        = "running",<br>
>> >     command   = "ebtables-kvm", # or ebtables-xen<br>
>> >     arguments = "one-$VMID",<br>
>> >     remote    = "yes" ]<br>
>> ><br>
>> > VM_HOOK = [<br>
>> >     name      = "ebtables-flush",<br>
>> >     on        = "done",<br>
>> >     command   = "ebtables-flush",<br>
>> >     arguments = "",<br>
>> >     remote    = "yes" ]<br>
>> > ###############################################<br>
>> ><br>
>> > can you help me to fix this problem<br>
>> ><br>
>> > Best Regards<br>
>> > Marwen<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
>> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>