Make sure major upgrade script fails.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Wed, 7 Sep 2016 09:25:41 +0000 (11:25 +0200)
committerAthlan-Guyot sofer <sathlang@redhat.com>
Wed, 21 Sep 2016 08:02:17 +0000 (08:02 +0000)
Running upgrade-non-controller.sh against compute and object storage did
not fail if the /root/tripleo_upgrade_node.sh failed.

This make it harder to detect error in CI system for instance.

Change-Id: I12b7d640547d3b8ec1f70104d159d6052b7638ff
Closes-Bug: 1620973

extraconfig/tasks/major_upgrade_compute.sh
extraconfig/tasks/major_upgrade_object_storage.sh

index 78628c8..a1df695 100644 (file)
@@ -12,6 +12,8 @@ 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
index 931f4f4..f82457c 100644 (file)
@@ -12,6 +12,7 @@ cat > $UPGRADE_SCRIPT << ENDOFCAT
 ### This file is automatically delivered to the swift-storage nodes as part of the
 ### tripleo upgrades workflow
 
+set -eu
 
 function systemctl_swift {
     action=\$1