<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I've solved the problem, although it is in an unsafe way... I edited the sudoers like this:</div><div><br></div><div>%sudo ALL=(ALL) NOPASSWD : ALL</div><div><br></div><div>anyone knows a better solution?</div><div><br></div><div>Bruno</div><div><br><div><div>A 2012/11/13, ās 15:34, Tharsan Bhuvanendran escreveu:</div><br class="Apple-interchange-newline"><blockquote type="cite">Have you tried running the command as user 'oneadmin'? If you do, you should not get a password prompt, despite the sudo command.<div>Also, are you sure that the 'oneadmin' user is running the 'oned' daemon process?<div>
<br></div><div>Tharsan</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 4:41 PM, Bruno Parreira <span dir="ltr"><<a href="mailto:bsendas@gmail.com" target="_blank">bsendas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Initially I had this configuration:<div><br></div><div>oneadmin ALL= (ALL) NOPASSWD : ALL</div>
<div><br></div><div>after I read the mails I've changed it to:</div><div><br></div><div><div>User_Alias CLOUDADMINS = oneadmin</div><div class="im"><div>Defaults!CLOUDCOMM        !requiretty</div><div>CLOUDADMINS   ALL = (ALL)  NOPASSWD: CLOUDCOMM</div>
<div><br></div></div><div>but the result is the same</div><div><br></div><div><div>A 2012/11/12, ās 21:29, Tharsan Bhuvanendran escreveu:</div><div><div class="h5"><br><blockquote type="cite"><p dir="ltr">The problem is that a sudo password prompt is appearing, but open nebula can't respond.<br>

Try adding a NOPASSWD clause to your sudoers file.</p><p dir="ltr">Tharsan</p>
<div class="gmail_quote">On Nov 12, 2012 3:54 PM, "Bruno Parreira" <<a href="mailto:bsendas@gmail.com" target="_blank">bsendas@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi,<div><br></div><div>I'm having the same problem and I've tried the proposed solution, this is the log:</div><div><br></div><div><div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: 3 incorrect password attempts</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 /var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:136:in `get_interfaces': undefined method `each' for nil:NilClass (NoMethodError)</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 from /var/tmp/one/vnm/802.1Q/HostManaged.rb:24:in `initialize'</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 from /var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:100:in `new'</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 from /var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:100:in `from_base64'</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 from /var/tmp/one/vnm/802.1Q/pre:24</div>

<div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 ExitCode: 1</div><div><br></div><div>Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Failed to execute network driver operation: pre.</div>

</div><div><br></div><div>cheers,</div><div>Bruno</div><div><br></div><div><div>A 2012/11/12, ās 18:44, Tharsan Bhuvanendran escreveu:</div><br><blockquote type="cite">Jaime,<div><br></div><div>It turns out this was the problem. The combination of the NOPASSWD clause for the oneadmin user, and omitting the 'requiretty' option was the trick. Thanks for the suggestion!</div>

<div><br>
</div><div>Tharsan<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 12:17 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra">Hi Tharsan</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think the problem is:</div>


<div><div class="gmail_extra">Mon Nov 12 16:14:01 2012 [VMM][I]: sudo: sorry, you must have a tty to run sudo</div>

<div class="gmail_extra"><br></div></div><div class="gmail_extra">Can you try and remove the requiretty directive from /etc/sudoers?</div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers,<br>Jaime<div>
<br><br><div class="gmail_quote">

On Mon, Nov 12, 2012 at 6:03 PM, Tharsan Bhuvanendran <span dir="ltr"><<a href="mailto:tbhuvanendran@totsy.com" target="_blank">tbhuvanendran@totsy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




Mon Nov 12 16:14:01 2012 [VMM][I]: sudo: sorry, you must have a tty to run sudo
</blockquote></div><br></div></div><span><font color="#888888"><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>





</font></span></blockquote></div><br>
</div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org" target="_blank">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>

</blockquote></div><br></div></div></blockquote></div>
</blockquote></div></div></div><br></div></div></blockquote></div><br>
</div></div>
</blockquote></div><br></div></body></html>