From 2ca128667be174fe652d35c54c8e74d5abea151e Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Wed, 31 May 2017 13:26:49 +0200 Subject: python-glanceclient: Uprev to 2.5.0 This is used by latest stable/newton Drop memeroy leak patch, has been fixed in the new version. Signed-off-by: Adrian Dudau --- .../fix_glanceclient_memory_leak.patch | 37 ---------------------- .../python/python-glanceclient_git.bb | 7 ++-- 2 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 meta-openstack/recipes-devtools/python/python-glanceclient/fix_glanceclient_memory_leak.patch (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-glanceclient/fix_glanceclient_memory_leak.patch b/meta-openstack/recipes-devtools/python/python-glanceclient/fix_glanceclient_memory_leak.patch deleted file mode 100644 index 754d83f..0000000 --- a/meta-openstack/recipes-devtools/python/python-glanceclient/fix_glanceclient_memory_leak.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- - glanceclient/openstack/common/apiclient/client.py | 10 ++++++++++ - 1 file changed, 10 insertions(+) - ---- a/glanceclient/openstack/common/apiclient/client.py -+++ b/glanceclient/openstack/common/apiclient/client.py -@@ -90,6 +90,7 @@ - self.user_agent = user_agent or self.user_agent - - self.times = [] # [("item", starttime, endtime), ...] -+ self.times_max_len = 200 - self.timings = timings - - # requests within the same session can reuse TCP connections from pool -@@ -142,6 +143,12 @@ - def reset_timings(self): - self.times = [] - -+ def get_timings_max_len(self): -+ return self.times_max_len -+ -+ def set_timings_max_len(self, new_len): -+ self.times_max_len = new_len -+ - def request(self, method, url, **kwargs): - """Send an http request with the specified characteristics. - -@@ -173,6 +180,9 @@ - if self.timings: - self.times.append(("%s %s" % (method, url), - start_time, time.time())) -+ # remove oldest items until we maintain max length -+ while len(self.times) > self.times_max_len: -+ del self.times[0] - self._http_log_resp(resp) - - if resp.status_code >= 400: diff --git a/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb b/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb index 22dc854..db4b081 100644 --- a/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb @@ -9,12 +9,11 @@ DEPENDS += " \ python-pbr \ " -SRCREV = "86635868c1eb3aec0c065c12cb9928c613940f36" -PV = "1.1.0+git${SRCPV}" +SRCREV = "d4196325eb05dadfaf62d8facbd8c6fe50f72166" +PV = "2.5.0+git${SRCPV}" SRC_URI = "\ - git://github.com/openstack/${BPN}.git;protocol=https \ - file://fix_glanceclient_memory_leak.patch \ + git://github.com/openstack/${BPN}.git;protocol=https;branch=stable/newton \ file://glance-api-check.sh \ " -- cgit v1.2.3-54-g00ecf