Account HEAD failed: 500 Internal Error

asked 2015-02-06 20:25:12 -0500

elijahpaul gravatar image

updated 2015-02-07 12:56:56 -0500

Am tearing my hair out on this one!

OS: CentOS 7

I've installed OpenStack (Juno - http://docs.openstack.org/juno/install-guide/install/yum/content/ch_preface.html), with a separate Keystone (10.0.1.1) and Proxy Server (10.0.1.2) along with 3 storage nodes (so far).

As far as I can tell, Keystone is operating normally. The demo user has '_member_' role, and the endpoint is correctly configured.

However running swift stat results in the a 500 Internal Error on the proxy server, and I cannot figure out why?

Any ideas/help greatly appreciated.

# swift --debug -V 2.0 -A http://10.0.1.1:5000/v2.0 -U demo:demo -K PASS stat
[...]
ERROR:swiftclient:Account HEAD failed: http://10.0.1.2:8080/v1/AUTH_5d68967d50b84566bc695eef4951ef5f 500 Internal Error
Traceback (most recent call last):
[...]
  File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 443, in stat
    raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'

/etc/swift/proxy-server.conf:

bind_port = 8080

swift_dir = /etc/swift
user = swift

[pipeline:main]
pipeline = healthcheck cache authtoken keystoneauth proxy-logging catch_errors gatekeeper container_sync bulk tempurl ratelimit tempauth container-quotas account-quotas slo dlo proxy-server

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


allow_account_management = true

account_autocreate = true


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


user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3


[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory



auth_uri = http://10.0.1.1:5000/v2.0
identity_uri = http://10.0.1.1:35357
admin_tenant_name = service
admin_user = swift
admin_password = PASS
delay_auth_decision = true


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


operator_roles = admin,_member_


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


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

memcache_servers = 127.0.0.1:11211


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


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

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


[filter:cname_lookup]

use = egg:swift#cname_lookup


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


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

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


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


[filter:list-endpoints]
use = egg:swift#list_endpoints


[filter:proxy-logging]
use = egg:swift#proxy_logging


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


[filter:container-quotas]
use = egg:swift#container_quotas


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


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


[filter:account-quotas]
use = egg:swift#account_quotas

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


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


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

This is the error I see in my /var/log/messages file on the proxy server:

Feb  7 18:47:04 localhost proxy-server: ERROR Unhandled exception in request: #012Traceback (most recent call last):#012  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 359, in handle_request#012    resp = req.environ['swift.authorize'](req)#012  File "/usr/lib/python2.7/site-packages/swift/common/middleware/tempauth.py", line 384, in authorize#012    user_groups = (req.remote_user or '').split(',')#012AttributeError: 'tuple' object has no attribute 'split' (txn: tx21bb4f26bce340e3bee4f-0054d65da8) (client_ip: 10.0.1.2)

Feb  7 18:47:04 localhost proxy-server: 10.0.1.2 10.0.1.2 07/Feb/2015/18/47 ...
(more)
edit retag flag offensive close merge delete

Comments

You're getting a 500 response from the swift server. So the first place to look is the swift server log to see if there is anything there that points at the problem, and potentially also at the Keystone server log.

larsks gravatar imagelarsks ( 2015-02-07 09:23:10 -0500 )edit

Have looked at the logs on the proxy (swift) server, but they say the same thing, i.e. 500 Internal error. I also changed the log level on the proxy server to 'DEBUG' but it still hasn't given me anything meaningful in the logs. I'll edit the question to include these logs in a sec.

elijahpaul gravatar imageelijahpaul ( 2015-02-07 09:43:11 -0500 )edit

added my proxy & keystone server logs. Hope this helps someone spot my mistake(s).

elijahpaul gravatar imageelijahpaul ( 2015-02-07 12:59:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-02-07 22:54:53 -0500

bala2014 gravatar image

Can you please try once with tempauth removed from proxy-server.conf and restart the service? Otherwise, you may debug with curl to see what is causing problem?

edit flag offensive delete link more

Comments

Thank you!!! This actually worked. Can you possibly provide any insight as to why tempauth causes this issue/behaviour?

elijahpaul gravatar imageelijahpaul ( 2015-02-08 14:01:50 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-06 20:20:13 -0500

Seen: 1,762 times

Last updated: Feb 07 '15