[one-users] Creating new VM fails due to Ruby error while retrieving network interfaces

Bruno Parreira bsendas at gmail.com
Tue Nov 13 08:00:51 PST 2012


I've tried to run the command and even without sudo it does not return any errors.

regarding the oned daemon:
oneadmin  1478  0.0  0.3 1171944 6988 ?        Sl   Nov12   0:06 /usr/bin/oned -f

Bruno


A 2012/11/13, às 15:34, Tharsan Bhuvanendran escreveu:

> Have you tried running the command as user 'oneadmin'? If you do, you should not get a password prompt, despite the sudo command.
> Also, are you sure that the 'oneadmin' user is running the 'oned' daemon process?
> 
> Tharsan
> 
> 
> On Mon, Nov 12, 2012 at 4:41 PM, Bruno Parreira <bsendas at gmail.com> wrote:
> Initially I had this configuration:
> 
> oneadmin ALL= (ALL) NOPASSWD : ALL
> 
> after I read the mails I've changed it to:
> 
> User_Alias CLOUDADMINS = oneadmin
> Defaults!CLOUDCOMM        !requiretty
> CLOUDADMINS   ALL = (ALL)  NOPASSWD: CLOUDCOMM
> 
> but the result is the same
> 
> A 2012/11/12, às 21:29, Tharsan Bhuvanendran escreveu:
> 
>> The problem is that a sudo password prompt is appearing, but open nebula can't respond.
>> Try adding a NOPASSWD clause to your sudoers file.
>> 
>> Tharsan
>> 
>> On Nov 12, 2012 3:54 PM, "Bruno Parreira" <bsendas at gmail.com> wrote:
>> Hi,
>> 
>> I'm having the same problem and I've tried the proposed solution, this is the log:
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: no tty present and no askpass program specified
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Sorry, try again.
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 sudo: 3 incorrect password attempts
>> 
>> 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)
>> 
>> 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'
>> 
>> 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'
>> 
>> 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'
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 from /var/tmp/one/vnm/802.1Q/pre:24
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 ExitCode: 1
>> 
>> Mon Nov 12 22:25:02 2012 [VMM][D]: Message received: LOG I 22 Failed to execute network driver operation: pre.
>> 
>> cheers,
>> Bruno
>> 
>> A 2012/11/12, às 18:44, Tharsan Bhuvanendran escreveu:
>> 
>>> Jaime,
>>> 
>>> 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!
>>> 
>>> Tharsan
>>> 
>>> 
>>> On Mon, Nov 12, 2012 at 12:17 PM, Jaime Melis <jmelis at opennebula.org> wrote:
>>> Hi Tharsan
>>> 
>>> I think the problem is:
>>> Mon Nov 12 16:14:01 2012 [VMM][I]: sudo: sorry, you must have a tty to run sudo
>>> 
>>> Can you try and remove the requiretty directive from /etc/sudoers?
>>> 
>>> cheers,
>>> Jaime
>>> 
>>> 
>>> On Mon, Nov 12, 2012 at 6:03 PM, Tharsan Bhuvanendran <tbhuvanendran at totsy.com> wrote:
>>> Mon Nov 12 16:14:01 2012 [VMM][I]: sudo: sorry, you must have a tty to run sudo
>>> 
>>> 
>>> 
>>> -- 
>>> Jaime Melis
>>> Project Engineer
>>> OpenNebula - The Open Source Toolkit for Cloud Computing
>>> www.OpenNebula.org | jmelis at opennebula.org
>>> 
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121113/6436f62f/attachment-0001.htm>


More information about the Users mailing list