如何在没有其他openstack项目的情况下配置openstack swift?

How to configure openstack swift without other openstack projects?

我尝试配置 swift 对象存储但没有成功。 如果我将控制器与 keystone 一起使用,那么一切正常(如文档中所示):
http://docs.openstack.org/mitaka/install-guide-rdo/swift-controller-install.html
但问题是我只想使用 swift 对象存储。而已。
我曾尝试像该文档中那样配置 swift,但没有 [filter:keystoneauth] 和 [filter:authtoken]。
之后,我尝试使用此命令验证操作:swift stat
显示:

Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment variables
to be set or overridden with -A, -U, or -K.

Auth version 2.0 requires OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, and
OS_TENANT_NAME OS_TENANT_ID to be set or overridden with --os-auth-url,
--os-username, --os-password, --os-tenant-name or os-tenant-id. Note:
adding "-V 2" is necessary for this.

但是我没有梯形石。我怎样才能访问 swift?
如果我没记错的话,这篇文章是在没有梯形校正的情况下配置 swift: http://docs.openstack.org/developer/swift/development_saio.html
但这有点难。我不确定如何正确阅读这篇文章。

默认情况下 swift 具有 TempAuth(也称为 1.0 版)身份验证方法 (http://docs.openstack.org/developer/swift/overview_auth.html)。您可以将它用于测试目的,但不建议将其用于生产

你引用的 SAIO 文章运行就是它了。以下是您可能会遗漏的一些要点:

如果您删除了 [filter:keystoneauth] 和 [filter:authtoken] 你应该:

1 - 将 tempauth 添加到 [pipeline:main]

pipeline = catch_errors gatekeeper healthcheck proxy-logging cache bulk tempurl ratelimit crossdomain container_sync tempauth staticweb copy container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server

2 - 在 proxy-server.conf 中配置 tempauth 部分,如下所示:

[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

此外,如果您想要 运行 没有参数的 swift 客户端,您应该配置环境变量。

$ export ST_USER=admin:admin
$ export ST_KEY=admin