ceilometer compute agent needs restart on compute upgrade
authorPradeep Kilambi <pkilambi@redhat.com>
Tue, 8 Nov 2016 13:59:10 +0000 (08:59 -0500)
committerPradeep Kilambi <pkilambi@redhat.com>
Tue, 8 Nov 2016 15:52:04 +0000 (15:52 +0000)
After compute nodes are upgraded, the ceilometer compute agent
doesnt poll and throws warnings. Restarting the compute agent
at this step gets the service back to its normal state.

Closes-Bug: #1640177

Change-Id: I7392de43e933b1d16002e12e407748ae289d5e99

extraconfig/tasks/major_upgrade_compute.sh

index f5105a1..b0d4280 100644 (file)
@@ -35,6 +35,10 @@ fi
 yum -y install python-zaqarclient  # needed for os-collect-config
 yum -y update
 
+# Due to bug#1640177 we need to restart compute agent
+echo "Restarting openstack ceilometer agent compute"
+systemctl restart openstack-ceilometer-compute
+
 ENDOFCAT
 
 # ensure the permissions are OK