From 97f3eebbd6126d6b8db7c9a4e45c5693c32265d2 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 3 Mar 2017 15:38:03 -0700 Subject: [PATCH] Use purged for firewalld If the undercloud node was installed via anaconda gui, the anaconda-core and related packages may be installed. These packages have a dependency on firewalld which can result in an install failure. To ensure that we don't fail, we need to use purge which will also cause the dependencies to get removed as well. Change-Id: Ib46e1545d3843ff0306e6711939840fe2fb407dc Closes-Bug: #1669915 (cherry picked from commit a0f57042bbb0d7071cfc83b5c1a420b591c81e23) --- elements/puppet-stack-config/puppet-stack-config.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index 11c6d5a5f..1fb9f6653 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -609,8 +609,11 @@ ensure_resource('package', 'python-dracclient') # dependency of pxe_ilo ensure_resource('package', 'python-proliantutils') +# firewalld is a dependency of some anaconda packages, so we need to use purge +# to ensure all the things that it might be a dependency for are also +# removed. See LP#1669915 ensure_resource('package', 'firewalld', { - 'ensure' => 'absent', + 'ensure' => 'purged', }) ensure_resource('package', 'os-cloud-config') ensure_resource('package', 'openstack-selinux')