Created
October 17, 2016 01:52
-
-
Save kaleocheng/e270fad014647dc0a45619a531ede382 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
source ./admin.sh | |
nova list --all-tenant | grep ERROR|awk '{print $2}' > ./uuid.temp | |
cat ./uuid.temp | xargs -n1 nova reset-state --active | |
cat ./uuid.temp |xargs -n1 nova reboot --hard | |
rm -f ./uuid.temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment