Skip to content

Instantly share code, notes, and snippets.

@galvarado
Created May 14, 2020 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvarado/c8520fef69efdd9dadf243ccad73abee to your computer and use it in GitHub Desktop.
Save galvarado/c8520fef69efdd9dadf243ccad73abee to your computer and use it in GitHub Desktop.
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