57ba429d3afb457a3cea043a2e12d4aa66bb0f9a
pylint reports some invalid synstax but they might be caused from pylint bugs so that we should supress them tentatively for gates to work well. The reasons we can disable these reported invalid syntax as follows: - no-name-in-module: pylint seems not to search pkg_resource dir correctly. [1] - super-on-old-class: This error must occur on using old style initialization like as calling parent's '__init__' method but the reported line is according to new style using "super" method. [2] - print-statement: It's needed for python3 compatiblity but currently swift3 doesn't support it. We should fix it when python3 supported. [1]:http://stackoverflow.com/questions/6336882/ pylint-doesnt-like-pkg-resources-resource-filename [2]:http://docs.pylint.org/features.html Change-Id: I127cefa786f4ab86de11e01b7361ba348897a8eb Closes-Bug: #1395768
Swift3
Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
Install
-
Install Swift3 with
sudo python setup.py installorsudo python setup.py developor via whatever packaging system you may be using. -
Alter your proxy-server.conf pipeline to have swift3:
If you use tempauth:
Was::
[pipeline:main]
pipeline = catch_errors cache tempauth proxy-server
Change To::
[pipeline:main]
pipeline = catch_errors cache swift3 tempauth proxy-server
If you use keystone:
Was::
[pipeline:main]
pipeline = catch_errors cache authtoken keystone proxy-server
Change To::
[pipeline:main]
pipeline = catch_errors cache swift3 s3token authtoken keystoneauth proxy-server
Note that swift3 explicitly checks that keystoneauth is in the pipeline. You must use this name in the pipeline statement and in [filter:keystoneauth] section header.
-
Add to your proxy-server.conf the section for the Swift3 WSGI filter::
[filter:swift3] use = egg:swift3#swift3
You also need to add the following if you use keystone (adjust port, host, protocol configurations for your environment):
[filter:s3token]
paste.filter_factory = keystoneclient.middleware.s3_token:filter_factory
auth_port = 35357
auth_host = 127.0.0.1
auth_protocol = http
Description
Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
Languages
Python
99.3%
Shell
0.7%