d256ab054a
-remove Collectd_Ceilometer folder -remove Ceilometer specific unit tests -Remove mentions in devstack, doc, and etc folders -Substitute refereces of Ceilometer with Gnocchi/Aodh Closes-Bug: #1710855 Change-Id: I210ca8182c489c4f90a6521b1b7fd6f8a391e602 Signed-off-by: Elizabeth Burke <elizabeth.burke@intel.com>
36 lines
984 B
Bash
36 lines
984 B
Bash
#!/bin/bash
|
|
|
|
# we need to verify that db contains collectd metrics
|
|
# give it ~10 mins
|
|
|
|
date
|
|
echo "Stacking is finished with all endpoints/services running"
|
|
echo "Need to restart collectd, which went into some wrong state"
|
|
echo "or ceilometer-collectd-plugin timeouts before establishing"
|
|
echo "connections to gnocchi"
|
|
sudo service collectd status
|
|
sudo service collectd restart
|
|
|
|
retry_count=1
|
|
max_retry_count=20
|
|
export PATH=/usr/sbin:$PATH
|
|
source /opt/stack/new/devstack/openrc admin
|
|
|
|
while [ "$retry_count" -le "$max_retry_count" ]; do
|
|
if [ $(openstack metric metric list | grep interface | wc -l) -eq 0 ]; then
|
|
echo "Testing metric interface not yet visible in db $retry_count/$max_retry_count"
|
|
else
|
|
echo "Testing metric obtained from db"
|
|
exit 0
|
|
fi
|
|
let retry_count="$retry_count+1"
|
|
sleep 30
|
|
done
|
|
|
|
date
|
|
echo "[ERROR] Testing metric interface not visible in db!"
|
|
echo "Let's check collectd status:"
|
|
sudo service collectd status
|
|
|
|
exit 1
|