3 # This delivers the swift-storage 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 swift-storage nodes as part of the
13 ### tripleo upgrades workflow
17 function systemctl_swift {
19 for S in openstack-swift-account-auditor openstack-swift-account-reaper openstack-swift-account-replicator openstack-swift-account \
20 openstack-swift-container-auditor openstack-swift-container-replicator openstack-swift-container-updater openstack-swift-container \
21 openstack-swift-object-auditor openstack-swift-object-replicator openstack-swift-object-updater openstack-swift-object; do
22 systemctl \$action \$S
29 yum -y install python-zaqarclient # needed for os-collect-config
38 # ensure the permissions are OK
39 chmod 0755 $UPGRADE_SCRIPT