Merge "Stop services before upgrade only before Pike"

This commit is contained in:
Zuul 2018-01-06 12:27:47 +00:00 committed by Gerrit Code Review
commit aef7b45977

View File

@ -2,16 +2,20 @@
set -eux
# Undercloud upgrade script.
# Those steps is for the major mariadb upgrade in mitaka
{% if target_upgrade_version in ['newton', 'ocata'] %}
# These steps have been added in Pike as a pre-upgrade entry point
# in instack, so they will be executed in 'openstack undercloud upgrade':
sudo systemctl stop 'openstack-*'
sudo systemctl stop 'neutron-*'
sudo systemctl stop httpd
#if you are going to do a backwards compatibility install save the old tht dir
# cp -r /usr/share/openstack-tripleo-heat-templates ~/tht
# update instack-undercloud and friends before running the upgrade
sudo yum -y update instack-undercloud openstack-puppet-modules openstack-tripleo-common python-tripleoclient
sudo yum -y update instack-undercloud openstack-puppet-modules openstack-tripleo-common
{% endif %}
sudo yum -y update python-tripleoclient
echo "Upgrade the undercloud"
openstack undercloud upgrade