<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'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 class="Apple-interchange-newline"><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 class="im"><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 class="im">
<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 class="HOEnZb"><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">Users@lists.opennebula.org</a><br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></blockquote></div><br></div></body></html>