Merge "Stop services before upgrade only before Pike"
This commit is contained in:
commit
aef7b45977
@ -2,16 +2,20 @@
|
|||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
# Undercloud upgrade script.
|
# 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 'openstack-*'
|
||||||
sudo systemctl stop 'neutron-*'
|
sudo systemctl stop 'neutron-*'
|
||||||
sudo systemctl stop httpd
|
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
|
# 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"
|
echo "Upgrade the undercloud"
|
||||||
openstack undercloud upgrade
|
openstack undercloud upgrade
|
||||||
|
Loading…
Reference in New Issue
Block a user