From: Dan Mick Date: Wed, 14 May 2014 00:00:32 +0000 (-0700) Subject: When adding an apt repo, run "apt-get update" unconditionally X-Git-Tag: v1.5.3~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8ad7c08738aa447a2e68323e34e3c8fe60f3d25;p=ceph-deploy.git When adding an apt repo, run "apt-get update" unconditionally Signed-off-by: Dan Mick --- diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py index eb8a0d7..f8d1b9b 100644 --- a/ceph_deploy/hosts/debian/install.py +++ b/ceph_deploy/hosts/debian/install.py @@ -171,9 +171,11 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw): safe_filename ) + # repo is not operable until an update + pkg_managers.apt_update(distro.conn) + if install_ceph: # Before any install, make sure we have `wget` - pkg_managers.apt_update(distro.conn) packages = ( 'ceph', 'ceph-mds',