test/openstack: Enable securitygroup driver in neutron
This seems to be needed for devstack pieced together out of the current master branch (wallaby seems to work fine as is). Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I5abf22a606c84c120e42819a5450ba82d1bc52b5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8490 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
8770e80bda
commit
68b6d0ef54
@ -64,3 +64,13 @@ chown -R stack:stack /opt/stack
|
||||
su -c "./stack.sh" -s /bin/bash stack
|
||||
source openrc admin admin
|
||||
openstack volume type create SPDK --public
|
||||
|
||||
if [[ $branch == master ]]; then
|
||||
# FIXME: For some reason tempest won't work unless neutron has securitygroup enabled
|
||||
# (even when testing with security_group disabled in tempest.conf). For the time
|
||||
# being, until someone understands why this seem to be the case, patch the ml2 plugin
|
||||
# config - instead of touching our local.conf which is still valid for the wallaby -
|
||||
# to enable the securitygroup right before the tests start.
|
||||
[[ -e /etc/neutron/plugins/ml2/ml2_conf.ini ]]
|
||||
sed -i -e "s/enable_security_group = False/enable_security_group = True/g" /etc/neutron/plugins/ml2/ml2_conf.ini
|
||||
fi
|
||||
|
@ -41,6 +41,9 @@ timing_exit configure_spdk
|
||||
timing_enter restart_cinder
|
||||
sudo systemctl restart devstack@c-*
|
||||
sleep 10
|
||||
# Make sure neutron is restarted as well
|
||||
sudo systemctl restart devstack@q-*
|
||||
sleep 10
|
||||
timing_exit restart_cinder
|
||||
|
||||
rxe_cfg status
|
||||
|
Loading…
Reference in New Issue
Block a user