]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
suse/install.py: SUSE zypper refresh 295/head
authorOwen Synge <osynge@suse.com>
Thu, 21 May 2015 12:42:13 +0000 (14:42 +0200)
committerOwen Synge <osynge@suse.com>
Thu, 21 May 2015 15:08:05 +0000 (17:08 +0200)
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 <osynge@suse.com>
ceph_deploy/hosts/suse/install.py

index 65f1177a20590104b8ebee13f33a9da56bc5fe6e..a05a2cb95d708efe8e9dd684a0a625604dec4779 100644 (file)
@@ -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,