From 17ffe378343aef45feb574a955cf415956479e6a Mon Sep 17 00:00:00 2001 From: Mathieu Bultel Date: Tue, 14 Nov 2017 16:10:22 +0100 Subject: [PATCH] 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 --- instack_undercloud/undercloud.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/instack_undercloud/undercloud.py b/instack_undercloud/undercloud.py index 9895be7b8..018a882af 100644 --- a/instack_undercloud/undercloud.py +++ b/instack_undercloud/undercloud.py @@ -1827,6 +1827,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')