Exclude network.service.* polling meters
Currently we don't enable the vpn or lb service, so it will report error: "Unable to discover resources: 404 Not Found". So let's add them into the exclusion list. Change-Id: I5922da6325fdde61be67c75068e0ce1a65d3e7da
This commit is contained in:
parent
d2ae4c2e3e
commit
dc82f8f482
|
@ -50,6 +50,16 @@ EOF
|
||||||
service nova-consoleauth restart
|
service nova-consoleauth restart
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mod_ceilometer {
|
||||||
|
# modify ceilometer configuration per need.
|
||||||
|
if pcs resource show p_ceilometer-agent-central >/dev/null 2>&1; then
|
||||||
|
# exclude network.services.* to avoid NotFound: 404 service not found error.
|
||||||
|
sed -i '/- "!storage.api.request"/a\ - "!network.services.*"' \
|
||||||
|
/etc/ceilometer/pipeline.yaml>>$LOG_FILE 2>&1
|
||||||
|
pcs resource restart p_ceilometer-agent-central >>$LOG_FILE 2>&1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
source /root/openrc admin
|
source /root/openrc admin
|
||||||
|
|
||||||
echo "Before image replacement" >> $LOG_FILE
|
echo "Before image replacement" >> $LOG_FILE
|
||||||
|
@ -61,3 +71,5 @@ echo "After image replacement" >> $LOG_FILE
|
||||||
glance image-list >> $LOG_FILE
|
glance image-list >> $LOG_FILE
|
||||||
|
|
||||||
mod_novnc
|
mod_novnc
|
||||||
|
|
||||||
|
mod_ceilometer
|
||||||
|
|
Loading…
Reference in New Issue