← Back to team overview

openstack team mailing list archive

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

 

On Mon, 7 May 2012 23:34:02 +0530
Shashi Kanth Boddula <shashi.bsd@xxxxxxxxx> wrote:

> 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

>                 "endpoints": [
>                     {
>                         "adminURL": "http://OpenStack:35357/v2.0";,
>                         "internalURL": "http://OpenStack:5000/v2.0";,
>                         "publicURL": "http://OpenStack:5000/v2.0";,

The above is supposed to be the endpoint of Swift, but you put the
endpoint of Keystone in there. When you pass the -A http://OpenStack:5000/v2.0,
the CLI tool accesses the Keystone to discover where the Swift is, using
the endpoint record.

So:

# With SSL proxy at kvm-san:
$keystone endpoint-create --region RegionOne --service_id $SSID \
        --adminurl 'http://kvm-rei.zaitcev.lan/v1.0/' \
        --publicurl 'https://kvm-san.zaitcev.lan/v1/AUTH_$(tenant_id)s' \
        --internalurl 'http://kvm-rei.zaitcev.lan/v1/AUTH_$(tenant_id)s'

-- P


Follow ups

References