6. Validate IPM connection to overcloud nodesΒΆ

  • Check if instackenv.json exists in the working directory
if [[ ! -f /home/stack/instackenv.json ]]; then
    echo 'File "instackenv.json" is not in the working directory, aborting.'
    exit
fi
  • Install IPMI tools
sudo yum install -y git OpenIPMI OpenIPMI-tools
  • Git clone tools to validate instackenv.json
[ -d /home/stack/clapper ] && rm -rf "/home/stack/clapper"
git clone "https://github.com/rthallisey/clapper.git" "/home/stack/clapper"
  • Validate instackenv.json
export IPMI_VALIDATE="$(python /home/stack/clapper/instackenv-validator.py -f /home/stack/instackenv.json)"
if [[ $IPMI_VALIDATE != *SUCCESS* ]] ; then
   echo "instackenv.json did not validate."
   echo $IPMI_VALIDATE
fi