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
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to