Created
May 14, 2020 05:13
-
-
Save galvarado/c8520fef69efdd9dadf243ccad73abee to your computer and use it in GitHub Desktop.
This file contains 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
source /home//stack/overcloudrc | |
openstack volume service list | |
openstack hypervisor list | |
openstack network agent list | |
# Variables | |
ENDPOINT='dashboard.shcp.gob' | |
USER='admin' | |
PASSWORD='wyd0903hw5qdi' | |
echo -e "\n\n ########## Horizon status ##########\n\n" | |
curl -IL https://$ENDPOINT/dashboard | |
echo -e "\n\n ########## Keystone token ##########\n\n" | |
curl -i \ | |
-H "Content-Type: application/json" \ | |
-d ' | |
{ "auth": { | |
"identity": { | |
"methods": ["password"], | |
"password": { | |
"user": { | |
"name": "'$USER'", | |
"domain": { "id": "default" }, | |
"password": "'$PASSWORD'" | |
} | |
} | |
} | |
} | |
}' \ | |
"https://$ENDPOINT:13000/v3/auth/tokens" | |
[stack@undercloud scripts]$ cat service_health.sh | |
source /home//stack/overcloudrc | |
openstack volume service list | |
openstack hypervisor list | |
openstack network agent list | |
# Variables | |
ENDPOINT='dashboard.shcp.gob' | |
USER='admin' | |
PASSWORD='wyd0903hw5qdi' | |
echo -e "\n\n ########## Horizon status ##########\n\n" | |
curl -IL https://$ENDPOINT/dashboard | |
echo -e "\n\n ########## Keystone token ##########\n\n" | |
curl -i \ | |
-H "Content-Type: application/json" \ | |
-d ' | |
{ "auth": { | |
"identity": { | |
"methods": ["password"], | |
"password": { | |
"user": { | |
"name": "'$USER'", | |
"domain": { "id": "default" }, | |
"password": "'$PASSWORD'" | |
} | |
} | |
} | |
} | |
}' \ | |
"https://$ENDPOINT:13000/v3/auth/tokens" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment