← Back to team overview

openstack team mailing list archive

"swift stat" returns "Auth GET failed: http://127.0.0.1:5000/v2.0/tokens 401 Not Authorized"

 

Ubuntu 12.04 LTS with Essex (manual install with inbuilt packages)
Everything on a single physical box. Keystone, Glance, Nova, Swift, and
Dashboard installed and configured on a single physical box.

I am getting the bellow error during swift configuration. Please anyone
suggest me where could be the problem?

root@OpenStack:~# swift -V 2 -A http://OpenStack:5000/v2.0 -U
adminUser:admin -K 012345SECRET99TOKEN012345 stat
Auth GET failed: http://OpenStack:5000/v2.0/tokens 401 Not Authorized

root@OpenStack:~# swift -V 2 -A http://127.0.0.1:5000/v2.0 -U
adminUser:admin -K 012345SECRET99TOKEN012345 stat
Auth GET failed: http://127.0.0.1:5000/v2.0/tokens 401 Not Authorized

The swift proxy service is running and proxy file looks like bellow.

------------------------------------------------------------------------------------------------------------------------------------
[DEFAULT]
bind_port = 8888
user = swift

[pipeline:main]
pipeline = catch_errors healthcheck cache authtoken keystone proxy-server

[app:proxy-server]
use = egg:swift#proxy
account_autocreate = true

[filter:keystone]
paste.filter_factory = keystone.middleware.swift_auth:filter_factory
operator_roles = admin, swiftoperator

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
# Delaying the auth decision is required to support token-less
# usage for anonymous referrers ('.r:*').
delay_auth_decision = 1
service_port = 5000
service_host = 127.0.0.1
auth_port = 35357
auth_host = 127.0.0.1
auth_token = 012345SECRET99TOKEN012345
admin_token = 012345SECRET99TOKEN012345

[filter:cache]
use = egg:swift#memcache
set log_name = cache

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:healthcheck]
use = egg:swift#healthcheck
--------------------------------------------------------------------------------------------------------------------------------------

In the keystone, the swift service is created with endpoints.

"endpoints_links": [],
                "name": "swift",
                "type": "object-store"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://OpenStack:35357/v2.0";,
                        "internalURL": "http://OpenStack:5000/v2.0";,
                        "publicURL": "http://OpenStack:5000/v2.0";,
                        "region": "RegionOne"
                    }

Please anyone tell me where could be the problem?

Thanks in advance.

-- 
Thanks & Regards,
Shashi Kanth

Follow ups