[Openstack] [OpenStack] [Swift] How to install Swift3 middleware?

Alexandr Porunov alexandr.porunov at gmail.com
Thu Oct 13 07:09:40 UTC 2016


Thank you all for your help!

It have started the proxy finally.

Here is the configuration that I used:

[filter:swift3]
use = egg:swift3#swift3

[filter:s3token]
paste.filter_factory = swift3.s3_token_middleware:filter_factory
auth_uri = http://keystone:35357/

Also I have installed dependencies:
pip install -r requirements.txt
pip install -r test-requirements.txt

It seems that swift3 has to update the documentation on github

Sincerely,
Alexandr

On Thu, Oct 13, 2016 at 9:23 AM, Kota TSUYUZAKI <
tsuyuzaki.kota at lab.ntt.co.jp> wrote:

> Hi Alexandr,
>
> Though I cannot see the actual reason why the proxy-server failed (your
> report looks just proxy-server exist with status code 1),
> looking at your procedure, you might need to install dependencies (e.g.
> lxml) for swift3. I mean,
>
> >>>>> git clone https://github.com/openstack/swift3
> >>>>> cd swift3
> >>>>> python setup.py install
>
> sudo pip install -r requirements.txt
> (you may need also "sudo pip install -r test-requirements.txt" for testing)
>
> If you could share sort of logs why proxy-server got failed, it might be
> helpful to figure out more.
>
> Thanks,
> Kota
>
>
> (2016/10/13 14:34), Alexandr Porunov wrote:
> > No, I didn't.
> >
> > I ran "python setup.py install" one more time. Here is the output:
> > http://paste.openstack.org/show/585535/
> >
> > On Thu, Oct 13, 2016 at 8:21 AM, John van Ommen <john.vanommen at gmail.com
> >
> > wrote:
> >
> >> To me, the errors you're receiving are indicative of the swift3
> >> package not installing correctly.
> >>
> >> When you ran that first step (setup.py), did you get errors?
> >>
> >> John
> >>
> >> On Wed, Oct 12, 2016 at 10:03 PM, Alexandr Porunov
> >> <alexandr.porunov at gmail.com> wrote:
> >>> Hello,
> >>>
> >>> It still doesn't work... The same error is shown. Maybe I missed
> >> something?
> >>> Maybe before the installation I had to done something or something
> else.
> >> I
> >>> tried different things to run it. But when we do have swift3 or/and
> >> s3token
> >>> in pipeline it doesn't work.
> >>>
> >>> Sincerely,
> >>> Alexandr
> >>>
> >>> On Thu, Oct 13, 2016 at 12:17 AM, Mark Kirkwood
> >>> <mark.kirkwood at catalyst.net.nz> wrote:
> >>>>
> >>>>
> >>>>
> >>>> On 13/10/16 06:26, Alexandr Porunov wrote:
> >>>>>
> >>>>> Hello,
> >>>>>
> >>>>> I want to use S3 api for Swift.
> >>>>>
> >>>>> I have installed swift3 as here:
> >>>>>
> >>>>> git clone https://github.com/openstack/swift3
> >>>>> cd swift3
> >>>>> python setup.py install
> >>>>>
> >>>>> Then I have configured my proxy-server.conf as here:
> >>>>>
> >>>>> [pipeline:main]
> >>>>> pipeline = catch_errors gatekeeper healthcheck proxy-logging cache
> >>>>> container_sync bulk ratelimit swift3 s3token authtoken keystoneauth
> >>>>> container-quotas account-quotas slo dlo versioned_writes
> proxy-logging
> >>>>> proxy-server
> >>>>>
> >>>>> [filter:swift3]
> >>>>> use = egg:swift3#swift3
> >>>>>
> >>>>> [filter:s3token]
> >>>>> use = egg:swift3#s3token
> >>>>> auth_uri = http://keystone:35357/
> >>>>> reseller_prefix = AUTH_
> >>>>>
> >>>>> Then I tried to restart the proxy:
> >>>>> systemctl restart openstack-swift-proxy
> >>>>>
> >>>>> And it failes.
> >>>>>
> >>>>>
> >>>>
> >>>> Yeah - for Mitaka (or thereabouts) onwards that s3token config needs
> to
> >>>> change:
> >>>>
> >>>> [filter:s3token]
> >>>> paste.filter_factory = keystoneclient.middleware.s3_
> >> token:filter_factory
> >>>> auth_uri = http://keystone:35357/
> >>>> reseller_prefix = AUTH_
> >>>>
> >>>> Alternatively the older port/protocol/host variables still work
> instead
> >> of
> >>>> auth_uri:
> >>>>
> >>>> [filter:s3token]
> >>>> paste.filter_factory = keystoneclient.middleware.s3_
> >> token:filter_factory
> >>>> auth_port = 35357
> >>>> auth_host = keystone
> >>>> auth_protocol = http
> >>>>
> >>>> The swift3 docs need updating, as it is not obvious what has gone
> wrong
> >>>> when you hit this.
> >>>>
> >>>> regards
> >>>>
> >>>> Mark
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Mailing list:
> >>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >>>> Post to     : openstack at lists.openstack.org
> >>>> Unsubscribe :
> >>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> >> openstack
> >>> Post to     : openstack at lists.openstack.org
> >>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> >> openstack
> >>>
> >>
> >
> >
> >
> > _______________________________________________
> > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> >
>
>
> --
> ----------------------------------------------------------
> Kota Tsuyuzaki(露﨑 浩太)  <tsuyuzaki.kota at lab.ntt.co.jp>
> NTT Software Innovation Center
> Cloud Solution Project
> Phone  0422-59-2837
> Fax    0422-59-2965
> -----------------------------------------------------------
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161013/784d68d3/attachment.html>


More information about the Openstack mailing list