-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openstack_install_8.0.0' of github.com:SovereignCloudSt…
…ack/hardware-landscape into openstack_install_8.0.0
- Loading branch information
Showing
9 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
13 changes: 13 additions & 0 deletions
13
environments/custom/roles/scs-landscape-nodes/files/scripts/scs_check_openstack.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
FAILED="" | ||
|
||
if [ $(openstack compute service list --os-cloud admin -f json|jq '.[] | select(.Status != "enabled" or .State != "up")'|wc -l) -gt 0 ];then | ||
FAILED="NODES-DOWN" | ||
openstack compute service list --os-cloud admin | ||
fi | ||
|
||
if [ -z "FAILED" ];then | ||
echo "FAILED: $FAILED" | ||
exit 1 | ||
fi |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# TODOs: | ||
# - some validations are ignored, see https://github.com/osism/python-osism/pull/1054 | ||
# - There is no "all" validations target | ||
|
||
LOGFILE="/var/log/validations-$(date --date="today" "+%Y-%m-%d_%H-%M-%S")" | ||
|
||
echo "Logging validations to $LOGFILE" | ||
( | ||
FAILED="" | ||
while read val; do | ||
echo "** VALIDATION: $val"; | ||
osism validate $val | ||
if [ "$?" != "0" ];then | ||
FAILED="$FAILED $val" | ||
echo "VALIDATION FAILED" | ||
fi | ||
done < <(osism validate 2>&1|grep barbican|tr '{,}' '\n\n\n'|grep -v -P "(mariadb-backup|mariadb-recovery|senlin-config)"|grep "[a-z]") | ||
|
||
echo "FAILED VALIDATIONS: ${FAILED:-none}" | ||
) 2>&1 |sudo tee $LOGFILE |