]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-20809] handle package conflicts when upgrading/reinstalling 448/head
authorVasu Kulkarni <vasu@redhat.com>
Fri, 28 Jul 2017 17:55:13 +0000 (10:55 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Fri, 28 Jul 2017 17:55:13 +0000 (10:55 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
ceph_deploy/hosts/centos/install.py

index 49e9f8ab15831b6c2b4d658b4717c2727316e128..d6226355486a941ba6406fd3e416155696001496 100644 (file)
@@ -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),
                 ],
             )