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

如何在没有其他openstack项目的情况下配置openstack swift?,openstack,openstack-swift,Openstack,Openstack Swift,我尝试配置swift对象存储,但没有成功。 如果我将控制器与keystone一起使用,那么所有功能都很好(如文档中所示): 但问题是我只想使用swift对象存储。没别的了 我曾尝试像文档中那样配置swift,但没有[filter:keystoneauth]和[filter:authtoken]。 之后,我尝试使用以下命令验证操作:swift stat 它表明: Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment v

我尝试配置swift对象存储,但没有成功。 如果我将控制器与keystone一起使用,那么所有功能都很好(如文档中所示):

但问题是我只想使用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?
如果我没有错的话,这篇文章将在没有keystone的情况下配置swift:

但这有点难。我不知道如何正确地阅读本文。

默认情况下,swift具有TempAuth(也称为1.0版)身份验证方法()。您可以将其用于测试,但不建议将其用于生产

你引用的《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