17 Commits

Author SHA1 Message Date
Davanum Srinivas
439940ac86 [fix-compat] More definitions for oslo.middleware
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
2015-12-12 19:18:33 +00:00
Davanum Srinivas (dims)
ce6ca04280 Re-Add oslo.middleware namespace for backward compat
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
2015-12-10 19:52:44 +03:00
gordon chung
18d7b08490 Remove oslo namespace package
Blueprint remove-namespace-packages

Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Closes-Bug: #1463508
Change-Id: I1479f37f500a358cdf7ad416f0257288b65c9245
2015-11-09 13:56:37 -05:00
Doug Hellmann
6a03efc111 Revert "Remove oslo namespace package"
This reverts commit bcbfceb716f7259a9a81e5750b60dc6ddc8f0a63.

Related-Bug: #1463478

Change-Id: I37055c4a85ad747de9b177fb0d12f48edc2d63f5
2015-06-09 17:40:54 +00:00
Doug Hellmann
bcbfceb716 Remove oslo namespace package
Blueprint remove-namespace-packages

Depends-on: I38e7c60ec602c33f74de237b6014b4ac13ee4985
for openstack/nova

Change-Id: I3cc1bf69e5e7daccf283d9b9c7f8620d68961de7
2015-05-11 20:59:55 +00:00
Doug Hellmann
8e06ca5bd0 Move files out of the namespace package
Move the public API out of oslo.middleware to oslo_middleware. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.

bp/drop-namespace-packages

Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
2015-01-06 13:44:01 -05:00
Jenkins
860cdee514 Merge "switch to oslo.context" 2015-01-06 03:39:06 +00:00
Brant Knudson
7c8e3e1061 Don't use default value in LimitingReader
We can't simply pass the None default on to the read operation as this
default is handled differently between different wsgi implementations.

Change-Id: I337e797b8dee3dfcf9299fe361cf197a176c8fe2
Closes-Bug: #1213106
Co-Authored-By: Jamie Lennox <jamielennox@redhat.com>
2015-01-01 19:00:40 -06:00
gordon chung
6824065b81 switch to oslo.context
Change-Id: I348fe06441e751ad1e53cd293f098bc21a445048
2014-12-29 08:57:48 -05:00
Davanum Srinivas
7ee3b0f459 Expose sizelimit option to config generator
* Adding a group name to prevent collision with keystone
  middleware library option
* Adds an opts module for the config generator to use.
* Makes the option in sizelimit private since we don't want consumers
  using them directly.
* Moves the options to an oslo_middleware group with appropriate
  deprecated_opts settings to keep existing configs working.

Closes-Bug: #1368490
Change-Id: I72263bd363a79275a314de727a04277276866565
2014-10-01 08:16:10 -04:00
Julien Danjou
3679023ddf Remove oslo-incubator fixture
Change-Id: I23cb59c1774b07842ac8853f3c104adfddd2c25b
2014-09-16 18:30:18 +02:00
Doug Hellmann
b6c4489960 Update docs for first release
Ensure each exported class has a docstring.

Add API to the sphinx docs.

Fix a few formatting issues so the rendered docs look OK.

Change-Id: Ieef7bae3783a084249169fe9b80ab17518eee15f
2014-08-26 17:33:01 -04:00
gordon chung
91943462d7 expose middleware through oslo.middleware
allow middleware to be called through oslo.middleware rather than
through module.

Change-Id: Iee535002a3bed221f85e97fb10528fbb9234dcb1
2014-08-21 17:18:33 -04:00
gordon chung
717acd5964 drop middleware suffix in class names
as discussed in bp, we should drop the middleware suffix in class
names to avoid redundancy.

Change-Id: I60e1e84e817e24be9ad1d31381df95c93f7b7990
2014-08-13 17:04:36 -04:00
gordon chung
5bf332c15b replace with oslo.i18n 2014-07-22 09:21:18 -04:00
Gordon Chung
a41dedff40 initial oslo.middleware checkin 2014-06-24 18:14:05 -04:00
Gordon Chung
5abab9ed08 exported from oslo-incubator by graduate.sh 2014-06-24 16:49:39 -04:00