From: Maru Newby Date: Wed, 27 Aug 2014 15:33:29 +0000 (+0200) Subject: Fix func job hook script permission problems X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1cdeb17c04819a6fa0a39c599af818f06b66f145;p=openstack-build%2Fneutron-build.git Fix func job hook script permission problems - The hook script is the wrong place to unstack since it needs to run as the stack user with sudo privileges and those permissions are removed as part of the devstack-vm-gate.sh script. - The functional job gate hook script needs to use sudo to install the test-only rootwrap filter. Change-Id: Ib2e5ec016a5a414dd9675328650efb2b39b0e3fe Related-Bug: #1360658 --- diff --git a/neutron/tests/functional/contrib/gate_hook.sh b/neutron/tests/functional/contrib/gate_hook.sh index 5251bd939..9b04233ac 100644 --- a/neutron/tests/functional/contrib/gate_hook.sh +++ b/neutron/tests/functional/contrib/gate_hook.sh @@ -4,14 +4,9 @@ set -ex $BASE/new/devstack-gate/devstack-vm-gate.sh -# Ideally devstack would only install dependencies -# rather than starting services, but for now unstack is -# a cheap way of accomplishing the same result. -$BASE/new/devstack/unstack.sh - # Add a rootwrap filter to support test-only # configuration (e.g. a KillFilter for processes that # use the python installed in a tox env). FUNC_FILTER=$BASE/new/neutron/neutron/tests/functional/contrib/filters.template sed -e "s+\$BASE_PATH+$BASE/new/neutron/.tox/dsvm-functional+" \ - $FUNC_FILTER > /etc/neutron/rootwrap.d/functional.filters + $FUNC_FILTER | sudo tee /etc/neutron/rootwrap.d/functional.filters > /dev/null