创建容器对象时报错 failed to create container ‘container2’: 404 Not Found:

Not Found

The resource could not be found.<

使用swift创建容器时报错404,谷歌查阅资料如下

原文地址是:https://answers.launchpad.net/swift/+question/235980

A 404 on a PUT means the “group of things” above the request failed the existence check. So if you get a 404 on object PUT it’s because the proxy failed the container existence check. If you get a 404 on a container PUT it’s because the proxy failed the account existence check.

Check the following:

1) are you running account_autocreate? You should, it is normally on by default [1]
2) are you running with 0 recheck_account_existence? ’cause that’s broken [2]

I’m curious if when you list/stat the account does it have any containers in it? Swift will lazy provision authorized accounts, and that code has been worked on in the last development cycle. If you have containers/objects in then the account definitely has a real physical data file and then it definitely exists – but if there’s no data in the account it can mean different things from a troubleshooting perspective. There may be some backend error talking to the account servers – if you’re unable to resolve the issue thoroughly examine any ERROR lines from /var/log/syslog for messages relating to problems connecting to account servers.

1. http://docs.openstack.org/developer/swift/deployment_guide.html#proxy-server-configuration
2. see: https://bugs.launchpad.net/swift/+bug/1224734

解决方法是按照一个小哥说的:

Actually account autocreate is not failing. Problem is with permission on /srv/[1-4]/. I corrected the permission and it’s solved now.

也就是说,在存储节点上,给/srv的权限设置成swift

此条目发表在OpenStack分类目录,贴了标签。将固定链接加入收藏夹。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注