3 # This delivers the compute upgrade script to be invoked as part of the tripleo
4 # major upgrade workflow.
8 UPGRADE_SCRIPT=/root/tripleo_upgrade_node.sh
10 cat > $UPGRADE_SCRIPT << ENDOFCAT
11 ### DO NOT MODIFY THIS FILE
12 ### This file is automatically delivered to the compute nodes as part of the
13 ### tripleo upgrades workflow
17 # pin nova to kilo (messaging +-1) for the nova-compute service
19 crudini --set /etc/nova/nova.conf upgrade_levels compute $upgrade_level_nova_compute
21 $(declare -f special_case_ovs_upgrade_if_needed)
22 special_case_ovs_upgrade_if_needed
24 yum -y install python-zaqarclient # needed for os-collect-config
27 # Due to bug#1640177 we need to restart compute agent
28 echo "Restarting openstack ceilometer agent compute"
29 systemctl restart openstack-ceilometer-compute
33 # ensure the permissions are OK
34 chmod 0755 $UPGRADE_SCRIPT