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:
parent
1566d445ca
commit
f4721afb34
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue