From: Andrew Schoen Date: Mon, 29 Jun 2015 14:34:02 +0000 (-0500) Subject: Better logging when looking for a package version in the install task X-Git-Tag: 1.1.0~902^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dadde6d81351eff06684538c1c7681ad937def49;p=teuthology.git Better logging when looking for a package version in the install task I think this used to be a wget call, so the url we were requesting to fetch the package version would be logged by that wget call. Since we've changed that call to use requests and lost that logging, this adds some of that logging back. Signed-off-by: Andrew Schoen --- diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 0ada878031..b27fb1ff76 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -217,8 +217,10 @@ def _block_looking_for_package_version(remote, base_url, wait=False): :returns: str -- the version e.g. '0.67-240-g67a95b9-1raring' :raises: VersionNotFoundError """ + url = "{0}/version".format(base_url) + log.info("Looking for package version: {0}".format(url)) while True: - resp = requests.get(base_url + '/version') + resp = requests.get(url) if not resp.ok: if wait: log.info( @@ -240,6 +242,7 @@ def _block_looking_for_package_version(remote, base_url, wait=False): version = version[1:] if '-' in version: version = version.split('-')[0] + log.info("Found version: {0}".format(version)) return version def _get_local_dir(config, remote):