Test multi-region environment
This patch is to debug and enbale multi-region test environment Change-Id: Id6bb3c0a875bf10b7a3453edc38f7fad6bb34f18 Signed-off-by: joehuang <joehuang@huawei.com>
This commit is contained in:
parent
63f94de34a
commit
0155d79498
|
@ -40,9 +40,10 @@ function _setup_kingbird_multinode {
|
|||
export DEVSTACK_LOCAL_CONFIG="enable_plugin kingbird https://git.openstack.org/openstack/kingbird"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ENABLE_KINGBIRD=True"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service kb-api"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service kb-api"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service kb-engine"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"REGION_NAME=RegionOne"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"HOST_IP=$PRIMARY_NODE_IP"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"NEUTRON_CREATE_INITIAL_NETWORKS=False"
|
||||
|
||||
export DEVSTACK_SUBNODE_CONFIG="REGION_NAME=RegionTwo"
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"HOST_IP=$SUBNODE_IP"
|
||||
|
@ -50,6 +51,7 @@ function _setup_kingbird_multinode {
|
|||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"KEYSTONE_SERVICE_HOST=$PRIMARY_NODE_IP"
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"KEYSTONE_AUTH_HOST=$PRIMARY_NODE_IP"
|
||||
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"NEUTRON_CREATE_INITIAL_NETWORKS=False"
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"SERVICE_HOST=$SUBNODE_IP"
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"RABBIT_HOST=$SUBNODE_IP"
|
||||
export DEVSTACK_SUBNODE_CONFIG+=$'\n'"QPID_HOST=$SUBNODE_IP"
|
||||
|
|
|
@ -77,7 +77,15 @@ iniset $TEMPEST_CONF validation connect_method fixed
|
|||
cd $TEMPEST_DIR
|
||||
|
||||
# ping kingbird api
|
||||
curl http://$PRIMARY_NODE_IP:8118
|
||||
|
||||
if curl -s --head --request GET http://$PRIMARY_NODE_IP:8118 | grep "200 OK" > /dev/null; then
|
||||
echo "kb-api is UP"
|
||||
else
|
||||
echo "kb-api is DOWN"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "start Kingbird multi-region test..."
|
||||
|
||||
# specify what kingbird test cases to be tested in TESTCASES environment
|
||||
# variables, then uncomment the follow line
|
||||
|
|
Loading…
Reference in New Issue