Ask Your Question

Neutron is sudo command hardcoded somwhare

asked 2015-01-28 22:22:41 -0600

kolobok gravatar image

Does anybody form neutron development knows where is the hardcoded sudo command ? I need to use a different command for elevated privileges.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-01-29 11:16:45 -0600

darragh-oreilly gravatar image

Maybe you can change root_helper

ubuntu@headnode220:/etc/neutron$ grep -r root_helper .            
./plugins/ml2/ml2_conf.ini:root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
./neutron.conf:root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
./neutron.conf:# root_helper = sudo
./metadata_agent.ini:root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
./dhcp_agent.ini:root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
edit flag offensive delete link more

answered 2015-01-28 22:49:22 -0600

Its in multiple functions depending on what parts of neutron are running( dhcp, ovs, lbass....)

The best place to find this info is:

Use the search bar and type sudo to see all the functions that use sudo.

edit flag offensive delete link more

answered 2015-01-29 06:37:13 -0600

kolobok gravatar image

That is exactly what i did :). The parts that are running is dhcp, ovs, and all the controller services. I just thought the is a single config function that is passing along the sting param of sudo. Thank you for promped responce

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-28 22:22:41 -0600

Seen: 156 times

Last updated: Jan 29 '15