[英]Swift Juno complains 'Account not found'
I'm new to stack so this might be a very silly mistake. 我是新手,所以这可能是一个非常愚蠢的错误。 I'm trying to setup a one node swift configuration for a simple proof of concept.
我正在尝试设置一个节点的快速配置,以进行简单的概念验证。 I did follow the instructions .
我确实按照指示进行 。 However, something is missing.
但是,缺少了一些东西。 I keep getting this error:
我不断收到此错误:
root@lab-srv2544:/etc/swift# swift stat
Traceback (most recent call last):
File "/usr/bin/swift", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
globals()['st_%s' % args[0]](parser, argv[1:], output)
File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
stat_result = swift.stat()
File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 427, in stat
raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'
Also, the syslog always complains about proxy-server: 另外,系统日志总是抱怨代理服务器:
Dec 12 12:16:37 lab-srv2544 proxy-server: Account HEAD returning 503 for [] (txn: tx9536949d19d14f1ab5d8d-00548b4d25) (client_ip: 127.0.0.1)
Dec 12 12:16:37 lab-srv2544 proxy-server: 127.0.0.1 127.0.0.1 12/Dec/2014/20/16/37 HEAD /v1/AUTH_71e79a29599149099aa98d5d276eaa0b HTTP/1.0 503 - python-swiftclient-2.3.0 8d2b0748804f4b34... - - - tx9536949d19d14f1ab5d8d-00548b4d25 - 0.0013 - - 1418415397.334497929 1418415397.335824013
Anyone seen this problem before? 有人看过这个问题吗?
使用“ swift”命令访问swift存储时,如果未在环境变量中设置用户ID和密码,则将其作为参数传递。
The most probable reason for this behavior is a funny order in your "pipeline" directive in /etc/swift/proxy-server.conf 出现此现象的最可能原因是/etc/swift/proxy-server.conf中“管道”指令中的一个有趣顺序
To verify this hypothesis: 要验证此假设:
pipeline = authtoken cache healthcheck keystoneauth proxy-logging proxy-server 管道= authtoken缓存运行状况检查keystoneauth代理日志记录代理服务器
swift-init proxy-server restart swift-init代理服务器重启
Make sure the environment variables OS_USERNAME , OS_PASSWORD , OS_TENANT_NAME and OS_AUTH_URL are defined 确保定义了环境变量OS_USERNAME , OS_PASSWORD , OS_TENANT_NAME和OS_AUTH_URL
try to list your containers with 尝试列出您的容器
swift list 快速清单
If you get a list of containers then the diagnoses is correct. 如果获得容器列表,则诊断是正确的。 Get back to your proxy-server.conf and try to add one element per time to your pipeline, restarting the server each time, and testing each time, until you find the right order.
回到proxy-server.conf并尝试每次向管道中添加一个元素,每次重新启动服务器,并每次进行测试,直到找到正确的顺序。 For your reference see http://docs.openstack.org/developer/swift/deployment_guide.html#proxy-server-configuration
供您参考,请参阅http://docs.openstack.org/developer/swift/deployment_guide.html#proxy-server-configuration
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.