debian/0000775000000000000000000000000012421503157007170 5ustar debian/logging.conf0000664000000000000000000000141012416007547011467 0ustar [loggers] keys=root [formatters] keys=normal,normal_with_name,debug [handlers] keys=production,file,devel [logger_root] level=WARNING handlers=file [handler_production] class=handlers.SysLogHandler level=ERROR formatter=normal_with_name args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) [handler_file] class=FileHandler level=DEBUG formatter=normal_with_name args=('/var/log/keystone/keystone.log', 'a') [handler_devel] class=StreamHandler level=NOTSET formatter=debug args=(sys.stdout,) [formatter_normal] format=%(asctime)s %(levelname)s %(message)s [formatter_normal_with_name] format=(%(name)s): %(asctime)s %(levelname)s %(message)s [formatter_debug] format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s debian/control0000664000000000000000000000700012416007547010576 0ustar Source: keystone Section: net Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Monty Taylor Uploaders: Soren Hansen Build-Depends: debhelper (>= 7.0.50), po-debconf, python-all (>= 2.6), python-babel, python-crypto, python-dogpile.cache (>= 0.5.0), python-eventlet, python-greenlet, python-iso8601, python-jsonschema, python-keystoneclient (>= 1:0.4.0), python-kombu (>= 2.4.8), python-ldap, python-lockfile, python-lxml, python-memcache, python-migrate, python-mock, python-mox, python-netaddr, python-netifaces, python-oauthlib, python-oslo.config (>= 1:1.2.0), python-oslo.messaging, python-oslosphinx, python-oslotest, python-pam (>= 0.1.4), python-passlib, python-paste, python-pastedeploy, python-pbr (>= 0.5), python-pecan, python-pycadf, python-pymongo, python-requests (>= 1.0.0), python-routes, python-setuptools, python-six, python-sphinx, python-sqlalchemy (>= 0.8.2), python-testtools (>= 0.9.32), python-webob (>= 1.0.8), python-webtest, python-wsme, subunit, testrepository Standards-Version: 3.9.3 XS-Python-Version: >= 2.6 Homepage: http://launchpad.net/keystone Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/keystone/icehouse/files Vcs-Bzr: https://code.launchpad.net/~ubuntu-server-dev/keystone/icehouse XS-Testsuite: autopkgtest Package: python-keystone Architecture: all Section: python Depends: python-babel, python-dogpile.cache(>= 0.5.0), python-eventlet, python-greenlet, python-iso8601, python-keystoneclient (>= 1:0.3.0), python-kombu (>= 2.4.8), python-ldap, python-lockfile, python-lxml, python-migrate, python-netaddr, python-oslo.config (>= 1:1.2.0a3), python-pam (>= 0.1.4), python-passlib, python-paste, python-pastedeploy, python-routes, python-sqlalchemy (>= 0.8.2), python-webob (>= 1.0.8), ${misc:Depends}, ${python:Depends} Suggests: python-memcache Provides: ${python:Provides} XB-Python-Version: ${python:Versions} Description: OpenStack identity service - Python library Keystone is a proposed independent authentication service for OpenStack. . This initial proof of concept aims to address the current use cases in Swift and Nova which are: . * REST-based, token auth for Swift * many-to-many relationship between identity and tenant for Nova. Keystone does authentication and stuff . This package contains the Python libraries. Package: keystone Architecture: all Section: python Depends: adduser, python-keystone (= ${source:Version}), ssl-cert (>= 1.0.12), ${misc:Depends}, ${python:Depends} Description: OpenStack identity service - Daemons Keystone is a proposed independent authentication service for OpenStack. . This initial proof of concept aims to address the current use cases in Swift and Nova which are: . * REST-based, token auth for Swift * many-to-many relationship between identity and tenant for Nova. Keystone does authentication and stuff . This package contains the daemons. Package: keystone-doc Architecture: all Section: doc Depends: libjs-jquery, ${misc:Depends} Description: OpenStack identity service - Documentation Keystone is a proposed independent authentication service for OpenStack. . This initial proof of concept aims to address the current use cases in Swift and Nova which are: . * REST-based, token auth for Swift * many-to-many relationship between identity and tenant for Nova. Keystone does authentication and stuff . This package contains the documentation. debian/keystone.postinst0000664000000000000000000000155212416007547012647 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' &2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/keystone.logrotate0000664000000000000000000000020712416007547012760 0ustar /var/log/keystone/keystone.log { daily missingok rotate 5 compress delaycompress notifempty copytruncate } debian/changelog0000664000000000000000000007360612421503157011056 0ustar keystone (1:2014.1.3-0ubuntu2.1) trusty-security; urgency=medium * No change rebuild for security: - [878f12e] Adds a whitelist for endpoint catalog substitution + CVE-2014-3621 + LP: #1354208 -- Marc Deslauriers Tue, 21 Oct 2014 12:13:36 -0400 keystone (1:2014.1.3-0ubuntu2) trusty; urgency=medium [ Edward Hope-Morley ] * Added python-ldap as install dep (LP: #1364854) -- Chuck Short Fri, 10 Oct 2014 12:54:47 -0400 keystone (1:2014.1.3-0ubuntu1) trusty; urgency=medium [ Corey Bryant ] * Resynchronize with stable/icehouse (8485dbc) (LP: #1377136): - [89ebfe9] Fix tests comparing tokens - [6bf25d0] Fix typo on cache backend module - [1c8f9f9] Set LDAP certificate trust options for LDAPS and TLS - [878f12e] Adds a whitelist for endpoint catalog substitution - [a391713] Remove extraenous instantiations of managers - [25cbcf5] Avoid conversion of binary LDAP values - [b3765d7] Catalog driver generates v3 catalog from v2 catalog - [824f66d] Ensure token is a string - [30f9247] Add workaround to support tox 1.7.2 - [80502d3] Fixes catalog URL formatting to never return None - [f3198d8] Updates keystone.catalog.core.format_url tests - [c959cbd] Ignore broken endpoints in get_catalog - [126440d] Ignore broken endpoints in get_v3_catalog - [c48ec38] No longer allow listing users by email - [18d4843] Fixes an issue with the XMLEquals matcher - [c6cd627] Implicitly ignore attributes that are mapped to None in LDAP - [8485dbc] Remove `with_lockmode` use from Trust SQL backend. * d/p/fix-requirements.patch: Rebased. * d/p/add-version-info.patch: Rebased. -- Chuck Short Mon, 06 Oct 2014 09:08:41 -0400 keystone (1:2014.1.2.1-0ubuntu1) trusty; urgency=medium [ Corey Bryant ] * Resynchronize with stable/icehouse (935fd60) (LP: #1354159): - [6cbf835] Fix revocation event handling with MySQL - [c900a6e] Make test_revoke expiry times distinct - [5c89c89] Fix revoking a scoped token from an unscoped token - [dfb0ff0] Add a test for revoking a scoped token from an unscoped - [317f9d3] Fix revoking domain-scoped tokens - [cccc3f3] Correct revocation event test for domain_id - [bdb88c6] Fix for V2 token issued_at time changing - [0c34e79] Add tests related to V2 token issued_at time changing - [8e87504] Don't override tox envdir for pep8 - [774b6ab] Correct the region table to be InnoDB and UTF8 - [6f8c444] HEAD responses should return same status as GET - [44555e8] Ensure that in v2 auth tenant_id matches trust - [2baae78] Do not log 14+ INFO lines on a broken pipe error (eventlet) - [cef4fbc] Properly invalidate cache for get_*_by_name methods - [e08b62a] Make sure domains are enabled by default - [7378512] Block delegation escalation of privilege - [935fd60] Encode/Decode LDAP parameters to/from UTF-8 * d/p/fix-requirements.patch: Refreshed. [ James Page ] * d/watch: Point to tarballs.openstack.org for release artifacts. -- Corey Bryant Fri, 08 Aug 2014 16:47:10 -0400 keystone (1:2014.1.1-0ubuntu1) trusty; urgency=medium * Resynchronize with stable/icehouse (1716748) (LP: #1328134): - [4408625] sql migration: ensure using innodb utf8 for assignment table - [786af98] SQL and LDAP fixes for get_roles_for_user_and_project user=group ID - [e56fe4c] Updated from global requirements - [0bd819c] Removed duplication with list_user_ids_for_project - [b932321] Allow any attributes in mapping and include in results - [1716748] Treat LDAP attribute names as case-insensitive * d/p/fix-requirements.patch: Drop minimum version of six to align to version in Ubuntu 14.04. -- Corey Bryant Mon, 09 Jun 2014 15:57:33 -0400 keystone (1:2014.1-0ubuntu1) trusty; urgency=medium * New upstream release (LP: #1298959). -- James Page Thu, 17 Apr 2014 10:18:51 +0100 keystone (1:2014.1~rc2-0ubuntu1) trusty; urgency=medium [ Chuck Short ] * debian/control: Add python-oslotest as a build dependency. [ Corey Bryant ] * New upstream release. (LP: #1298959) -- Corey Bryant Tue, 08 Apr 2014 08:36:51 -0400 keystone (1:2014.1~rc1-0ubuntu1) trusty; urgency=medium [ James Page ] * d/p/*: Refreshed * d/p/revoke-api.patch: Dropped, not needed for master branch. * d/control: Add python-kombu and python-lockfile to BD's and dependencies for python-keystone (LP: #1292478). [ Chuck Short ] * New upstream release. (LP: #1298959) * d/p/ubuntu-oslo.sphinx.patch: Dropped no longer needed. * debian/control: Use python-oslosphinx. * d/patches/add-version-info.patch: Re-enabled. * d/keystone.logrotate: Use copytruncate instead of restart. (LP: #1297705) -- Chuck Short Fri, 28 Mar 2014 07:38:36 -0400 keystone (1:2014.1~b3-0ubuntu3) trusty; urgency=medium * d/p/revoke-api.patch: Add upstream patch to resolve critical issue with token revocation (LP: #1289935). * d/keystone.postinst: Ensure db_sync is only run when the default sqlite connection is configured (LP: #1290423). -- Corey Bryant Wed, 12 Mar 2014 23:20:05 -0500 keystone (1:2014.1~b3-0ubuntu2) trusty; urgency=medium * Make test execution more verbose to avoid timeouts on buildds: - d/rules: Use run_tests.sh wrapper to execute tests. - d/control: Add BD on subunit. * d/*: Wrap and sort. -- James Page Thu, 06 Mar 2014 21:37:04 +0000 keystone (1:2014.1~b3-0ubuntu1) trusty; urgency=low [ Chuck Short ] * d/patches/ubuntu-oslo.sphinx.patch: Override oslosphinx namesapce. * d/control: Add python-pycadf as a build-dependency. * d/control: Add python-oslo.messaging as a build-dependency. * d/control: Add python-jsonschema as a build-dependency. * d/control: Add python-pymongo as a build-dependency. * d/patches/add-version-info.patch: Temporarily disable. [ James Page ] * New upstream milestone release. * d/patches/*: Refreshed. -- James Page Thu, 06 Mar 2014 18:09:12 +0000 keystone (1:2014.1~b2-0ubuntu1) trusty; urgency=low [ Chuck Short ] * New upstream release. * debian/patches/fix-ubuntu-tests.patch: Refreshed. * debian/patches/sql-connection.patch: Refreshed * debian/patches/debian/patches/disable-oauth2.patch: Refreshed * debian/control: - Add python-pecan, python-crypto, python-mock, python-oauthlib, and python-wsme as dependencies. - Remove suggestion for python-oauth2. * debian/rules: Use a clean keystone.conf while running the tests. * debian/patches/disable-oauth2.patch: Dropped no longer needed. (LP: #1240382) * debian/keystone.conf: Removed [ Yolanda Robla ] * debian/patches/add-version-info.patch: Add platform to identify what the server is running. * debian/control: Bump python-keystoneclient version. -- Chuck Short Thu, 23 Jan 2014 12:32:11 -0500 keystone (1:2014.1~b1-0ubuntu1) trusty; urgency=low * New upstream release. * debian/control: - open icehouse release. - Add python-six as a build dependency. - Drop python-nose as a build dependency. * debian/rules: - Use sphinx-build to build docs and man pages. - Call testrepository directly. * debian/patches/fix-ubuntu-tests.patch: Refreshed. * debian/patches/disable-oauth2.patch: Refreshed. -- Chuck Short Thu, 05 Dec 2013 14:30:11 -0500 keystone (1:2013.2-0ubuntu1) saucy; urgency=low * New upstream release (LP: #1236462). -- Chuck Short Thu, 17 Oct 2013 10:22:54 -0400 keystone (1:2013.2~rc4-0ubuntu1) saucy; urgency=low * New upstream release candidate (LP: #1240592). -- Chuck Short Wed, 16 Oct 2013 12:09:40 -0400 keystone (1:2013.2~rc3-0ubuntu1) saucy; urgency=low * New upstream release candidate (LP: #1240254). -- James Page Wed, 16 Oct 2013 09:27:09 +0100 keystone (1:2013.2~rc2-0ubuntu1) saucy; urgency=low * New upstream release candidate. (LP: #1239156) -- Chuck Short Tue, 15 Oct 2013 09:39:53 -0400 keystone (1:2013.2~rc1-0ubuntu1) saucy; urgency=low * New upstream version. * debian/control: - Add versioned dependencies to python-pbr, python-dogpile.cache, python-oslo.config, python-webob, python-pam, python-sqlalchemy, python-testtools, and python-requests. - Added python-greenlet, python-requests, python-netifaces, and python-setuptools as a build dependency. - Dropped python-swift, python-unittest, python-d2to1, as a build dependency. - Bumped versioned depends for python-keystoneclient. * debian/patches/disable-oauth2.patch: Refreshed -- Chuck Short Wed, 02 Oct 2013 11:46:14 -0400 keystone (1:2013.2~b3-0ubuntu2) saucy; urgency=low * debian/control: Droppped python-oauth2 as a build dependency, add a suggests to python-oauth2 for python-keystone. * debian/patches/fix-ubuntu-tests.patch: Refreshed. * debian/patches/disable-oauth2.patch: Temporarily disable oauth2 since there is open CVE with python-oauth2. -- Chuck Short Thu, 12 Sep 2013 16:17:30 -0400 keystone (1:2013.2~b3-0ubuntu1) saucy; urgency=low [ Chuck Short ] * New upstream release. * debian/control: Add python-oslo.sphinx as a build dependency. * debian/control: Add python-babel as a build dependency. * debian/control: Add python-dogpile.cache as a build dependency. * debian/control: Add python-oauth2 as a build dependency. * debian/patches/sql_connection.patch: Refreshed [ James Page ] * d/patches/fix-ubuntu-tests.patch: Fixup for new tests location. * d/patches/ubuntu-test-overrides.patch: Override testing defaults using patches. * d/rules: Rework for patching approach for test_overrides.conf. * d/tests/test_overrides.conf: Dropped - no longer required. * d/control: Add python-netaddr to BD's. [ Adam Gandelman ] * debian/control: Add python-testtools to Build-Depends. -- Chuck Short Mon, 09 Sep 2013 18:02:41 -0400 keystone (1:2013.2~b2-0ubuntu2) saucy; urgency=low * d/test/keystone-daemon: Switch to using restart instead of start as this will do the right thing whatever start the keystone service is in. -- James Page Wed, 24 Jul 2013 11:56:28 +0100 keystone (1:2013.2~b2-0ubuntu1) saucy; urgency=low [ Adam Gandelman ] * debian/patches/*: Refresh * debian/keystone.install: Install keystone-paste.ini to /etc/keystone. (LP: #1190038) [ Yolanda Robla ] * debian/tests: added autopkgtests. [ Chuck Short ] * New upstream release. [ James Page ] * d/control: Update VCS fields for new branch locations. -- Chuck Short Fri, 19 Jul 2013 09:25:36 -0400 keystone (1:2013.2~b1-0ubuntu1) saucy; urgency=low * New upstream version. * debian/patches/fix-ubuntu-tests.patch: Refreshed. * debian/control: Add python-pbr and python-d2to1. * debian/patches/sql_connection.patch: Refreshed. -- Chuck Short Fri, 31 May 2013 08:03:03 -0500 keystone (1:2013.1-0ubuntu1) raring; urgency=low [ Adam Gandelman ] * debian/patches/sql_connection.patch: Ensure SQL by default for all backends. (LP: #1158563) * debian/rules: Reinstate use of test_overrides.conf to target upstream defaults when running unit tests. [ Chuck Short ] * New upstream release. -- Chuck Short Fri, 05 Apr 2013 22:32:17 -0500 keystone (1:2013.1~rc3-0ubuntu1) raring; urgency=low * New upstream release. -- Chuck Short Tue, 02 Apr 2013 08:50:49 -0500 keystone (1:2013.1~rc2-0ubuntu1) raring; urgency=low * New upstream release. -- Chuck Short Thu, 28 Mar 2013 10:24:18 -0500 keystone (1:2013.1~rc1-0ubuntu1) raring; urgency=low [ James Page ] * d/watch: Update uversionmangle to deal with upstream versioning changes, remove tarballs.openstack.org. * d/rules: Stop using packaging specific test overrides when running unit tests. [ Chuck Short ] * New upstream release. * debian/control: Clean-up build-depends - Dropped pylint not needed. - Dropped python-all-dev and python-support not needed. - Renamed python-oslo-config to python-oslo.config. - Dropped python-prettytable no longer needed. - Dropped pyhthon-novaclient no longer needed. - Dropped pep8 no longer needed. * debian/control:Clean-up depends: - Dropped python-prettytable no longer needed. * Update standards [ Adam Gandelman ] * d/control: Bump python-keystoneclient version requirement to >= 1:0.2.3. * debian/keystone.postinst: Run pki_setup during configure to intitialize PKI infrastructure for signed tokens (now enabled by default). -- Chuck Short Fri, 22 Mar 2013 08:16:09 -0500 keystone (2013.1.g3-0ubuntu1) raring; urgency=low [ Chuck Short ] * New upstream version. * debian/patches/sql_connection.patch: Rediffed * debian/control: Add python-oslo-config. [ James Page ] * Refreshed patches. * d/keystone.template,po: Removed debconf detritus from packaging. -- Chuck Short Fri, 22 Feb 2013 08:28:35 -0600 keystone (2013.1~g2-0ubuntu1) raring; urgency=low [ James Page ] * Re-enable gating of package build based on successful unit testing: - d/tests/test_overrides.conf: Fixup test configuration to use correct certificate locations. - d/p/fix-ubuntu-tests.patch: Skip tests for older versions of keystoneclient based on checkouts of upstream git repo. - d/rules: Re-enable package build failure on test failure. * d/control: Bump dependencies on python-keystoneclient to >= 1:0.2. * d/control: Update Vcs-Bzr location to point to correct branch. * d/control,d/po/*: Setup package templates for translation. * d/man/*: Corrected spellings in man pages. * d/keystone.upstart: Tweak 'stop on' to be triggered on all appropriate runlevel transitions, use start-stop-daemon to startup keystone daemon. [ Adam Gandelman ] * debian/keystone.manpages: Install sphinx-generated manpages instead of our own outdated and unneeded versions. (LP: #1082050) [ Chuck Short ] * New upstream release. * Remove incomplete/broken dbconfig-common scripts. [ Yolanda Robla Mota ] * d/control: Added python-novaclient dependency * d/patches: refreshed patches -- Yolanda Robla Tue, 22 Jan 2013 12:33:00 +0100 keystone (2013.1~g1-0ubuntu1) raring; urgency=low [ Adam Gandelman ] * debian/tests/test_overrides.conf: Update for Grizzly test suite. * debian/control: Drop python-nova. [ Chuck Short ] * New upstream release. * debian/rules: FTBFS if there is a missing binary. * debian/rules: Temporarily pass the tests since you need to run keystone in order to run the tests. * debian/patches/*: Refrehsed. -- Chuck Short Fri, 23 Nov 2012 09:01:53 -0600 keystone (2013.1~g1~20121101.2629-0ubuntu1) raring; urgency=low * New upstream release. * debian/control: Ensure keystoneclient is upgraded with keystone, require python-keystoneclient >= 1:0.1.3. (LP: #1073273) -- Adam Gandelman Wed, 31 Oct 2012 13:43:11 +0100 keystone (2012.2-0ubuntu1) quantal; urgency=low * New upstream release. -- Chuck Short Thu, 27 Sep 2012 12:22:07 -0500 keystone (2012.2~rc2-0ubuntu1) quantal; urgency=low * New upstream release. -- Chuck Short Wed, 26 Sep 2012 13:15:29 -0500 keystone (2012.2~rc1-0ubuntu1) quantal; urgency=low * New upstream version. * debian/keystone.logrotate: Compress log file when rotated. (LP: #1049309) -- Chuck Short Mon, 17 Sep 2012 09:15:51 -0500 keystone (2012.2~rc1~20120906.2517-0ubuntu2) quantal; urgency=low [ Adam Gandelman ] * Refreshed patches. [ Soren Hansen ] * Update debian/watch to account for symbolically named tarballs and use newer URL. * Fix Launchpad URLs in debian/watch. [ Logan Rosen ] * Fix control file to suggest python-memcache instead of python-memcached (LP: #998991). [ Chuck Short ] * New upstream version. * Dont FTBFS if the testsuite fails. -- Chuck Short Fri, 07 Sep 2012 13:04:01 -0500 keystone (2012.2~f3-0ubuntu1) quantal; urgency=low [ Adam Gandelman ] * debian/{keystone.conf, rules, keytone.install}: Install patched keystone.conf.sample configured for SQL backends to /etc/keystone, no longer maintain our own version in packaging. (LP: #1031012) * debian/patches/sql_connection.patch: Refreshed against current keystone.conf.sample. * debian/rules: Use debian/tests as HOME to avoid test suite FTFBS. [ Sam Morrison ] * debian/keystone.logrotate: Sent output of keystone restart in logrotate to /dev/null. (LP: #1029766) [Chuck Short] * New upstream version. -- Chuck Short Thu, 16 Aug 2012 13:59:29 -0500 keystone (2012.2~f2-0ubuntu1) quantal; urgency=low * New upstream version. -- Chuck Short Fri, 06 Jul 2012 10:37:01 -0400 keystone (2012.2~f2~20120622.2353-0ubuntu1) quantal; urgency=low * New upstream release. -- Chuck Short Fri, 22 Jun 2012 12:27:50 -0400 keystone (2012.2~f2~20120529.2315-0ubuntu2) quantal; urgency=low * debian/keystone.conf: Add a functional default server config. * debian/keystone.install: Fix installation locations, install our default config alongside sample. -- Adam Gandelman Wed, 06 Jun 2012 10:00:14 -0700 keystone (2012.2~f2~20120529.2315-0ubuntu1) quantal; urgency=low * New usptream release. * debian/patches/sql_connection.patch: Refreshed -- Chuck Short Fri, 01 Jun 2012 11:01:01 -0400 keystone (2012.2~f1-0ubuntu1) quantal; urgency=low * New ustpream release. * Prepare for quantal: - debian/patches/fix-ubuntu-tests.patch: Refreshed. - debian/patches/sql_connection.patch: Refreshed. * debian/keystone.install: Install the right configuration files. -- Chuck Short Thu, 24 May 2012 14:04:20 -0400 keystone (2012.1-0ubuntu1) precise; urgency=low * New upstream version. * debian/man/keystone.8: Mention that there is a lack of ssl support. -- Chuck Short Thu, 05 Apr 2012 10:42:24 -0400 keystone (2012.1~rc2-0ubuntu1) precise; urgency=low [Chuck Short] * New upstream version. * debian/keystone.install: install tools/{convert_to_sqlite.sh, sample_data.sh} [Adam Gandelman] * debian/patches/fix-ubuntu-tests.patch: Also skip keystoneclient essex 3 tests, add patch description * debian/keystone.logrotate: Add logrotate config (LP: #962426) -- Chuck Short Wed, 04 Apr 2012 07:49:15 -0400 keystone (2012.1~rc1-0ubuntu1) precise; urgency=low [Chuck Short] * New usptream version. * debian/control: Add python-iso8601 as a depends. * debian/patches/fix-ubuntu-tests.patch: Disable git checkout on some of the tests. * dropped swift as a depends. [Adam Gandelman] * debian/patches/sql_connection.patch: Refresh * debian/logging.conf: Update and enable file logging (LP: #959610) * debian/keystone.prerm: Only attempt to cleanup database if it was configured during installation. (LP: #948719) * debian/rules: Fix doc builds + clean (LP: #956019) * debian/control: Add python-{nova, swift} as Build-Depends, required for doc building * debian/rules, debian/tests/test_overrides.conf: Setup a proper environment for unit testing -- Chuck Short Mon, 26 Mar 2012 13:41:45 -0400 keystone (2012.1~rc1~20120316.2145-0ubuntu1) precise; urgency=low * New upstream release. -- Adam Gandelman Fri, 16 Mar 2012 11:19:40 -0700 keystone (2012.1~rc1~20120308.2103-0ubuntu1) precise; urgency=low [ Adam Gandleman ] * debian/patches/keystone-auth.patch: Drop, applied upstream at commit 29337e66. * debian/patches/sql_connection.patch: Refresh [ Chuck Short ] * New upstream release. * debian/patches/sql_connection.patch: Refreshed. -- Chuck Short Fri, 09 Mar 2012 12:26:12 -0500 keystone (2012.1~e4-0ubuntu2) precise; urgency=low * debian/keystone.preinst: Create group before creating user (LP: #945299) -- Adam Gandelman Fri, 02 Mar 2012 17:38:00 -0800 keystone (2012.1~e4-0ubuntu1) precise; urgency=low [ Chuck Short ] * New upstream release. * debian/keystone.upstart: Update for ksl. * debian/control: Add python-keystoneclient as dependency. * debian/control: Fix typo. * debian/keystone.postinst: Update due to redux branch change. * debian/keystone.templates, debian/keystone.preinst, debian/kestone.postinst, debian/keystone.config, debian/README.Debian: Make keystone installation less interactive. (LP: #931236) * debian/keystone.postinst: Don't create users or run a database sync since its not working correctly. * debian/control: Dropped python-coverage and python-nosexcover. * debian/changelog: Fixed changelog. * debian/keystone.templates: Set it to false. * debian/control: Fix lintian warnings. * debian/patches/keystone-auth.patch: Backport auth token improvements, this can be dropped in the next snapshot. * debian/control: Add python-memcache as a build dependency. * debian/keystone-doc.docs: Fix keystone doc builds. * debian/rules: Temporarily disable doc install. * debian/control: Add python-ldap and python-lxml. [ Joseph Heck ] * debian/control: Dropped python-cli. [ Adam Gandelman ] * debian/control: Alphabetize python depends * debian/control: Add python-{eventlet, greenlet, passlib} to keystone depends * debian/control: Add python-lxml to python-keystone Depends * Drop 0001-Fix-keystone-all-failure-to-start.patch * debian/logging.conf: Temporarily use old logging.conf until upstream ships something usable * debain/patches/sql_connection.patch: Switch backends to use SQL backends * debian/keystone.preinst: Create directories * debian/keystone.postinst: Remove create_users stuff, add call to 'db_sync' on install [ Dave Walker ] * debian/patches/sql_connection.patch: Refreshed and reintroduced DEP-3 headers. * debian/control: Added Vcs-Bzr field. [ Andrew Glen-Young ] * debian/keystone.preinst: Set the primary group to keystone. (LP: #941905) -- Chuck Short Fri, 02 Mar 2012 09:55:24 -0500 keystone (2012.1~e4~20120203.1574-0ubuntu2) precise; urgency=low [Chuck Short] * debian/control: Moved python-prettytable and added python-dateutil as a build dependency. [Julien Danjou] * Add dbconfig support. (LP: #930139) * Update db sync to sync_database in postinst. (LP: #930444) -- Chuck Short Mon, 13 Feb 2012 09:14:12 -0500 keystone (2012.1~e4~20120203.1574-0ubuntu1) precise; urgency=low * New upstream release. -- Chuck Short Fri, 03 Feb 2012 16:35:51 -0500 keystone (2012.1~e3-0ubuntu1) UNRELEASED; urgency=low * Fix bad manpage formatting causing missing spaces (LP: #907206) * Adding python-prettytable to dependency. (LP: #922954) -- Daniel Polehn Sat, 28 Jan 2012 20:17:33 -0800 keystone (2012.1~e3-0ubuntu1) precise; urgency=low * New upstream release. * Dropped debian/patches/temp_fix_keystone_manage.patch: No longer needed. -- Chuck Short Thu, 26 Jan 2012 10:53:46 -0500 keystone (2012.1~e3~20120113.1511-0ubuntu1) precise; urgency=low [Chuck Short] * New upstream version. * debian/control: Add python-migrate as a build depenedency. (LP: #909941) * debian/keystone.dirs: Add cache directory for PTYHON_EGGS * debian/control: Add ssl-cert for ssl certificates. * debian/patches/keystone-ssl.patch: Point ssl config to the snakeoil certificates. * debian/control: Add python-nose as a build dependency. [Adam Gandleman] * debian/python-keystone.postinst: Also install *.egg-info (LP: #907518) * debian/patches/temp_fix_keyston_manage.patch: Allow keystone to work with current snapshot. -- Chuck Short Fri, 13 Jan 2012 10:09:46 +0100 keystone (2012.1~e2-0ubuntu1) precise; urgency=low * New upstream version. * debian/control: Clean up dependencies. * debian/pydist-overrides: Dont install python-coverage. * debian/python-keystone.install: Don't ship examples in python packaging. (Debian Bug: #649907) * debian/man/*: Add manpages. -- Chuck Short Fri, 16 Dec 2011 15:38:05 -0500 keystone (2012.1~e2~20111209.1405-0ubuntu1) precise; urgency=low * New upstream release. -- Chuck Short Fri, 09 Dec 2011 16:27:35 -0500 keystone (2012.1~e2~20111202.1379-0ubuntu1) precise; urgency=low * New upstream release. * debian/control: + Fix dependencies. * keystone.postinst: + Fix bashism. + Remove keystone-manage db sync. -- Chuck Short Fri, 02 Dec 2011 09:40:35 -0500 keystone (2012.1~e2~20111125.1340-0ubuntu1) precise; urgency=low * New upstream release. * debian/control: Dropped dependency on python-pysqlite. * debian/rules: Dont fail when building docs. * debian/rules: Fix doc build. -- Chuck Short Fri, 25 Nov 2011 11:19:34 -0500 keystone (2012.1~e2~20111110.1301-0ubuntu2) precise; urgency=low * debian/patches/ftbfs_guard_main_call.patch: - Fix FTBFS by guarding a main() call to only run when the module is run as __main__, not when imported during documentation generation. -- Michael Terry Mon, 21 Nov 2011 16:43:45 -0500 keystone (2012.1~e2~20111118.1330-0ubuntu1) precise; urgency=low * New upstream release. -- Chuck Short Fri, 18 Nov 2011 13:50:20 -0500 keystone (2012.1~e2~20111110.1301-0ubuntu1) precise; urgency=low * New upstream release. * debian/control: + Added pep8 for tests. + Updated run time dependencies. * debian/keystone.postinst: + Add keystone group. + Setup permissions a bit better. + Setup keystone db. -- Chuck Short Fri, 11 Nov 2011 11:51:27 -0500 keystone (1.0~d4~20111020.1244-0ubuntu1) precise; urgency=low * New upstream release. * Dropped: + add-missing-extension-files.patch + foreign_key.patch * dh_python2 transition. * Update dependencies. * Dont fail if tests fail. -- Chuck Short Thu, 27 Oct 2011 11:06:53 -0400 keystone (1.0~d4~20110909.1108-0ubuntu4) precise; urgency=low * debian/patches/sql_connection.patch: Correct keystone.db path, as identified by Atul Jha. (LP: #878282) -- Dave Walker (Daviey) Fri, 21 Oct 2011 13:17:51 +0100 keystone (1.0~d4~20110909.1108-0ubuntu3) oneiric; urgency=low [Dustin Kirkland] * debian/copyright: - fix copyright file, replace s/glance/keystone/ [Juan Negron] * Added debian/patches/foreign_key.patch: Fixed bug which attempted to to obtain a service_id by passing an Integer rather than a String to the Column function in models.py. (LP: #861682) [Brian Thomason] * Removed "|| true" from test execution in debian/rules as it was masking a failure. After investigating the failure further, it was found that two files were missing from the contrib/extensions/service/raxkey dir that were a part of trunk at the time. (LP: #861813) - added keystone/contrib/extensions/service/raxkey/extension.xml - added keystone/contrib/extensions/service/raxkey/extension.json -- Brian Thomason Wed, 28 Sep 2011 15:30:19 -0400 keystone (1.0~d4~20110909.1108-0ubuntu2) oneiric; urgency=low [Chuck Short] * Install configuration files. * debian/patches/sql_connection.patch: Specify a path for the sqlite database. * debian/rules: Add get-origs-source. [Juan L. Negron] * debian/control, debian/keystone.install: + Update dependencies for python-keystone. + Reanamed logging config file to match upstream. (LP: #860778) [Monty Taylor] * Added a conditional on dh_python2 so that the package works on lucid. -- Chuck Short Tue, 27 Sep 2011 15:36:35 -0400 keystone (1.0~d4~20110909.1108-0ubuntu1) UNRELEASED; urgency=low * debian/rules: + Add get-orig-source. * debian/keystone.install: + Ship configuration files. + debian/copyright: + Change glance to keystone. -- Chuck Short Thu, 27 Oct 2011 10:02:39 -0400 keystone (1.0~d4~20110909.1108-0ubuntu2) oneiric; urgency=low * Added a conditional on dh_python2 so that the package works on lucid. * Added python-passlib build-depend. (LP: #862576) -- Monty Taylor Thu, 29 Sep 2011 11:56:36 -0700 keystone (1.0~d4~20110909.1108-0ubuntu1) oneiric; urgency=low [Chuck Short] * New upstream release. * debian/control: + Bump standards to 3.9.2. + Fix lintian warnings. + Update maintainer. * debian/rules: Dont fail to build if tests fail. [Dan Prince] * Fix debian/rules file so it works with nodoc. -- Chuck Short Fri, 09 Sep 2011 16:25:30 -0400 keystone (1.0~d4~20110823.1078-0ubuntu0) UNRELEASED; urgency=low * Add python-mox as a build depend. -- Monty Taylor Fri, 09 Sep 2011 11:00:27 -0700 keystone (1.0~d4~20110819.1045-0ubuntu1) UNRELEASED; urgency=low * New upstream release. * Removed fix_tests patch (don't need it any more) * Fixed debian/watch file. * Use root level run_tests now. * We need a special version of webob. * Added adduser depend. * Added python-sphinx build depend. -- Monty Taylor Wed, 24 Aug 2011 09:05:05 -0700 keystone (1.0~20110713.1-0ubuntu1~ppa1) UNRELEASED; urgency=low * Add keystone-docs package. -- Soren Hansen Thu, 14 Jul 2011 10:47:13 +0200 keystone (1.0~20110711.1-0ubuntu1~ppa1) oneiric; urgency=low * Initial upload. -- Soren Hansen Wed, 25 May 2011 15:57:15 +0200 debian/keystone-doc.docs0000664000000000000000000000001712416007547012452 0ustar doc/build/html debian/keystone-doc.doc-base0000664000000000000000000000037612416007547013207 0ustar Document: keystone-doc Title: Keystone Documentation Author: OpenStack Abstract: Sphinx documentation for Keystone Section: Network/File Transfer Format: HTML Index: /usr/share/doc/keystone-doc/html/index.html Files: /usr/share/doc/keystone-doc/html/* debian/source/0000775000000000000000000000000012416007547010476 5ustar debian/source/format0000775000000000000000000000001412416007547011707 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212416007547010374 0ustar 7 debian/keystone.manpages0000664000000000000000000000002012416007547012544 0ustar doc/build/man/* debian/keystone.upstart0000664000000000000000000000043412416007547012464 0ustar description "Keystone API server" author "Soren Hansen " start on runlevel [2345] stop on runlevel [!2345] respawn exec start-stop-daemon --start --chuid keystone \ --chdir /var/lib/keystone --name keystone \ --exec /usr/bin/keystone-all debian/python-keystone.install0000664000000000000000000000012012416007547013737 0ustar usr/lib/python*/dist-packages/*.egg-info usr/lib/python*/dist-packages/keystone debian/patches/0000775000000000000000000000000012416007547010625 5ustar debian/patches/add-version-info.patch0000664000000000000000000000254212416007547015015 0ustar Description: Add version info for Ubuntu. Author: Yolanda Robla Forwarded: Not-needed --- a/etc/keystone.conf.sample +++ b/etc/keystone.conf.sample @@ -1335,3 +1335,5 @@ #driver=keystone.trust.backends.sql.Trust +[extra_headers] +Distribution = Ubuntu --- a/keystone/common/config.py +++ b/keystone/common/config.py @@ -12,6 +12,8 @@ # License for the specific language governing permissions and limitations # under the License. +import platform + from oslo.config import cfg @@ -651,6 +653,8 @@ 'this list. It will give users with permission to ' 'create endpoints the ability to see those values ' 'in your configuration file.')], + 'extra_headers': [ + cfg.StrOpt('Distribution', default=platform.dist()[0])], 'kvs': [ cfg.ListOpt('backends', default=[], help='Extra dogpile.cache backend modules to register ' --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -588,6 +588,11 @@ headers = headers or [] headers.append(('Vary', 'X-Auth-Token')) + # extra headers + for key, value in CONF.extra_headers.items(): + if value != 'None': + headers.append(('X-'+key, value)) + if body is None: body = '' status = status or (204, 'No Content') debian/patches/sql_connection.patch0000664000000000000000000000073312416007547014667 0ustar diff --git a/etc/keystone.conf.sample b/etc/keystone.conf.sample index 66a7c44..22deb44 100644 --- a/etc/keystone.conf.sample +++ b/etc/keystone.conf.sample @@ -611,6 +611,7 @@ # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection= +connection = sqlite:////var/lib/keystone/keystone.db # The SQL mode to be used for MySQL sessions. This option, # including the default, overrides any server-set SQL mode. To debian/patches/fix-requirements.patch0000664000000000000000000000051512416007547015156 0ustar Description: Set min version of six. Author: Corey Bryant Forwarded: Not needed. --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ PasteDeploy>=1.5.0 Paste Routes>=1.12.3,!=2.0 -six>=1.6.0 +six>=1.5.2 SQLAlchemy>=0.7.8,!=0.9.5,<=0.9.99 sqlalchemy-migrate>=0.8.2,!=0.8.4,!=0.9.2 passlib debian/patches/series0000775000000000000000000000016612416007547012050 0ustar fix-requirements.patch fix-ubuntu-tests.patch sql_connection.patch add-version-info.patch ubuntu-test-overrides.patch debian/patches/ubuntu-test-overrides.patch0000664000000000000000000000147012416007547016147 0ustar From af7abb1c79398ca9b2eaf347a589a1d3dbabb35b Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Tue, 25 Mar 2014 09:03:52 -0400 Subject: [PATCH] patch Signed-off-by: Chuck Short --- keystone/tests/config_files/deprecated_override.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keystone/tests/config_files/deprecated_override.conf b/keystone/tests/config_files/deprecated_override.conf index 1d1c926..7dd9a4c 100644 --- a/keystone/tests/config_files/deprecated_override.conf +++ b/keystone/tests/config_files/deprecated_override.conf @@ -13,3 +13,9 @@ idle_timeout = 54321 connection = sqlite://new idle_timeout = 65432 + +[policy] +driver = keystone.policy.backends.rules.Policy + +[ec2] +driver = keystone.contrib.ec2.backends.kvs.Ec2 -- 1.9.1 debian/patches/fix-ubuntu-tests.patch0000664000000000000000000000303112416007547015111 0ustar diff --git a/keystone/tests/test_keystoneclient.py b/keystone/tests/test_keystoneclient.py index aaa5d9f..a9822fb 100644 --- a/keystone/tests/test_keystoneclient.py +++ b/keystone/tests/test_keystoneclient.py @@ -62,12 +62,12 @@ class CompatTestCase(tests.NoModule, tests.TestCase): self.addCleanup(self.cleanup_instance('public_server', 'admin_server')) - if isinstance(self.checkout_info, str): - revdir = self.checkout_info - else: - revdir = tests.checkout_vendor(*self.checkout_info) - self.add_path(revdir) - self.clear_module('keystoneclient') + #if isinstance(self.checkout_info, str): + # revdir = self.checkout_info + #else: + # revdir = tests.checkout_vendor(*self.checkout_info) + #self.add_path(revdir) + #self.clear_module('keystoneclient') def _public_url(self): public_port = self.public_server.socket_info['socket'][1] diff --git a/keystone/tests/test_token_provider.py b/keystone/tests/test_token_provider.py index 926c09d..dfc8be0 100644 --- a/keystone/tests/test_token_provider.py +++ b/keystone/tests/test_token_provider.py @@ -812,6 +812,7 @@ class TestTokenProvider(tests.TestCase): 'my.package.MyProvider') def test_provider_token_expiration_validation(self): + self.skipTest('Skipped by Ubuntu') self.assertRaises(exception.TokenNotFound, self.token_provider_api._is_valid_token, SAMPLE_V2_TOKEN_EXPIRED) debian/keystone.install0000664000000000000000000000037012416007547012427 0ustar etc/default_catalog.templates etc/keystone etc/keystone-paste.ini etc/keystone etc/keystone.conf.sample usr/share/keystone etc/policy.json etc/keystone tools/convert_to_sqlite.sh usr/share/keystone tools/sample_data.sh usr/share/keystone usr/bin/* debian/copyright0000664000000000000000000000205512416007547011133 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: keystone Source: https://code.launchpad.net/keystone Files: * Copyright: 2010 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. Copyright: 2010-2011 OpenStack LLC Copyright: Others (See individual files for more details) License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian-based systems the full text of the Apache version 2.0 license can be found in `/usr/share/common-licenses/Apache-2.0'. debian/watch0000664000000000000000000000017712416007547010234 0ustar version=3 opts="uversionmangle=s/\.([a-zA-Z])/~$1/;s/%7E/~/" \ http://tarballs.openstack.org/keystone keystone-(.*)\.tar\.gz debian/README.Debian0000664000000000000000000000036212416007547011240 0ustar A note about database configuration ---------------------------------- Keystone by default uses sqlite3 as a database. If you want to use something other than sqlite3, please run the following command: sudo dpkg-reconfigure -plow keystone debian/keystone.preinst0000664000000000000000000000250012416007547012442 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' case "$1" in install|upgrade) # create the keystone group if ! getent group keystone > /dev/null 2>&1 then addgroup --system keystone >/dev/null || true fi # create the keystone user to avoid running keystone as root if ! getent passwd keystone > /dev/null 2>&1 then adduser --quiet \ --system \ --home /var/lib/keystone \ --no-create-home \ --ingroup keystone \ --shell /bin/false \ keystone || true fi if [ "$(id -gn keystone)" = "nogroup" ] then usermod -g keystone keystone fi # create appropriate directories mkdir -p /var/lib/keystone/ /etc/keystone/ /var/log/keystone/ # change the permissions on key directories chown keystone:keystone -R /var/lib/keystone/ /etc/keystone/ /var/log/keystone/ chmod 0700 /var/lib/keystone/ /var/log/keystone/ /etc/keystone/ ;; configure) ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/keystone.postrm0000664000000000000000000000013612416007547012305 0ustar #!/bin/sh set -e case "$1" in purge) rm -rf /var/log/keystone esac #DEBHELPER# debian/clean0000664000000000000000000000006712416007547010206 0ustar keystone.db keystone.db keystone.log keystone.token.db debian/pydist-overrides0000664000000000000000000000003312416007547012431 0ustar coverage nosexcover oauth2 debian/keystone.dirs0000664000000000000000000000011212416007547011714 0ustar /var/lib/keystone /var/lib/keystone/cache /var/log/keystone /etc/keystone debian/tests/0000775000000000000000000000000012416007547010340 5ustar debian/tests/python-keystone0000775000000000000000000000043712416007547013452 0ustar #!/bin/bash #------------------------- # Testing client utilities #------------------------- set -e result=$(python `dirname $0`/test_import_keystone.py 2>&1) if [ "$result" ]; then echo "ERROR: PYTHON-KEYSTONE MODULE CANNOT BE IMPORTED" exit 1 else echo "OK" exit 0 fi debian/tests/control0000664000000000000000000000014312416007547011741 0ustar Tests: python-keystone keystone-daemon Depends: python-keystone, keystone Restrictions: needs-root debian/tests/keystone-paste.ini0000664000000000000000000000512312416007547014015 0ustar # Keystone PasteDeploy configuration file. [filter:debug] paste.filter_factory = keystone.common.wsgi:Debug.factory [filter:token_auth] paste.filter_factory = keystone.middleware:TokenAuthMiddleware.factory [filter:admin_token_auth] paste.filter_factory = keystone.middleware:AdminTokenAuthMiddleware.factory [filter:xml_body] paste.filter_factory = keystone.middleware:XmlBodyMiddleware.factory [filter:json_body] paste.filter_factory = keystone.middleware:JsonBodyMiddleware.factory [filter:user_crud_extension] paste.filter_factory = keystone.contrib.user_crud:CrudExtension.factory [filter:crud_extension] paste.filter_factory = keystone.contrib.admin_crud:CrudExtension.factory [filter:ec2_extension] paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory [filter:s3_extension] paste.filter_factory = keystone.contrib.s3:S3Extension.factory [filter:url_normalize] paste.filter_factory = keystone.middleware:NormalizingFilter.factory [filter:sizelimit] paste.filter_factory = keystone.middleware:RequestBodySizeLimiter.factory [filter:stats_monitoring] paste.filter_factory = keystone.contrib.stats:StatsMiddleware.factory [filter:stats_reporting] paste.filter_factory = keystone.contrib.stats:StatsExtension.factory [filter:access_log] paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory [app:public_service] paste.app_factory = keystone.service:public_app_factory [app:service_v3] paste.app_factory = keystone.service:v3_app_factory [app:admin_service] paste.app_factory = keystone.service:admin_app_factory [pipeline:public_api] pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension user_crud_extension public_service [pipeline:admin_api] pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension s3_extension crud_extension admin_service [pipeline:api_v3] pipeline = access_log sizelimit url_normalize token_auth admin_token_auth xml_body json_body ec2_extension s3_extension service_v3 [app:public_version_service] paste.app_factory = keystone.service:public_version_app_factory [app:admin_version_service] paste.app_factory = keystone.service:admin_version_app_factory [pipeline:public_version_api] pipeline = access_log sizelimit url_normalize xml_body public_version_service [pipeline:admin_version_api] pipeline = access_log sizelimit url_normalize xml_body admin_version_service [composite:main] use = egg:Paste#urlmap /v2.0 = public_api /v3 = api_v3 / = public_version_api [composite:admin] use = egg:Paste#urlmap /v2.0 = admin_api /v3 = api_v3 / = admin_version_api debian/tests/keystone-daemon0000775000000000000000000000056412416007547013375 0ustar #!/bin/bash #------------------------ # Testing keystone-daemon #------------------------ set -e # first copy the keystone-paste.ini file cp `dirname $0`/keystone-paste.ini /etc/keystone/ DAEMONS=('keystone-all') service keystone restart > /dev/null if pidof -x keystone-all > /dev/null; then echo "OK" else echo "ERROR: ${daemon} IS NOT RUNNING" exit 1 fi debian/tests/test_import_keystone.py0000664000000000000000000000012312416007547015200 0ustar try: import keystone except ImportError, e: print "ERROR IMPORTING MODULE" debian/rules0000775000000000000000000000323312416007547010257 0ustar #!/usr/bin/make -f # Verbose mode #export DH_VERBOSE=1 # auth_token middleware now requires access to HOME, otherwise # test suite cause FTBFS. See (LP: #1031022) export HOME="$(CURDIR)/debian/tests/" %: dh $@ --with python2 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: patch -p1 -R < debian/patches/sql_connection.patch mkdir -p $(CURDIR)/keystone/tests/tmp ./run_tests.sh -N -P patch -p1 < debian/patches/sql_connection.patch endif override_dh_auto_build: dh_auto_build ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) mkdir -p $(CURDIR)/doc/build/html mkdir -p $(CURDIR)/doc/build/man sphinx-build -b man doc/source doc/build/man sphinx-build -b html doc/source doc/build/html endif override_dh_install: dh_install --fix-missing rm -rf debian/python-keystone/usr/lib/python*/*/doc rm -rf debian/python-keystone/usr/lib/python*/*/tools rm -rf debian/python-keystone/usr/lib/python*/*/examples install -D -m 0600 $(CURDIR)/debian/logging.conf $(CURDIR)/debian/keystone/etc/keystone/logging.conf install -D -m 0600 $(CURDIR)/etc/keystone.conf.sample $(CURDIR)/debian/keystone/etc/keystone/keystone.conf override_dh_clean: rm -rf $(CURDIR)/build $(CURDIR)/keystone.egg-info $(CURDIR)/.cache rm -rf $(CURDIR)/keystone/tests/tmp rm -rf $(CURDIR)/.testrepository rm -rf $(CURDIR)/debian/tmp rm -rf $(CURDIR)/doc/build # NOTE(adam_g) The following stuff is built in /doc/source. Safe for now, but # should be fixed upstream or updated here post-essex rm -rf $(CURDIR)/doc/source/keystone*.rst rm -rf $(CURDIR)/doc/source/modules.rst dh_clean get-orig-source: uscan --verbose --force-download --rename --destdir=../build-area