<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Tino,</div><div><br></div>I have installed rubygems. However, it is able to run in root, not oneadmin.<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><b>Leong Marco</b></div><div><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Apr 12, 2011, at 5:22 PM, Tino Vazquez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>You need to install the rubygems dependency, the process varies<br>depending on the linux distro used.<br><br>Regards,<br><br>-Tino<br><br>--<br>Constantino Vázquez Blanco, MSc<br>OpenNebula Major Contributor<br><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> | @tinova79<br><br><br><br>On Tue, Apr 12, 2011 at 2:17 AM, Leong Marco <<a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a>> wrote:<br><blockquote type="cite">[oneadmin@geek ~]$ ruby -dw /usr/lib/one/mads/one_auth_mad.rb<br></blockquote><blockquote type="cite">Exception `LoadError' at /usr/lib/one/mads/one_auth_mad.rb:33 - no such file<br></blockquote><blockquote type="cite">to load -- rubygems<br></blockquote><blockquote type="cite">/usr/lib/one/mads/one_auth_mad.rb:33:in `require': no such file to load --<br></blockquote><blockquote type="cite">rubygems (LoadError)<br></blockquote><blockquote type="cite">from /usr/lib/one/mads/one_auth_mad.rb:33<br></blockquote><blockquote type="cite">here is the output.<br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 11, 2011, at 11:06 PM, Tino Vazquez wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ok, please try<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">$ ruby -dw $ONE_LOCATION/lib/mads/one_auth_mad.rb<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and send the output<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Tino<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Constantino Vázquez Blanco, MSc<br></blockquote><blockquote type="cite">OpenNebula Major Contributor<br></blockquote><blockquote type="cite"><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> | @tinova79<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mon, Apr 11, 2011 at 4:59 PM, Leong Marco <<a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a>><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It return the shell.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 11, 2011, at 10:54 PM, Tino Vazquez wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What happens, does it return the shell, or does it wait for input?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Tino<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Constantino Vázquez Blanco, MSc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OpenNebula Major Contributor<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> | @tinova79<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mon, Apr 11, 2011 at 4:49 PM, Leong Marco <<a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Tino,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thank you for your reply.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This command doesn't produce any output.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 11, 2011, at 10:20 PM, Tino Vazquez wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dear Leong,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please try the following as oneadmin, and send the output:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"># $ONE_LOCATION/lib/mads/one_auth_mad<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">.Tino<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Constantino Vázquez Blanco, MSc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OpenNebula Major Contributor<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> | @tinova79<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mon, Apr 11, 2011 at 3:49 PM, Leong Marco <<a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dear Tino,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Yes, I did have this error in the log.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 15:13:09 2011 [MAD][E]: MAD did not answer INIT command<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What is the problem happen here? Thank you for your help !<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 11, 2011, at 8:55 PM, Tino Vazquez wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dear Leong, Marwen,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If you are experiencing the following in the logs<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Fri Apr  8 11:59:05 2011 [MAD][E]: MAD did not answer INIT command<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">it may be due to a missing dependency, we can walk you on finding out which<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">one.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Otherwise, please say so and we will look at other possible causes.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Tino<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova">dsa-research.org/tinova</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Virtualization Technology Engineer / Researcher<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OpenNebula Toolkit | <a href="http://opennebula.org">opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have the same problem as Marwen. With this log message.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 14:50:26 2011 [TM][I]: tm_context.sh: Executed "rm -rf<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/var/lib/one/2603e38607a144aef3bef07283d77095".<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 14:50:26 2011 [LCM][I]: New VM state is BOOT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 14:50:26 2011 [VMM][I]: Generating deployment file:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/var/lib/one/165/deployment.1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 14:50:28 2011 [LCM][I]: New VM state is RUNNING<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mon Apr 11 14:50:28 2011 [HKM][I]: Hook ebtables-start successfully<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">executed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">However, if I do a list to ebtables, it is empty.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[oneadmin@geek root]$ sudo ebtables --list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge table: filter<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: INPUT, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: FORWARD, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: OUTPUT, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I run some ebtables command like this one, it works<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sudo ebtables -A FORWARD -p IPv4 -j ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">this does add the rules to the table.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What can I provide to help you to debug this problem?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Leong Marco<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:leong.chou.kin@usj.edu.mo">leong.chou.kin@usj.edu.mo</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 7, 2011, at 9:46 PM, marwen marwen wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Zaina<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Yes I added oneadmin in the sudoers file of the physical host where the VM<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">is allocated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And when I create the VM I specify the host where the VM will be allocated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But the problem is not resolved.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do you think that we must add this command in sudoers file of all cluster<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">nodes.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables *<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Marwen<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">From: Zaina AFOULKI <<a href="mailto:zaina.afoulki@ensi-bourges.fr">zaina.afoulki@ensi-bourges.fr</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Subject: Re: [one-users] Problem with ebtables OpenNebula<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Message-ID: <<a href="mailto:4D9CB10C.6080104@ensi-bourges.fr">4D9CB10C.6080104@ensi-bourges.fr</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Content-Type: text/plain; charset=ISO-8859-1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Marwen,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Did you make sure that oneadmin is added in the /etc/sudoers file with<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">oneadmin    ALL=(ALL) NOPASSWD: /sbin/ebtables * ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://opennebula.org/documentation:archives:rel2.0:nm">http://opennebula.org/documentation:archives:rel2.0:nm</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Zaina<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 04/06/2011 06:40 PM, marwen marwen wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm using ebtables to isolate virtual network in OpenNebula.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have a problem when OpenNebula execute ebtables-kvm script.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In fact, the log file mention no error "Wed Apr  6 18:22:02 2011<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[HKM][D]:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Message received: EXECUTE SUCCESS 146 ebtables-start".<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But there are no rule added to the list rules of ebtables in the<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">physical<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">host where the VM is allocated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">###############################################<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">sudo ebtables -L<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge table: filter<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: INPUT, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: FORWARD, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Bridge chain: OUTPUT, entries: 0, policy: ACCEPT<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">###############################################<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And when I execute manually the script on the worker node, the rules are<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">added.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In the oned.conf we put this configuration<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">###############################################<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VM_HOOK = [<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    name      = "ebtables-start",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    on        = "running",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    command   = "ebtables-kvm", # or ebtables-xen<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    arguments = "one-$VMID",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    remote    = "yes" ]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">VM_HOOK = [<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    name      = "ebtables-flush",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    on        = "done",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    command   = "ebtables-flush",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    arguments = "",<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">    remote    = "yes" ]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">###############################################<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">can you help me to fix this problem<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best Regards<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Marwen<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></div></body></html>