summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Merge "Remove oslo namespace package"Jenkins2015-11-1615-429/+0
|\ \ \
| * | | Remove oslo namespace packagegordon chung2015-11-0915-429/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blueprint remove-namespace-packages Co-Authored-By: Doug Hellmann <doug@doughellmann.com> Closes-Bug: #1463508 Change-Id: I1479f37f500a358cdf7ad416f0257288b65c9245
* | | | Merge "Remove python 2.6 and cleanup tox.ini"Jenkins2015-11-161-12/+2
|\ \ \ \
| * | | | Remove python 2.6 and cleanup tox.iniDavanum Srinivas2015-11-161-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove support for python 2.6 * Remove skipsdist : Needs to be set only if sdist is expensive * Remove usedevelop : only needed when skipsdist is set to True * Remove install_command : We can just use the default, we don't need to override * Remove setenv : We can just use the default as we don't need any extra environment variables * Remove requirements.txt from deps, as this is already added automatically Change-Id: Iad4623157750ca3808f5b2adb712814c98d824fa
* | | | | Merge "Define entry points for filter factories for Paste Deployment"Jenkins2015-11-162-0/+58
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | Define entry points for filter factories for Paste DeploymentTom Cocozzello2015-11-132-0/+58
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define filter factories so other projects can reference them by name and can take advantage of the python egg instead of referencing by the direct path. Change-Id: Id05c319c1d19261618471fa75983cf8020fc60b6 Closes-Bug: 1500509
* | | | Add oslo_config program support to paste middlewareMichael Krotscheck2015-11-133-1/+23
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | oslo_config's configfile autodiscovery permits an additional parameter named 'prog', which will add an additional file name to the possible files that are checked in oslo_config directories. This patch adds this parameter to paste-ini initialization, permitting access to more configuration files. This feature is required by glance, as glance does not make use of ./glance/glance.conf. Instead, they use ./glance/glance-api.conf. The appropriate middleware configuration in this case would then be: oslo_config_project=glance oslog_config_program=glance-api Change-Id: Ie530e4fac8076dc46b705770d12940ef91cb4644
* | | Merge "Add a disabled by ports -> files healthcheck plugin"2.11.0Jenkins2015-11-135-6/+94
|\ \ \
| * | | Add a disabled by ports -> files healthcheck pluginJoshua Harlow2015-10-225-6/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since most openstack applications do not run on a single port it is useful to be able to have a single healthcheck plugin that can respond to requests for different ports with different files; this way for example keystone admin port can be disabled while its public port can be kept active (without having to run two different applications, one for the admin endpoint and one for the public endpoint). Change-Id: I0bafb5a2091e54c9f01f24812438296b75afaf63
* | | | add missing shortcut for HTTPProxyToWSGI middlewaregordon chung2015-11-093-3/+19
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | we should've added a shortcut to oslo_middleware/__init__ to hide path. additionally we shouldn't have added Middleware to class name as it's redundant Change-Id: Id581180c24006aa142eb8bf086eb7fc42835cff5 Closes-Bug: #1514507
* | | Revert "Add 'X-Auth-Token' default header to CORS middleware"Michael Krotscheck2015-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existence of this header is not tested, and therefore can create fragility downstream as operators deploying an API may not realize that this setting is needed. If the upstream library is ever updated to remove this, all downstream projects will silently fail. Furthermore, the addition of openstack-specific headers as defaults in this library makes oslo_middleware less useful outside of openstack. The correct way to address this issue is to enable latent configuration from paste.ini. This way, each service can include their default headers in their packaged paste file. This reverts commit 562173aeb7839eaca6274531b0e91147941af6df. Change-Id: I401011ed055fea49268686deb5c25f02d2ca6164
* | | Updated from global requirementsOpenStack Proposal Bot2015-10-231-1/+1
| | | | | | | | | | | | Change-Id: Ie6d9cc72562f253d99dd542cb179a21ebede52db
* | | Merge "Add 'X-Auth-Token' default header to CORS middleware"Jenkins2015-10-231-2/+2
|\ \ \
| * | | Add 'X-Auth-Token' default header to CORS middlewareTimur Sufiev2015-10-221-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | This specific header is needed for passing keystone token from JS clients to the OpenStack services, thus making Keystone authentication possible. Change-Id: Ib3b7787c0fd1dcc1a1d199c3e32100523f326d9f
* | | Imported Translations from ZanataOpenStack Proposal Bot2015-10-238-68/+26
|/ / | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I58f84d62bd8c03e2cf56caa3a5b1e9f50f548e3c
* | Updated from global requirementsOpenStack Proposal Bot2015-10-191-1/+1
| | | | | | | | Change-Id: I0dcf0b205de230d31c43699b9944ae22b3fc7e01
* | Updated from global requirements2.10.0OpenStack Proposal Bot2015-10-161-1/+1
| | | | | | | | Change-Id: Ia778b3fbde857888dee29b54215f63ca2abb2c70
* | Updated from global requirementsOpenStack Proposal Bot2015-10-141-1/+1
| | | | | | | | Change-Id: I853d618046d9df130074b97d92cd3d57709e9ef4
* | Updated from global requirementsOpenStack Proposal Bot2015-10-131-1/+1
| | | | | | | | Change-Id: Iafdbe5f8b12b5d25acc447e3d8d043b5a0faa018
* | Merge "Fix coverage configuration and execution"2.9.0Jenkins2015-10-083-5/+7
|\ \
| * | Fix coverage configuration and executionRonald Bradford2015-10-053-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A number of configuration errors prevent the successful creation of code coverage. This corrects the .coveragerc source/omit setup and the tox package name generation. http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html Change-Id: I2ee48d5b987cc26fe2de6d538ab278821100b278
* | | No need for Oslo Incubator SyncDavanum Srinivas2015-10-041-7/+0
|/ / | | | | | | | | | | | | We can remove openstack-common.conf as we don't sync any code from oslo-incubator any more. Change-Id: Ic915216c74966abc43c4a4d39d3ae42d42db64fa
* | ssl: deprecated in favor of http_proxy_to_wsgiJulien Danjou2015-09-292-1/+7
| | | | | | | | Change-Id: Ic2d3dcadbaaaa2819f2c84b23778a2e407a9b127
* | Merge "Introduce HTTP Proxy to WSGI middleware"Jenkins2015-09-292-0/+161
|\ \
| * | Introduce HTTP Proxy to WSGI middlewareJulien Danjou2015-09-282-0/+161
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This middleware is supposed to be placed in front of any WSGI application. It will translate the WSGI environment to an environment mimicking the environment of the reverse proxy placed in front of it. It supports translating: - Protocol via X-Forwarded-Proto - Host via X-Forwarded-Host - Prefix via X-Forwarded-Prefix (not standard, but already used in other projects) - Forwarded header (RFC7239) Change-Id: I9e66e17a343fc454016415375bcd5a1285334f5a
* | Merge "Fix the home-page in setup.cfg with Oslo wiki page"Jenkins2015-09-291-1/+1
|\ \ | |/ |/|
| * Fix the home-page in setup.cfg with Oslo wiki pagevenkatamahesh2015-09-201-1/+1
| | | | | | | | | | | | | | The current value is launchpad url which is not appropriate and so changed to Oslo wikipage Change-Id: I2a324a072869471d8e7f1ece5e1fdadc1bea568f
* | Merge "Imported Translations from Zanata"Jenkins2015-09-268-28/+34
|\ \
| * | Imported Translations from ZanataOpenStack Proposal Bot2015-09-268-28/+34
| | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: Ib0c385eceaa15103def2720d8d875c7b218d842f
* | | Merge "Further improve the healthcheck output"Jenkins2015-09-261-1/+98
|\ \ \