This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UCRC='/home/stack/stackrc' | |
OCRC='/home/stack/overcloudrc' | |
OC_PASSWORD=$(grep OS_PASSWORD $OCRC | awk -F '=' {'print $2'}) | |
HOSTAUTH=$(grep OS_AUTH_URL $OCRC | grep -oP '[0-9.]+' | head -1) | |
source $UCRC | |
CTRLIP=$(nova list | awk '/controller-0/ {print $12}' | grep -oP '[0-9.]+') | |
ADMIN_TOKEN=$(\ | |
curl http://$HOSTAUTH:5000/v3/auth/tokens \ | |
-s \ |