I was able to fix this myself by changing secure_path in the sudoers file:, eg:
Defaults:neutron !requiretty Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openstack/venv/neutron/bin"
neutron ALL = (root) NOPASSWD: /opt/openstack/venv/neutron/bin/neutron-rootwrap /etc/neutron/rootwrap.conf *
I will still surprised that exec_dirs wasnt checked though, so I'll leave the bug open even if this is more of a documentation thing.
I was able to fix this myself by changing secure_path in the sudoers file:, eg:
Defaults:neutron !requiretty path="/ usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/opt/ openstack/ venv/neutron/ bin"
Defaults secure_
neutron ALL = (root) NOPASSWD: /opt/openstack/ venv/neutron/ bin/neutron- rootwrap /etc/neutron/ rootwrap. conf *
I will still surprised that exec_dirs wasnt checked though, so I'll leave the bug open even if this is more of a documentation thing.