[one-users] Creating new VM fails due to Ruby error while retrieving network interfaces
Bruno Parreira
bsendas at gmail.com
Mon Nov 12 12:54:42 PST 2012
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/20121112/107a0b1d/attachment-0002.htm>
More information about the Users
mailing list