Commit Graph

402 Commits

Author SHA1 Message Date
Tony Breeds c979629a70 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: Ia7cebaf44d32fa813527e77402079be1c85fe15c
2017-09-12 16:06:33 -06:00
ChangBo Guo(gcb) 1cf39ee5c3 Update URLs in documents according to document migration
Change-Id: Ie988ab85d74f314a3c0ecc0f86ddd9dc48ab2305
2017-07-12 23:06:02 +08:00
Jenkins 7af4801aad Merge "Replace deprecated inspect function in Python 3" 2017-07-05 12:46:14 +00:00
Dong Ma 0d83fef4b3 update the docs url in the readme
Change-Id: I807c139d29657287fa25ed8763b9708bf694fcab
2017-07-04 16:57:51 +08:00
Jenkins 9537eba521 Merge "switch from oslosphinx to openstackdocstheme" 2017-06-30 13:38:18 +00:00
Jenkins 476295a419 Merge "import admin guide content from openstack-manuals" 2017-06-30 13:36:01 +00:00
Jenkins 25199fdebd Merge "rearrange content to fit the new standard layout" 2017-06-30 13:26:11 +00:00
Dong Ma 9118502133 switch from oslosphinx to openstackdocstheme
Change-Id: Iadf4ea330b79dd81e5eed98b145798fe29c64c70
2017-06-28 14:32:18 +08:00
Samuel de Medeiros Queiroz a5fa896250 Replace deprecated inspect function in Python 3
Replace deprecated inspect.getargspec [1] with
inspect.getfullargspec [2], which is not deprecated in Python 3.x

inspect.getargspec is kept for Python 2.x, as the new function is
not available for it.

This was causing keystone unit tests output to be flooded with
deprecation warnings [3]

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec
[2] https://docs.python.org/3/library/inspect.html#inspect.getfullargspec
[3] http://logs.openstack.org/43/474543/3/check/gate-keystone-python35/ae16a96/console.html.gz#_2017-06-15_22_15_16_925141

Change-Id: Ia37ac562122d6315be1ce1277a6753a9caf15998
2017-06-27 23:37:39 -04:00
Dong Ma 6efcbd9936 import admin guide content from openstack-manuals
Change-Id: I9d2cda5f050801e0cc51eac5876b5cb707caff43
2017-06-27 16:34:01 +08:00
Dong Ma a2780e0cfc rearrange content to fit the new standard layout
Change-Id: I299b6da1fcb8a7a6a6524cfa5d9892a6c2643c18
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
2017-06-26 23:22:28 +08:00
Samuel de Medeiros Queiroz bc7d4b8be8 Remove deprecated oslo.subdomain from CORS opts
Defining configuration under cors.* blocks is deprecated. However, we
advertise [cors.subdomain] as a CORS section, and still throw a warning
if that section (that we list) is used in config files.

This was causing warnings in the keystone unit tests output, since the
generated config file does contain both of those listed sections [2].

[1] https://github.com/openstack/oslo.middleware/blob/master/oslo_middleware/cors.py#L200-L205
[2] https://github.com/openstack/keystone/blob/master/etc/keystone.conf.sample#L587-L616

Change-Id: Ice114bf1fdceda7bf122f5fd6b98fc88a85c8ff3
2017-06-19 17:52:45 -04:00
Jenkins 3d65053741 Merge "Remove pbr warnerrors in favor of sphinx check" 2017-06-16 06:39:48 +00:00
OpenStack Proposal Bot 8aff6c73a7 Updated from global requirements
Change-Id: Ic325e064e1ab2c2fe31389c03befe9d97ff08d6e
2017-06-15 16:33:00 +00:00
Vu Cong Tuan 1062c4d79a Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html

