0

I am trying to install the latest version of swift following instructions from http://docs.openstack.org/icehouse/install.../general-installation-steps-swift.html. I am able to authenticate with keystone and also able to successfully run the command swift stat. But, when I run the command swift upload myfiles temp, I get the following error

Error trying to create container 'myfiles': 404 Not Found: {"error": {"message": "The 
resource could not be found.", "c
Object PUT failed: 9.109.124.109:5000:5000/v2.0/myfiles/temp 400 Bad Request 
[first 60 chars of response] {"error": {"message": "Expecting to find application/json 
in

In /var/log/syslog, I find the following information:

May 28 18:11:40 datafed3 account-server: ERROR __call__ error with PUT /sdb1/100869
/AUTH_system/myfiles : #012Traceback (most recent call last):#012  File "/usr/lib
/python2.7/dist-packages/swift/account/server.py", line 284, in __call__#012    res = 
method(req)#012  File "/usr/lib/python2.7/dist-packages/swift/common/utils.py", line 
2217, in wrapped#012    return func(*a, **kw)#012  File "/usr/lib/python2.7/dist-
packages/swift/common/utils.py", line 837, in _timing_stats#012    resp = func(ctrl, 
*args, **kwargs)#012  File "/usr/lib/python2.7/dist-packages/swift/account/server.py", 
line 128, in PUT#012    req.headers['x-bytes-used'])#012  File "/usr/lib/python2.7/dist-
packages/swift/account/backend.py", line 210, in put_container#012    raise 
DatabaseConnectionError(self.db_file, "DB doesn't exist")#012DatabaseConnectionError: 
DB connection error (/srv/node/sdb1/accounts/100869/80d/62816079be0fc97a4557f52b3b12380d
/62816079be0fc97a4557f52b3b12380d.db, 0):#012DB doesn't exist
4

1 回答 1

0

可能导致此问题的一种情况是:创建租户时,一个或多个存储节点已关闭。那么当你上传一个对象时,代理从至少一个存储节点获取 404。在我的测试中,即使在租户创建后存储节点都已启动,404错误仍然存​​在。因此,请确保所有存储节点都已启动,并创建另一个租户进行测试。

于 2015-05-05T11:57:40.137 回答