From 778be8a27aa8925251ebaddc3fbb2c83c368018e Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Fri, 28 Jul 2017 10:55:13 -0700 Subject: [PATCH] [RM-20809] handle package conflicts when upgrading/reinstalling Signed-off-by: Vasu Kulkarni --- ceph_deploy/hosts/centos/install.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index 49e9f8a..d622635 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -78,12 +78,22 @@ def install(distro, version_kind, version, adjust_repos, **kw): elif version_kind == 'testing': url = 'https://download.ceph.com/rpm-testing/{repo}/'.format(repo=repo_part) + # remove any old ceph-release package from prevoius release remoto.process.run( distro.conn, [ - 'rpm', - '-Uvh', - '--replacepkgs', + 'yum', + 'remove', + '-y', + 'ceph-release' + ], + ) + remoto.process.run( + distro.conn, + [ + 'yum', + 'install', + '-y', '{url}noarch/ceph-release-1-0.{dist}.noarch.rpm'.format(url=url, dist=dist), ], ) -- 2.47.3