Install ansible-pacemaker during the upgrade/update in the UC

With a Pike undercloud, we might not have ansible-pacemaker
installed on the undercloud.
We need to make sure that ansible-pacemaker is installed for
minor update and later for major upgrade

Closes-Bug: #1732354

Change-Id: I30ed7bcbe4c342a2174f25d62ec85b39ae3317c0
This commit is contained in:
Mathieu Bultel 2017-11-14 16:10:22 +01:00
parent 1566d445ca
commit f4721afb34
1 changed files with 5 additions and 0 deletions

View File

@ -1824,6 +1824,11 @@ def pre_upgrade():
_run_live_command(args, name='systemctl stop')
LOG.info('Services stopped successfully')
args = ['sudo', 'yum', 'install', '-y', 'ansible-pacemaker']
LOG.info('Installing Ansible Pacemaker module')
_run_live_command(args, name='install ansible')
LOG.info('Ansible pacemaker install completed successfully')
args = ['sudo', 'yum', 'update', '-y']
LOG.info('Updating full system')
_run_live_command(args, name='yum update')