Merge "Increase galera sync timeout in yum_update.sh"
[apex-tripleo-heat-templates.git] / extraconfig / tasks / major_upgrade_compute.sh
1 #!/bin/bash
2 #
3 # This delivers the compute upgrade script to be invoked as part of the tripleo
4 # major upgrade workflow.
5 #
6 set -eu
7
8 UPGRADE_SCRIPT=/root/tripleo_upgrade_node.sh
9
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
14
15 # pin nova to kilo (messaging +-1) for the nova-compute service
16
17 crudini  --set /etc/nova/nova.conf upgrade_levels compute $upgrade_level_nova_compute
18
19 yum -y install python-zaqarclient  # needed for os-collect-config
20 yum -y update
21
22 ENDOFCAT
23
24 # ensure the permissions are OK
25 chmod 0755 $UPGRADE_SCRIPT
26