Invalid user token - rejecting request
I have Ubuntu 12.04 on Virtul machine and I use Swift , Keystone, Python-swiftclient on this machine.
I create user, role, account, endpoint for kesytone. And I create endpoint for keystone - swift connection like this:
$ SERVICEID=
$ echo $SERVICEID # just making sure we got a SERVICEID
$ keystone endpoint-create --service_id $SERVICEID --publicurl "http://
I use command with python-swiftclient. There is no problem. All commands in https:/
swift stat deneme1 :
Account: AUTH_918112e49f
Container: deneme1
Objects: 11
Bytes: 4077682
Read ACL: .r:*,.rlistings
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Storage-Policy: gold
X-Timestamp: 1405411686.78453
X-Trans-Id: txe6afced19aa44
Content-Type: text/plain; charset=utf-8
swift list deneme1 :
50cuteanimpic6.jpg
Weird-pictures-
Wolf Pictures 033.jpg
images.jpeg
pictures_
powerful-
Browser :
http://
-- > Click address seem: Authentication required
How can ı see my object on browser? İf you look given link there is an example but didnt work on my swift. I add proxy logs and my configuration.
I added log when url enterede on command line:
swift --debug --os-auth-token ADMIN --os-storage-url http://
Result :
INFO:urllib3.
DEBUG:urllib3.
INFO:swiftclien
INFO:swiftclien
INFO:swiftclien
INFO:swiftclien
INFO:urllib3.
DEBUG:urllib3.
INFO:swiftclien
INFO:swiftclien
INFO:swiftclien
INFO:swiftclien
ERROR:swiftclie
Traceback (most recent call last):
File "/root/
rv = func(self.url, self.token, *args, **kwargs)
File "/root/
http_response_
ClientException: Account GET failed: http://
Account GET failed: http://
==> proxy.error <==
Jul 15 12:21:36 openstack proxy-server: Unable to find authentication token in headers
proxy-server.conf :
[DEFAULT]
bind_port = 8080
workers = 1
user = root
log_level = DEBUG
log_facility = LOG_LOCAL1
eventlet_debug = true
[pipeline:main]
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache bulk tempurl slo dlo ratelimit crossdomain list-endpoints staticweb container-quotas account-quotas authtoken keystoneauth staticweb proxy-logging proxy-server
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:bulk]
use = egg:swift#bulk
[filter:ratelimit]
use = egg:swift#ratelimit
[filter:
use = egg:swift#
[filter:dlo]
use = egg:swift#dlo
[filter:slo]
use = egg:swift#slo
[filter:tempurl]
use = egg:swift#tempurl
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:gatekeeper]
use = egg:swift#
[app:proxy-server]
use = egg:swift#proxy
allow_account_
account_autocreate = true
[filter:
use = egg:swift#
[filter:authtoken]
paste.filter_
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = http://
admin_tenant_name = admin
admin_user = admin
admin_password = adminpass
admin_token = ADMIN
auth_token = ADMIN
cache = swift.cache
include_
[filter:
use = egg:swift#
operator_roles = admin, swiftoperator, swift, member
[filter:staticweb]
use = egg:swift#staticweb
set access_log_name = staticweb
set log_level = DEBUG
set log_headers = False
# Seconds to cache container x-container-
# cache_timeout = 300
# You can override the default log routing for this filter here:
# set log_name = staticweb
# set log_facility = LOG_LOCAL0
# set log_level = INFO
# set access_log_name = staticweb
# set access_log_facility = LOG_LOCAL0
# set access_log_level = INFO
# set log_headers = False
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu swift Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mesut Muhammet Şahin
- Solved:
- Last query:
- Last reply: