Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
Go to file
Nassim Babaci 75c1cc075d Add setup.cfg and pbr support.
This patch fix a bug when installing a swift3 on
devstack.

Because devstack uses pbr/requirements.txt to
sync global requirements, we need to add setup.cfg and
pbr support to swift3 so it can be installed on devstack.

This also allow to take advantage of the pbr facilities
(version number support, etc)

Change-Id: Id0179fad179efac5ba85bef7838365a4d304d196
2014-04-09 11:30:40 +02:00
doc/source Update package data 2014-03-26 04:39:23 +09:00
swift3 Add setup.cfg and pbr support. 2014-04-09 11:30:40 +02:00
.gitignore Update .gitignore 2014-03-27 09:07:54 +09:00
.gitreview Add .gitreview file. 2014-03-22 15:42:32 +09:00
.unittests Add unittests from swift repository. 2012-05-21 13:21:24 +02:00
AUTHORS WIP - acls and test cases 2012-10-15 14:59:43 -07:00
CHANGELOG Addding a few base files to the project. 2012-05-21 13:05:34 +02:00
LICENSE Addding a few base files to the project. 2012-05-21 13:05:34 +02:00
README.md Update README about keystone usage 2013-02-08 08:34:35 +09:00
requirements.txt Add setup.cfg and pbr support. 2014-04-09 11:30:40 +02:00
setup.cfg Add setup.cfg and pbr support. 2014-04-09 11:30:40 +02:00
setup.py Add setup.cfg and pbr support. 2014-04-09 11:30:40 +02:00
test-requirements.txt Add tox-based tests support 2014-03-26 12:15:09 +09:00
tox.ini Add tox-based tests support 2014-03-26 12:15:09 +09:00

Swift3

Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.

Install

  1. Install Swift3 with sudo python setup.py install or sudo python setup.py develop or via whatever packaging system you may be using.

  2. 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 keystone proxy-server
  1. 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 = keystone.middleware.s3_token:filter_factory
auth_port = 35357
auth_host = 127.0.0.1
auth_protocol = http