[Openstack] 'sudo ovs-vsctl' hit no tty issue

Yuling_C at DELL.com Yuling_C at DELL.com
Tue Aug 20 06:18:08 UTC 2013


Hi All,

I'm developing a Quantum plugin and need to run 'sudo ovs-vsctl' command in my python code. When I run it as a script on Ubuntu, it was OK. However, if I run it as a background service(process), I hit the following error:


YuLing debug -->line=sudo: no tty present and no askpass program specified
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=Sorry, try again.
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=sudo: no tty present and no askpass program specified
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=Sorry, try again.
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=sudo: no tty present and no askpass program specified
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=Sorry, try again.
2013-08-19 23:12:29    DEBUG [quantum.plugins.dell.agent.dell_ovs_quantum_agent] YuLing debug -->line=sudo: 3 incorrect password attempts

I tried to play around with /etc/sudoers to turn off requiretty parameter. However it didn't help...any idea?

Thanks,

YuLing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130820/308a627d/attachment.html>


More information about the Openstack mailing list