diff --git a/tools/setup-service b/tools/setup-service index 4af1db00e..4b097a680 100755 --- a/tools/setup-service +++ b/tools/setup-service @@ -21,6 +21,7 @@ fi PORT=8778 HOST=$1 # Put your host IP here SVC_PASSWD=$2 +OS_REGION_NAME=${OS_REGION_NAME:-RegionOne} SERVICE_ID=$(openstack service show senlin -f value -cid 2>/dev/null) if [[ -z $SERVICE_ID ]]; then @@ -39,7 +40,7 @@ openstack endpoint create \ --adminurl "http://$HOST:$PORT" \ --publicurl "http://$HOST:$PORT" \ --internalurl "http://$HOST:$PORT" \ - --region RegionOne \ + --region $OS_REGION_NAME \ senlin openstack user create \