From: Owen Synge Date: Thu, 21 May 2015 12:42:13 +0000 (+0200) Subject: suse/install.py: SUSE zypper refresh X-Git-Tag: v1.5.25~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F295%2Fhead;p=ceph-deploy.git suse/install.py: SUSE zypper refresh zypper may not pull in latest packages if the repository cache is not updated so we should do a 'zypper ref' before installing packages. Signed-off-by: Owen Synge --- diff --git a/ceph_deploy/hosts/suse/install.py b/ceph_deploy/hosts/suse/install.py index 65f1177..a05a2cb 100644 --- a/ceph_deploy/hosts/suse/install.py +++ b/ceph_deploy/hosts/suse/install.py @@ -72,6 +72,15 @@ def install(distro, version_kind, version, adjust_repos): ] ) + remoto.process.run( + distro.conn, + [ + 'zypper', + '--non-interactive', + 'refresh' + ], + ) + remoto.process.run( distro.conn, [ @@ -106,6 +115,14 @@ def mirror_install(distro, repo_url, gpg_url, adjust_repos): distro.conn.remote_module.write_file( '/etc/zypp/repos.d/ceph.repo', ceph_repo_content) + remoto.process.run( + distro.conn, + [ + 'zypper', + '--non-interactive', + 'refresh' + ] + ) remoto.process.run( distro.conn,