Uprev python-keystone
cover Uprev python-keystone
This is the first uprev of a core openstack component to the stable/pike branch. By uprev'ing keystone we can enable the uprev of Horizon which will follow this work. We want to uprev Horizon as soon as possible since it exercises most of the other components so it is ideal to get working early.
Mark
PATCH 1/5 python-django-openstack-auth: uprev to latest stable/pike
This uprev is required to support the uprev of python-horizon to the latest stable/pike. Requires the uprevs to python-keystoneclient and python-keystoneauth1.
--- .../python/python-django-openstack-auth_git.bb | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)
meta-openstack/recipes-devtools/python/python-django-openstack-auth_git.bb +12 -7
@@ -6,10 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" SRCNAME = "django_openstack_auth" -PV = "2.0.0+git${SRCPV}" -SRCREV = "6e2cd8deffbd60074bf036c1cecdb280f281ccd4" +PV = "3.5.0+git${SRCPV}" +SRCREV = "9e108ed426a5a1e5c9dd394b197c27d046754d0c" -SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \ +SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/pike \ " S = "${WORKDIR}/git"
@@ -21,7 +21,12 @@ DEPENDS += " \ python-pbr \ " -RDEPENDS_${PN} += "python-django \ - python-keystoneclient \ - python-pbr \ - " +RDEPENDS_${PN} += " \ + python-pbr \ + python-django \ + python-oslo.config \ + python-oslo.policy \ + python-keystoneclient \ + python-keystoneauth1 \ + python-six \ + "
Signature · 1 line
2.7.4
PATCH 2/5 python-keystoneauth1: uprev to v3.2.0
In reply to Mark AsselstineThis uprev is required by the stable/pike version of python-django-openstack-auth, and others.
---
...keystoneauth1_2.18.0.bb => python-keystoneauth1_3.2.0.bb} | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
rename meta-openstack/recipes-devtools/python/{python-keystoneauth1_2.18.0.bb => python-keystoneauth1_3.2.0.bb} (57%)meta-openstack/recipes-devtools/python/python-keystoneauth1_3.2.0.bb renamed from meta-openstack/recipes-devtools/python/python-keystoneauth1_2.18.0.bb +3 -9
@@ -4,15 +4,10 @@ SECTION = "devel/python" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=96f840d59b245a1c817fbcb901afc574" -SRCNAME = "keystoneauth1" -SRC_URI = "http://pypi.io/packages/source/k/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" +SRC_URI[md5sum] = "d3f93a071551a753218fd50d9f680ee6" +SRC_URI[sha256sum] = "768036ee66372df2ad56716b8be4965cef9a59a01647992919516defb282e365" -SRC_URI[md5sum] = "d24c08bc7d59081adce160444ebc6993" -SRC_URI[sha256sum] = "075a9ca7a8877c5885fa2487699015e45260c4e6be119683effe0ad2ab1255d2" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools +inherit setuptools pypi DEPENDS += " \ python-pbr \
@@ -21,7 +16,6 @@ DEPENDS += " \ RDEPENDS_${PN} += " \ python-pbr \ python-iso8601 \ - python-positional \ python-requests \ python-six \ python-stevedore \
Signature · 1 line
2.7.4
PATCH 3/5 python-keystoneclient: uprev to latest stable/pike
In reply to Mark AsselstineThis package no longer contains bash-completions, so drop this part of the packaging. Remove old, no longer applicable patches. Update the list of runtime dependencies, based on required.txt.
Requires the version update to python-django-openstack-auth.
--- .../fix_keystoneclient_memory_leak.patch | 37 -------------------- ...ent-fix-test-path-to-example-certificates.patch | 31 ----------------- .../python/python-keystoneclient_git.bb | 40 ++++++++++------------ 3 files changed, 18 insertions(+), 90 deletions(-) delete mode 100644 meta-openstack/recipes-devtools/python/python-keystoneclient/fix_keystoneclient_memory_leak.patch delete mode 100644 meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch
meta-openstack/recipes-devtools/python/python-keystoneclient/fix_keystoneclient_memory_leak.patch deleted +0 -37
@@ -1,37 +0,0 @@ ---- - keystoneclient/openstack/common/apiclient/client.py | 10 ++++++++++ - 1 file changed, 10 insertions(+) - ---- a/keystoneclient/openstack/common/apiclient/client.py -+++ b/keystoneclient/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:
meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From fae14f85d43da3842b2a065baf0442d61a573598 Mon Sep 17 00:00:00 2001 -From: Keith Holman <[email protected]> -Date: Fri, 13 Jun 2014 17:08:03 -0400 -Subject: [PATCH] keystoneclient: fix test path to example certificates - -The tests included with keystoneclient expect them to be ran from the -source tree. This fix changes base path of the system to where they -are actually deployed on the system. This fix is required for some -tests to work properly. - -Signed-off-by: Keith Holman <[email protected]> ---- - keystoneclient/tests/client_fixtures.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/keystoneclient/tests/client_fixtures.py b/keystoneclient/tests/client_fixtures.py -index 1743162..6bfcb93 100644 ---- a/keystoneclient/tests/client_fixtures.py -+++ b/keystoneclient/tests/client_fixtures.py -@@ -25,7 +25,7 @@ from keystoneclient import utils - - - TESTDIR = os.path.dirname(os.path.abspath(__file__)) --ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..', '..')) -+ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..')) - CERTDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'certs') - CMSDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'cms') - KEYDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'private') --- -1.9.3 -
meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb +18 -22
@@ -7,16 +7,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55" SRCNAME = "keystoneclient" SRC_URI = "\ - git://github.com/openstack/python-keystoneclient.git;branch=master \ - file://fix_keystoneclient_memory_leak.patch \ + git://github.com/openstack/python-keystoneclient.git;branch=stable/pike \ file://keystone-api-check.sh \ " -PV = "1.7.1+git${SRCPV}" -SRCREV = "28138b588224c6b0503620ac2e24bd37dad25370" +PV = "3.13.0+git${SRCPV}" +SRCREV = "7ff05baa1fa56f152173651f16fc6fd181291292" S = "${WORKDIR}/git" -inherit setuptools monitor rmargparse +inherit setuptools monitor FILES_${PN}-doc += "${datadir}/keystoneclient"
@@ -31,28 +30,25 @@ DEPENDS += " \ " RDEPENDS_${PN} += " \ - python-iso8601 \ - python-prettytable \ - python-requests \ - python-simplejson \ - python-oslo.config \ - python-oslo.serialization \ - python-pbr \ - python-argparse \ - " - -PACKAGECONFIG ?= "bash-completion" -PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash-completion" + bash \ + python-pbr \ + python-debtcollector \ + python-keystoneauth1 \ + python-oslo.config \ + python-oslo.i18n \ + python-oslo.serialization \ + python-oslo.utils \ + python-positional \ + python-requests \ + python-six \ + python-stevedore \ + " do_install_append() { - install -d ${D}/${sysconfdir}/bash_completion.d - install -m 664 ${S}/tools/keystone.bash_completion ${D}/${sysconfdir}/bash_completion.d - cp -r ${S}/examples ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME} } -PACKAGES =+ " ${SRCNAME}-tests ${BPN}-bash-completion" -FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" +PACKAGES =+ " ${SRCNAME}-tests" FILES_${SRCNAME}-tests = "${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ "
Signature · 1 line
2.7.4
PATCH 4/5 python-keystonemiddleware: uprev to latest stable/pike
In reply to Mark AsselstineUpdated runtime dependencies based on requirements.txt.
--- .../python/python-keystonemiddleware_git.bb | 23 +++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-)
meta-openstack/recipes-devtools/python/python-keystonemiddleware_git.bb +18 -5
@@ -7,11 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55" SRCNAME = "keystonemiddleware" SRC_URI = "\ - git://git.openstack.org/openstack/keystonemiddleware;branch=master \ + git://git.openstack.org/openstack/keystonemiddleware;branch=stable/pike \ " -PV = "2.3.0+git${SRCPV}" -SRCREV = "62805857ea39710ba14ab9a4e6c606dc336c6b56" +PV = "4.17.0+git${SRCPV}" +SRCREV = "69aed2693475797c8d0dda2725a790eea05a9419" S = "${WORKDIR}/git" inherit setuptools
@@ -22,5 +22,18 @@ DEPENDS += " \ " RDEPENDS_${PN} += " \ - python-pbr \ - " + python-keystoneauth1 \ + python-oslo.config \ + python-oslo.context \ + python-oslo.i18n \ + python-oslo.log \ + python-oslo.serialization \ + python-oslo.utils \ + python-pbr \ + python-positional \ + python-pycadf \ + python-keystoneclient \ + python-requests \ + python-six \ + python-webob \ + "
Signature · 1 line
2.7.4
PATCH 5/5 python-keystone: uprev to latest stable/pike
In reply to Mark AsselstineRequired updates to python-olso*, keystoneclient, keystonemiddleware and more. These updates have all been completed in commit prior to this uprev.
--- .../recipes-devtools/python/python-keystone_git.bb | 65 ++++++++++++---------- 1 file changed, 35 insertions(+), 30 deletions(-)
meta-openstack/recipes-devtools/python/python-keystone_git.bb +35 -30
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" SRCNAME = "keystone" -SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \ +SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/pike \ file://keystone.conf \ file://identity.sh \ file://keystone \
@@ -19,8 +19,8 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \ # file://keystone-remove-git-commands-in-tests.patch # file://keystone-explicitly-import-localcontext-from-oslo.me.patch -SRCREV = "8dcd82fb9c76d43f26338bee293b32f4af473ad9" -PV = "8.0.0+git${SRCPV}" +SRCREV = "d07677aba54362a4a3aa2d165b155105ffe30d73" +PV = "12.0.0+git${SRCPV}" S = "${WORKDIR}/git"
@@ -75,7 +75,7 @@ do_install_append() { install -d ${D}${localstatedir}/log/${SRCNAME} install -m 755 -d ${KEYSTONE_CGI_DIR} - install -m 755 -d ${KEYSTONE_PY_DIR} + #install -m 755 -d ${KEYSTONE_PY_DIR} # Apache needs to read the keystone.conf install -m 644 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/
@@ -87,16 +87,16 @@ do_install_append() { install -m 600 ${S}${sysconfdir}/keystone.conf.sample \ ${KEYSTONE_CONF_DIR}/keystone.conf.sample # Apache user needs to read these files. - install -m 644 ${S}${sysconfdir}/policy.json \ - ${KEYSTONE_CONF_DIR}/policy.json + #install -m 644 ${S}${sysconfdir}/policy.json \ + # ${KEYSTONE_CONF_DIR}/policy.json install -m 644 ${S}${sysconfdir}/keystone-paste.ini \ ${KEYSTONE_CONF_DIR}/keystone-paste.ini - install -m 644 ${S}/httpd/keystone.py \ - ${KEYSTONE_PY_DIR}/keystone-httpd.py - install -m 644 ${S}/httpd/keystone.py \ - ${KEYSTONE_CGI_DIR}/admin - install -m 644 ${S}/httpd/keystone.py \ - ${KEYSTONE_CGI_DIR}/main + #install -m 644 ${S}/httpd/keystone.py \ + # ${KEYSTONE_PY_DIR}/keystone-httpd.py + #install -m 644 ${S}/httpd/keystone.py \ + # ${KEYSTONE_CGI_DIR}/admin + #install -m 644 ${S}/httpd/keystone.py \ + # ${KEYSTONE_CGI_DIR}/main cp -r ${S}/examples ${KEYSTONE_PACKAGE_DIR}
@@ -249,37 +249,42 @@ DEPENDS += " \ " RDEPENDS_${PN} += " \ - python-pycadf \ - python-oslo.db \ - python-pam \ + python-babel \ + python-pbr \ python-webob \ - python-eventlet \ - python-greenlet \ python-pastedeploy \ python-paste \ python-routes \ + python-cryptography \ + python-six \ python-sqlalchemy \ python-sqlalchemy-migrate \ + python-stevedore \ python-passlib \ - python-lxml \ - python-iso8601 \ python-keystoneclient \ - python-openstack-nose \ + python-keystonemiddleware \ + python-bcrypt \ + python-scrypt \ + python-oslo.cache \ + python-oslo.concurrency \ python-oslo.config \ - python-dogpile.core \ - python-dogpile.cache \ - python-pbr \ - python-pysaml2 \ + python-oslo.context \ + python-oslo.messaging \ + python-oslo.db \ + python-oslo.i18n \ + python-oslo.log \ + python-oslo.middleware \ python-oslo.policy \ + python-oslo.serialization \ python-oslo.utils \ python-oauthlib \ - python-fixtures \ - python-oslotest \ - python-functools32 \ - python-six \ - python-routes \ + python-pysaml2 \ + python-dogpile.cache \ + python-jsonschema \ python-pycadf \ - python-cryptography \ + python-msgpack \ + python-osprofiler \ + python-pytz \ " RDEPENDS_${SRCNAME}-tests += " bash"
Signature · 1 line
2.7.4
Quoted 5 lines · Mark Asselstine
This is the first uprev of a core openstack component to the stable/pike branch. By uprev'ing keystone we can enable the uprev of Horizon which will follow this work. We want to uprev Horizon as soon as possible since it exercises most of the other components so it is ideal to get working early.
merged.
Bruce
Quoted 3 lines
Mark