Swift Stat error KeyError: 'items'

asked 2014-12-18 06:22:59 -0600

aelshafei gravatar image

updated 2014-12-18 13:41:19 -0600

smaffulli gravatar image

I have installed swift as documented in install guide (Juno). I have double checked all the services and configuration files with no problems. However the following issue still presists

here is a snapshot of Swift stat command

[root@swift-proxy ~]# swift stat
 Traceback (most recent call last):
     File "/usr/bin/swift", line 10, in <module>
     File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 1287, in main
         globals()['st_%s' % args[0]](parser, argv[1:], output)
     File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 493, in st_stat
         items = stat_result['items']
KeyError: 'items'
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-26 02:53:47 -0600

yoshitan gravatar image

updated 2014-12-26 08:20:27 -0600

I had the same problem but now solved. I checked /var/log/messages on proxy node and modify /etc/swift/swift-proxy.conf. In my case, paste.filter_factory = keystonemiddleware.auth_token:filter_factory was missing in [filter:authtoken]. Or you need to check the firewalld settings for port 8080 in proxy node.

edit flag offensive delete link more


Hi, this is quite a while, but i have similar issues in my cluster and I wonder how i can resolve this.

SyCode7 gravatar imageSyCode7 ( 2016-05-26 04:24:06 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-18 06:22:59 -0600

Seen: 1,436 times

Last updated: Dec 26 '14