Change-Id: If356e8bfd2ff414037a8688409798b13044fe3b2
2017-06-12 08:43:20 +07:00
OpenStack Proposal Bot 9ae8bb8055 Updated from global requirements
Change-Id: I8c8e7b477e2d4c362d1f67928464d9e0a7c3631a
2017-06-02 22:05:24 +00:00
Jenkins d2fe0563eb Merge "Remove usage of parameter enforce_type" 2017-06-02 15:28:31 +00:00
OpenStack Proposal Bot 3f4b6bda5f Updated from global requirements
Change-Id: I5edaea8053ea00ea8556157f6a953d4d5842e5a5
2017-06-02 02:35:06 +00:00
ChangBo Guo(gcb) 6a28ca245c Remove usage of parameter enforce_type
We deprecate and change parameter enforce_type's default value to
True[1], and will remove it int the future, so don't need it anymore.

[1] https://review.openstack.org/328692

Change-Id: I243444f53e14543c5e4ae4c40d9582fb2d17e155
2017-05-31 14:50:20 +08:00
OpenStack Proposal Bot ac68f40bd3 Updated from global requirements
Change-Id: Ie2f72ad44298c3601a1465160f5c5f873f2c31cf
2017-05-26 17:27:37 +00:00
Jenkins 6b7b1b225d Merge "Set global_request_id if passed in as X-OpenStack-Request-ID." 2017-05-24 06:27:18 +00:00
Jenkins cffaf180b7 Merge "Allow compatibility headers for request_id" 2017-05-24 06:25:11 +00:00
Sean Dague 0e3dbba0d9 Set global_request_id if passed in as X-OpenStack-Request-ID.
If an inbound header that validates against the regex ``req-$uuid`` is
passed in, we'll set it where oslo.context could later read it. This
creates a mechanism for parents to pass their request-id to children.

Change-Id: I5c5268e8680392395fbe04efe0124575ad8db468
2017-05-23 12:48:41 -04:00
Sean Dague 9b94bae73c Allow compatibility headers for request_id
We discovered that Nova is using a local version of the request_id
header code because it's x-compute-request-id predates
x-openstack-request-id, and things were never migrated after the oslo
code was extracted. In order to let Nova use the base code (which may
become more complicated with inbound request-id setting) we need to
support a compat headers field, which is additional http header names
that should be set with the request-id value.

Change-Id: I18a92f8bf2f85fcf30d32be68bae58f64b135df0
2017-05-23 12:48:41 -04:00
OpenStack Proposal Bot c45f9a21d5 Updated from global requirements
Change-Id: I607978b6bfc0ca34f91c992f1f14b0706ef4c499
2017-05-23 11:58:04 +00:00
OpenStack Proposal Bot e4bf01a42b Updated from global requirements
Change-Id: Ibef33fb34d4e6848f4a116749f07c16afe7ae1a7
2017-05-17 03:56:42 +00:00
OpenStack Proposal Bot 2eaf1ebaf5 Updated from global requirements
Change-Id: I60da2b02b5a758dc6ef57077d0e8dbb88c90ddff
2017-05-15 00:52:59 +00:00
Jenkins e65f2d5bdb Merge "Optimize the link address" 2017-04-26 14:17:58 +00:00
OpenStack Proposal Bot c61612b206 Updated from global requirements
Change-Id: I040d41c88588f353e52790d16744602f22bd4981
2017-04-15 17:49:36 +00:00
lioplhp 93a07b7b97 Optimize the link address
Use https instead of http to ensure the safety

Change-Id: I0a6a941b6e899d1f9a13e615454befce70f05d54
2017-04-15 10:13:47 +08:00
ChangBo Guo(gcb) fed2925735 Fix test_request_too_large_no_content_length failure
Webob >=1.7.0 change its way to check if body is readable [1],
The is_body_readable() method returns False now. request.content_length
will be set when set request.body automatically, and if
request.context_length is None request.body will return returns b''.[3]
So just set request.body in test.

[1] 0e6fcbfbc5
[2] https://github.com/Pylons/webob/blame/master/webob/request.py#L699
[3] https://github.com/Pylons/webob/blame/master/webob/request.py#L692

Closes-Bug: #1679658

