Re: [Openstack] "swift stat" returns "Auth GET failed: http://127.0.0.1:5000/v2.0/tokens 401 Not Authorized"
Actually i have defined the endpoints for swift correctly, but i pasted wrongly. I am getting the endpoint for swift like bellow. { "endpoints": [ { "adminURL": "http://OpenStack:8080/";, "internalURL": " http://OpenStack:8080/v2/AUTH_0e63498833bf44e4aeb0ac314635b68f";, "publicURL": " http://OpenStack:8080/v2/AUTH_0e63498833bf44e4aeb0ac314635b68f";, "region": "RegionOne" } ], "endpoints_links": [], "name": "swift", "type": "object-store" }, But still * # 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 The c*command which i run to create endpoint is keystone --token 012345SECRET99TOKEN012345 --endpoint http://OpenStack:35357/v2.0/ endpoint-create --region RegionOne --service_id=32c42e1c8dbf49e3a8164103fd0718e2 --publicurl ' http://OpenStack:8080/v2/AUTH_%(tenant_id)s' --adminurl ' http://OpenStack:8080/' --internalurl ' http://OpenStack:8080/v2/AUTH_%(tenant_id)s' Here i have some questions. 1) do i need to say v1 or v2 in URL? or V2.0 ? Actually where to looks for whether i need to say v1.X or V2.X? In the keystone.conf file i see only v2 word. 2) Do i need to say % or $ in the above command infront of tenant_id ? . In some docs i see %, and some docs i see $. On Tue, May 8, 2012 at 3:01 AM, Pete Zaitcev wrote: > On Mon, 7 May 2012 23:34:02 +0530 > Shashi Kanth Boddula 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 > -- Thanks & Regards, Shashi Kanth ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] "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 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 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] "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 = 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 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp