From 3cd91dc91efc9fb2ac33f3c178b174f6fac4cf9b Mon Sep 17 00:00:00 2001 From: Owen Synge Date: Thu, 21 May 2015 14:42:13 +0200 Subject: [PATCH] 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 --- ceph_deploy/hosts/suse/install.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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, -- 2.47.3