Change-Id: I4e0932dd8664d96b2733c5d3b1fa846af0c7d132
2017-04-13 20:57:50 +08:00
lioplhp 2dc2cf3c31 Remove log translations
Log messages are no longer being translated.
This removes all use of the _LE, _LI, and _LW
translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I797b5f0374d6f8ca1cb4641246cab414aa5466dd
2017-03-28 14:10:19 +08:00
OpenStack Proposal Bot c4f2263d49 Updated from global requirements
Change-Id: I541f9d38c847f580f461de75531c2c472cbe532b
2017-03-13 19:40:06 +00:00
OpenStack Proposal Bot f3e52752ea Updated from global requirements
Change-Id: Ia6f0c93b68aef3baa5099ad51587cecd2ab923c7
2017-03-03 00:03:09 +00:00
ricolin 93d1dac08c [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ifd5506f7cbaeda3ce198e8e3213dcfbf629a8c90
2017-03-02 18:25:25 +08:00
OpenStack Proposal Bot 4413c89e11 Updated from global requirements
Change-Id: I4a7664a970bd14deb09a765707588509a2197e5f
2017-02-10 09:48:27 +00:00
Davanum Srinivas 1cb766c0fc pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)
We need to pass into VersionInfo what one would expect from running:
 setup.py --name

 Right now we pass in say oslo_context and pbr fails if there is no .git in
  the python source tree

  Closes-Bug: #1662266

Change-Id: Ia1495af62a02410607c27f443af59dc20b052072
2017-02-06 12:49:22 -05:00
OpenStack Release Bot f20e08e3ed Update reno for stable/ocata
Change-Id: I55b809bb367e97bf7278784a317632eec18a5a25
2017-01-26 20:22:41 +00:00
Jamie Lennox df5c11ddcc Filter token data out of catch_errors middleware
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
2017-01-26 17:44:07 +01:00
Jenkins 5307c7e43f Merge "remove superfluous random stuff" 2017-01-17 08:33:55 +00:00
Jenkins 472363fb2d Merge "Add new middleware to send API data to statsd" 2017-01-17 03:02:49 +00:00
Doug Hellmann a01e0a4b4a remove superfluous random stuff
Change-Id: Idb5ae55971e7f76348c224b1bea5c5e19c6278e0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-16 19:43:04 -05:00
OpenStack Proposal Bot ae58497e30 Updated from global requirements
Change-Id: I9b4a1c61519986c8f9fb2eeb847735841183715a
2017-01-12 09:43:25 +00:00
Eric Brown bbc6259d14 Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: I6264d7d2e1d97291b58b4358f3c397c1fbc320ac
2017-01-09 10:18:43 -08:00
Jenkins e303b99f20 Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()" 2017-01-05 15:56:43 +00:00
Julian Edwards 032addde67 Add new middleware to send API data to statsd
The new StatsMiddleware is a Paste filter that examines the URL path and
request method, and sends a stat count and a timer to a statsd host
whose name is based on the path/method.

If your statsd is configured to send stats to Graphite, you'll end up
with stat names of the form:
timer.<appname>.<METHOD>.<path>.<from>.<url>

Because a dot has special meaning in Graphite, dots in API versions that
appear in the path will be replaced with _, so for example v2.1 becomes v2_1,
and v1.0 becomes v1_0.

Change-Id: Ieaffeded1bf81c0782d88f49b6f5209f11744899
2017-01-04 09:23:57 +10:00
Jenkins 705802ea5c Merge "Replace six.iteritems() with .items()" 2016-12-30 05:26:15 +00:00
Tony Breeds fa815cfb2f Add Constraints support
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
2016-12-20 14:33:43 +11:00
gengchc2 de49b53329 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Ieb7b8a62ef5b8fae79fa41861ad3910ecad988c8
2016-12-09 10:37:30 +08:00
Jenkins 9891ec95da Merge "Filter X-Auth-Token in catch_errors" 2016-12-07 10:03:29 +00:00