Fix integration tests hooks
This patch fixes two problems: - due to bug #1475227 in DevStack our integration tests in fact are being run under admin user/tenant instead of demo - convergence_engine option is being put in the wrong config section Change-Id: I5a4b691b2b86993642d5411060b16d73207888d5
This commit is contained in:
parent
9d6c60ea95
commit
5cf295c991
@ -20,5 +20,5 @@ export DEST=${DEST:-/opt/stack/new}
|
||||
source $DEST/devstack/openrc admin admin
|
||||
sudo -E $DEST/heat/heat_integrationtests/prepare_test_env.sh
|
||||
sudo -E $DEST/heat/heat_integrationtests/prepare_test_network.sh
|
||||
source $DEST/devstack/openrc
|
||||
source $DEST/devstack/openrc demo demo
|
||||
sudo -E tox -eintegration
|
||||
|
@ -19,16 +19,19 @@ localconf=$BASE/new/devstack/local.conf
|
||||
|
||||
echo "CEILOMETER_PIPELINE_INTERVAL=60" >> $localrc_path
|
||||
echo "HEAT_ENABLE_ADOPT_ABANDON=True" >> $localrc_path
|
||||
|
||||
echo -e '[[post-config|$HEAT_CONF]]\n[DEFAULT]\n' >> $localconf
|
||||
echo -e 'notification_driver=messagingv2\n' >> $localconf
|
||||
echo -e 'num_engine_workers=2\n' >> $localconf
|
||||
echo -e 'plugin_dirs=$HEAT_DIR/heat_integrationtests/common/test_resources\n' >> $localconf
|
||||
echo -e 'hidden_stack_tags=hidden\n' >> $localconf
|
||||
echo -e '[heat_api]\nworkers=1\n' >> $localconf
|
||||
echo -e '[heat_api_cfn]\nworkers=1\n' >> $localconf
|
||||
echo -e '[heat_api_cloudwatch]\nworkers=1' >> $localconf
|
||||
|
||||
if [ "$ENABLE_CONVERGENCE" == "true" ] ; then
|
||||
echo -e 'convergence_engine=true\n' >> $localconf
|
||||
fi
|
||||
|
||||
echo -e 'notification_driver=messagingv2\n' >> $localconf
|
||||
echo -e 'num_engine_workers=2\n' >> $localconf
|
||||
echo -e 'plugin_dirs=$HEAT_DIR/heat_integrationtests/common/test_resources\n' >> $localconf
|
||||
echo -e 'hidden_stack_tags=hidden\n' >> $localconf
|
||||
|
||||
echo -e '[heat_api]\nworkers=1\n' >> $localconf
|
||||
echo -e '[heat_api_cfn]\nworkers=1\n' >> $localconf
|
||||
echo -e '[heat_api_cloudwatch]\nworkers=1' >> $localconf
|
||||
|
||||
|
@ -21,7 +21,7 @@ PUB_SUBNET_ID=`neutron subnet-list | grep ' public-subnet ' | awk '{split($0,a,"
|
||||
ROUTER_GW_IP=`neutron port-list -c fixed_ips -c device_owner | grep router_gateway | awk -F '"' -v subnet_id="${PUB_SUBNET_ID//[[:space:]]/}" '$4 == subnet_id { print $8; }'`
|
||||
|
||||
# create a heat specific private network (default 'private' network has ipv6 subnet)
|
||||
source $DEST/devstack/openrc
|
||||
source $DEST/devstack/openrc demo demo
|
||||
HEAT_PRIVATE_SUBNET_CIDR=10.0.5.0/24
|
||||
neutron net-create heat-net
|
||||
neutron subnet-create --name heat-subnet heat-net $HEAT_PRIVATE_SUBNET_CIDR
|
||||
|
Loading…
Reference in New Issue
Block a user