Last active
September 6, 2017 18:32
-
-
Save goneri/b190078c80f7f0a91076628955896acd to your computer and use it in GitHub Desktop.
show last os-collect-config error
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
#!/bin/bash | |
set -eu | |
do_ssh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet heat-admin@" | |
for i in $(nova list|awk '/ctlplane/ {print $12}'); do | |
eval $i | |
echo -n "${ctlplane} " | |
if [ -z $(${do_ssh}${ctlplane} hostname) ]; then | |
echo "Cannot reach host $ctlplane" | |
continue | |
else | |
echo "up and running" | |
fi | |
${do_ssh}${ctlplane} " | |
for f in \$(sudo find /var/lib/heat-config/deployed -name '*.notify.json'); do | |
if [ \$(sudo jq .deploy_status_code \$f) -ne 0 ]; then | |
sudo jq -r .deploy_stderr \$f | |
sudo jq -r .deploy_stdout \$f | |
fi | |
done | |
" | |
done | |
openstack stack failures list overcloud |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: