)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"f848432623f04039ae9fafb12a0c48d2241dad5d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Tweak configure_for_func_testing to work on OpenSUSE"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Ensure OpenSUSE is supported as a platform when installing"},{"line_number":10,"context_line":"packages. Signal also that the configuration is completed"},{"line_number":11,"context_line":"successfully. That\u0027s friendly when the script is invoked"},{"line_number":12,"context_line":"manually."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ff5d4b2f_221c2d69","line":9,"updated":"2017-09-19 19:42:35.000000000","message":"NIT: openSUSE","commit_id":"e40ba77269a6b224a9e6e3f6378850c4e0dd004e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8ca127401895a52658fa3d34f865e5f4c8f9f32e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Tweak configure_for_func_testing to work on OpenSUSE"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Ensure OpenSUSE is supported as a platform when installing"},{"line_number":10,"context_line":"packages. Signal also that the configuration is completed"},{"line_number":11,"context_line":"successfully. That\u0027s friendly when the script is invoked"},{"line_number":12,"context_line":"manually."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ff5d4b2f_c2a551b7","line":9,"in_reply_to":"ff5d4b2f_221c2d69","updated":"2017-09-19 19:52:56.000000000","message":"dARN!","commit_id":"e40ba77269a6b224a9e6e3f6378850c4e0dd004e"}],"tools/configure_for_func_testing.sh":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"1d340dcdc87b9d7617e9457a748f06bf76486de5","unresolved":false,"context_lines":[{"line_number":294,"context_line":"    sudo modprobe ip_conntrack_proto_sctp"},{"line_number":295,"context_line":"fi"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"echo \"Phew, we\u0027re done!\""}],"source_content_type":"text/x-sh","patch_set":2,"id":"7f515b1d_b3baa6db","line":297,"updated":"2017-09-22 18:55:21.000000000","message":"nice","commit_id":"e40ba77269a6b224a9e6e3f6378850c4e0dd004e"}],"tools/generate_dhclient_script_for_fullstack.sh":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"000b190ef21cb4326bfd6e6c9005a9c9df16055e","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"VENV_DIR\u003d$1"},{"line_number":16,"context_line":"DHCLIENT_SCRIPT_NAME\u003ddhclient-script"},{"line_number":17,"context_line":"DHCLIENT_PATH\u003d$(sudo which $DHCLIENT_SCRIPT_NAME)"},{"line_number":18,"context_line":"FULLSTACK_DHCLIENT_SCRIPT\u003d$VENV_DIR/bin/fullstack-dhclient-script"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"if [ -n \"$DHCLIENT_PATH\" ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ff5d4b2f_72343a4b","line":17,"updated":"2017-09-19 17:57:17.000000000","message":"and what if current user is not allowed to call sudo with the command? I don\u0027t think we allow it in gate, or in tools/configure_for_functional_testing.sh (instead, we configure sudo for rootwrap execution, and then configure rootwrap filters).\n\nI suspect an easier way would be just to adjust PATH before calling which to make sure it includes your desired path (/usr/sbin?) despite which user is used.","commit_id":"53a45b22e55e4dd8bf2f72203174768be1aea53e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"86fcb270a7758a7d0249d3348174eef14334ac5b","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"VENV_DIR\u003d$1"},{"line_number":16,"context_line":"DHCLIENT_SCRIPT_NAME\u003ddhclient-script"},{"line_number":17,"context_line":"DHCLIENT_PATH\u003d$(sudo which $DHCLIENT_SCRIPT_NAME)"},{"line_number":18,"context_line":"FULLSTACK_DHCLIENT_SCRIPT\u003d$VENV_DIR/bin/fullstack-dhclient-script"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"if [ -n \"$DHCLIENT_PATH\" ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ff5d4b2f_2d3e6329","line":17,"in_reply_to":"ff5d4b2f_0d66ffee","updated":"2017-09-19 18:42:39.000000000","message":"Yes, but not in scripts called from inside tox target. At that point, we don\u0027t have sudo access anymore and can only call through rootwrap.","commit_id":"53a45b22e55e4dd8bf2f72203174768be1aea53e"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d9c6507e188ded63dce1fbbbb3ab99d1134a56d8","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"VENV_DIR\u003d$1"},{"line_number":16,"context_line":"DHCLIENT_SCRIPT_NAME\u003ddhclient-script"},{"line_number":17,"context_line":"DHCLIENT_PATH\u003d$(sudo which $DHCLIENT_SCRIPT_NAME)"},{"line_number":18,"context_line":"FULLSTACK_DHCLIENT_SCRIPT\u003d$VENV_DIR/bin/fullstack-dhclient-script"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"if [ -n \"$DHCLIENT_PATH\" ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ff5d4b2f_0d66ffee","line":17,"in_reply_to":"ff5d4b2f_4d5bd72d","updated":"2017-09-19 18:20:15.000000000","message":"Yes I do see sudo used in other places as well, for adding iptable_rules etc.,","commit_id":"53a45b22e55e4dd8bf2f72203174768be1aea53e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"9930946ccfd297e15856d74263d21114154fc08e","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"VENV_DIR\u003d$1"},{"line_number":16,"context_line":"DHCLIENT_SCRIPT_NAME\u003ddhclient-script"},{"line_number":17,"context_line":"DHCLIENT_PATH\u003d$(sudo which $DHCLIENT_SCRIPT_NAME)"},{"line_number":18,"context_line":"FULLSTACK_DHCLIENT_SCRIPT\u003d$VENV_DIR/bin/fullstack-dhclient-script"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"if [ -n \"$DHCLIENT_PATH\" ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ff5d4b2f_4d5bd72d","line":17,"in_reply_to":"ff5d4b2f_72343a4b","updated":"2017-09-19 18:18:19.000000000","message":"There\u0027s use of sudo all over the place here:\n\nhttps://github.com/openstack/neutron/blob/master/tools/configure_for_func_testing.sh\n\nWhat am I missing?","commit_id":"53a45b22e55e4dd8bf2f72203174768be1aea53e"}]}
