summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Filter token data out of catch_errors middlewaremitaka-eol3.8.1stable/mitakaJamie Lennox2017-01-262-1/+30
| | | | | | | | | If an exception is caught by the catch_errors middleware the entire request is dumped into the log including sensitive information like tokens. Filter that information before outputting the failed request. Closes-Bug: #1628031 Change-Id: I2563403993513c37751576223275350cac2e0937
* Add Constraints supportTony Breeds2017-01-262-1/+36
| | | | | | | | | | | | | Adding constraints support to libraries is slightly more complex than services as the libraries themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove oslo.middleware. Change-Id: I069e64daf9558147fdab947341411b58770d3506 (cherry picked from commit fa815cfb2fe4ce4f5d99f2ef1c8780f8589368f6)
* Updated from global requirementsOpenStack Proposal Bot2016-04-291-1/+1
| | | | Change-Id: Ic170ca44dba00778e9047abfc5b617ba08451ab3
* Updated from global requirementsOpenStack Proposal Bot2016-04-181-1/+1
| | | | Change-Id: Ia051486aa79775aaac8ba35ffe624a2ae3f9829c
* Updated from global requirements3.8.0OpenStack Proposal Bot2016-03-241-2/+2
| | | | Change-Id: Ie7f689ce31857ff98273cb976d6ee790e9fb6313
* Update .gitreview for stable/mitakaDoug Hellmann2016-03-091-1/+2
| | | | Change-Id: I01dc55e5a27571b6fe3f1f3c28f335a09863e277
* work around doc build error3.7.0Doug Hellmann2016-02-244-1/+19
| | | | | | | | | | | This patch addresses a documentation build issue caused by the oslo.config sphinx integration. In order to unblock this repo, we can work around the issue here while fixing it in oslo.config, then revert this change. Change-Id: Ie4a29e8e8d44d00354ea0dd8420bac5b8812a717 Related-Bug: #1549106 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Update translation setup3.6.0Andreas Jaeger2016-01-2911-7/+7
| | | | | | | | | | | | | | | Follow new infra setup for translations, see spec http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html for full details. This basically renames oslo.middleware/locale/oslo.middleware.pot to oslo_middleware/locale/oslo_middleware.pot. For this we need to update setup.cfg. Update also domain name in i18n.py. Change-Id: I5d9c146d6bc9392930c93414c04dda89c16044c1
* Updated from global requirementsOpenStack Proposal Bot2016-01-261-1/+1
| | | | Change-Id: I34acf045bbd892a2ea1675180eb72c0b03122171
* Updated from global requirementsOpenStack Proposal Bot2016-01-231-2/+2
| | | | Change-Id: I49e8e31f258f407a1a207345dfd6c7e4a2d7570b
* Updated from global requirementsOpenStack Proposal Bot2016-01-181-1/+1
| | | | Change-Id: I724acbab23e229923814ca3ae6307e5963682c57
* Merge "Remove ordereddict from requirements.txt"Jenkins2016-01-181-1/+0
|\
| * Remove ordereddict from requirements.txtThomas Goirand2016-01-161-1/+0
| | | | | | | | | | | | | | | | This is a remaining of the Python 2.6 compat, and this is causing some issues in distros who have to patch it out. So this patch removes ordereddict from requirements.txt Change-Id: I4e8498b71a65e2b235598916ce07349a33086deb
* | Merge "Imported Translations from Zanata"Jenkins2016-01-187-52/+62
|\ \
| * | Imported Translations from ZanataOpenStack Proposal Bot2016-01-177-52/+62
| |/ | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I86011dca36609b1ba8d99f3c6cb20ff8d5873fe5
* | Merge "test: pass enforce_type=True when using CONF.set_override"Jenkins2016-01-181-1/+1
|\ \ | |/ |/|
| * test: pass enforce_type=True when using CONF.set_overrideZhihai Song2016-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CONF.set_override is used to change config option's value with designated value in unit test, but never check if the designated vaule is valid. Each config option has specifications for type and value. In production code, oslo.conf can ensure user's input is valid, but in unit test, test methods can pass if we use method CONF.set_override without parameter enforce_type=True even we pass wrong type or wrong value to config option. This commit makes sure calling method CONF.set_override with enforce_type=True in the unit test. Note: We can't set enforce_type=True by default in oslo.config now, it may break all project's unit test. We can switch enforce_type=True by default when all project fix violations like this commit. Change-Id: Id7170d565a99c45247d09142672ca6b32edd4012
* | Updated from global requirementsOpenStack Proposal Bot2016-01-162-10/+10
| | | | | | | | Change-Id: Ife0027f8dfdf48111176c1c40806616026ee1890
* | Remove old references to namespace packages3.5.0Davanum Srinivas2016-01-111-4/+0
|/ | | | | | | | oslo and oslo.middleware packages do not exist any more Hat Tip to @clarkb Change-Id: Ia0a80dc9c08bfe72416d876da9ee9de70defe6d4
* Updated from global requirementsOpenStack Proposal Bot2016-01-061-1/+1
| | | | Change-Id: I6da3abf45bf2705fdf1e4d71ada39e7107dbe391
* Merge "Python 3 deprecated the logger.warn method in favor of warning"Jenkins2016-01-040-0/+0
|\
| * Python 3 deprecated the logger.warn method in favor of warningChangBo Guo(gcb)2015-12-281-2/+2
| | | | | | | | | | | | | | According to https://docs.python.org/3/library/logging.html#logging.warning, We prefer to use warning to avoid DeprecationWarning. Change-Id: I5b318d94c995ed488fd1110cc3bfdef7c8d7a272
* | Change LOG.warn to LOG.warningzhangguoqing2016-01-041-2/+2
| | | | | | | | | | | | | | | | | | Python 3 deprecated the logger.warn method, see: https://docs.python.org/3/library/logging.html#logging.warning so we prefer to use warning to avoid DeprecationWarning. Change-Id: I10460a02cec125fd8cd34f78e57746b7f55bb172 Closes-Bug: #1530742
* | Fix the url in the CONTRIBUTING.rstZhihai Song2015-12-281-1/+1
|/ | | | | | | Replace the https://bugs.launchpad.net/oslo with https://bugs.launchpad.net/oslo.middleware Change-Id: I792ceb5e248fb562133fa94d67698314351dd7e3
* assertIsNone(val) instead of assertEqual(None,val)Javeme2015-12-211-1/+1
| | | | | | use assertIsNone(val) instead of assertEqual(None, val). Change-Id: I8cb1e27d06178f37fc4a6f91892bf3fc78599594
* Updated from global requirements3.4.0OpenStack Proposal Bot2015-12-151-1/+1
| | | | Change-Id: I8dd7d4f89bfdac909a71c03a41539e984e8e07c9
* Merge "Removes MANIFEST.in as it is not needed explicitely by PBR"Jenkins2015-12-141-9/+0
|\
| * Removes MANIFEST.in as it is not needed explicitely by PBRsonu.kumar2015-12-101-9/+0
| | | | | | | | | | | | | | | | This patch removes `MANIFEST.in` file as pbr generates a sensible manifest from git files and some standard files and it removes the need for an explicit `MANIFEST.in` file. Change-Id: I6b2852b1683a5cf466b2bb1fd1c97aa033c3f3b2
* | [fix-compat] More definitions for oslo.middleware3.3.0Davanum Srinivas2015-12-121-1/+11
| | | | | | | | | | | | | | | | | | Please see I04739bc3987786b4bc1fefc70fabaa69b3de52b4 for context. Adding the modules is not enough. We need to expose additional classes in the __init__.py for oslo.middleware package for grenade to work properly Change-Id: Ib19bcc47909621260902be31eb14e8240155c7d0
* | Updated from global requirementsOpenStack Proposal Bot2015-12-111-1/+1
| | | | | | | | Change-Id: I4ddb91d4659d045ad5c5ea1b0de95ca09056a53c
* | Re-Add oslo.middleware namespace for backward compat3.2.0Davanum Srinivas (dims)2015-12-103-0/+59
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Short Story: If we don't do this then we have to drop, assert:support-upgrade from nova (Really Really Bad!) Longer Story: We need to support kilo paste-ini until liberty-eol per policies already in place. To do that an alternative would have been to cap global-requirements, but that got ruled out, please see work and reasons here: I5731b0278e266699fe716733b6dd4f7238a35586 There's also another new spec openstack-specs that is gathering a lot of positive votes regarding backward compat: I72e4e9cfa0539f6b326a0296c065fa3cb754f8ae Note that this is not a straight revert of: I1479f37f500a358cdf7ad416f0257288b65c9245 As i just want to drop the tests and keep the files to a minimum. The grenade job is enough to test the older scenario (which was failing) which we need to support. Change-Id: I04739bc3987786b4bc1fefc70fabaa69b3de52b4 Closes-Bug: 1524404
* Support Unicode request_id on Python 33.1.0Victor Stinner2015-11-271-2/+4
| | | | | | | | The oslo.context change If48ee7f4d1c113f1f26b3b1698c6b055807b950f will change request_id type on Python 3 from bytes to str. This change prepares Neutron for this change. Change-Id: I872c268ef5f17dc2c1fe0ce8aa7e8af4ebc1d757
* Drop python 2.6 supportChangBo Guo(gcb)2015-11-241-7/+2
| | | | Change-Id: Id5de889fb3aaa3905400dab8cc03c3240ca67a83
* Move cors allowed_origin check into add_origin3.0.0Dan Prince2015-11-212-21/+31
| | | | | | | | | | | | | | | This fixes an issue caused by c4957606cb290a639a4a02fbf648044242c5c207 where the add_origin method would fail if allowed_origin was set to None. This could occur (even if oslo_config_project was also set) if the projects config file contained its own [cors] section anyway. By moving the 'if allowed_origin:' check into add_origin we ensure the function handles the default value if it ever gets called. Change-Id: I643e7a50e62564741fda784846bbdf3eb2bcc715 Closes-bug: #1518112
* Merge "Backward compat for allowed_origin"Jenkins2015-11-211-0/+7
|\
| * Backward compat for allowed_originDavanum Srinivas2015-11-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | In Ie2e57b76717604f701daa16ebf8ffa8c06835e3c, we switched from StrOpt to ListOpt for allowed_origin configuration option. For example ironic uses set_override to set the value to a string in test cases. We should allow the older behavior for some time to allow ironic test case TestCORSMiddleware to switch over. Change-Id: Ifac325871d89d9e85c6e74c05ba6e004aeb741b9
* | Merge "Updated from global requirements"Jenkins2015-11-212-2/+2
|\ \ | |/ |/|
| * Updated from global requirementsOpenStack Proposal Bot2015-11-192-2/+2
| | | | | | | | Change-Id: I181a596f4a8e6d70f835b05c90479aa3d2a8f373
* | Merge "Allow health check results to provide there own details"Jenkins2015-11-203-9/+40
|\ \ | |/ |/|
| * Allow health check results to provide there own detailsJoshua Harlow2015-09-293-9/+40
| | | | | | | | | | | | | | | | | | When in detailed mode, show the provided details in a nicely formatted table (or json) so that the user of the healthcheck middleware can gain more insight into the result that was produced. Change-Id: I2fc1f7588ee628990d78b15ad337bd0eebbe8fb3
* | Merge "remove bad entry point test logic"Jenkins2015-11-191-9/+0
|\ \
| * | remove bad entry point test logicDoug Hellmann2015-11-181-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The test being removed verifies that stevedore and pkg_resources work as expected, and enforce an import scheme through the getattr calls that should be left up to the plugin definition and not hard-coded into the tests. Change-Id: I7ccc0a624e3822de1ea6864f49a254c80a35ae53
* | | Updated from global requirementsOpenStack Proposal Bot2015-11-181-1/+1
| | | | | | | | | | | | Change-Id: I9ae064d39f954a305380c25210eb2549c6d44eae
* | | Merge "Switched StrOpt to ListOpt in CORS allowed_origins"Jenkins2015-11-173-40/+83
|\ \ \
| * | | Switched StrOpt to ListOpt in CORS allowed_originsMichael Krotscheck2015-11-163-40/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch switches the 'allowed_origin' CORS configuration option from a single string to an array of strings. This will let you configure multiple domains simultaneously with the same options, without having to add additional configuration blocks. By doing this, pastedeploy users will no longer have to configure mulitple filters if they wish to grant access to more than one domain. Change-Id: Ie2e57b76717604f701daa16ebf8ffa8c06835e3c
* | | | Merge "Enable latent CORS configuration via pastedeploy"Jenkins2015-11-173-1/+43
|\ \ \ \ | |/ / /
| * | | Enable latent CORS configuration via pastedeployMichael Krotscheck2015-11-163-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case where paste deployment and oslo are used in concert, it is not possible for an application to easily ship required configuraton properties, such as custom headers, with their release artifact. This patch adds parameters which expose set_latent to paste.ini users, permitting the above. Tests and documentation have been updated. Change-Id: Id98002f6813055efe698f0b96a3e0d408c58ed7c
* | | | Merge "Remove python 2.6 classifier"Jenkins2015-11-171-1/+0
|\ \ \ \
| * | | | Remove python 2.6 classifierChangBo Guo(gcb)2015-11-171-1/+0
| |/ / / | | | | | | | | | | | | Change-Id: I9fbc3b649f93e320da886fe9e9688aba8d77752d
* | | | Updated from global requirementsOpenStack Proposal Bot2015-11-171-1/+1
|/ / / | | | | | | | | | Change-Id: Ifb40187fb2bd8df8e7a394f26a424cdc6a749b02