]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Better logging when looking for a package version in the install task 540/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 29 Jun 2015 14:34:02 +0000 (09:34 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 29 Jun 2015 14:34:02 +0000 (09:34 -0500)
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 <aschoen@redhat.com>
teuthology/task/install.py

index 0ada8780315aff0dcc08f28208cbd034307dc5a4..b27fb1ff7646fb08a1a4e843d3310b6145afb378 100644 (file)
@@ -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):