Merge "Don't start all services during upgrade steps"
[apex-tripleo-heat-templates.git] / extraconfig / tasks / major_upgrade_compute.sh
index 2f19d57..7a3e107 100644 (file)
@@ -12,11 +12,22 @@ cat > $UPGRADE_SCRIPT << ENDOFCAT
 ### This file is automatically delivered to the compute nodes as part of the
 ### tripleo upgrades workflow
 
+set -eu
+
 # pin nova to kilo (messaging +-1) for the nova-compute service
 
 crudini  --set /etc/nova/nova.conf upgrade_levels compute $upgrade_level_nova_compute
+
+$(declare -f special_case_ovs_upgrade_if_needed)
+special_case_ovs_upgrade_if_needed
+
+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