- 执行swift stat 后 出现如下错误:
- [Errno 111] Connection refused
- 求帮助!!
- openrc.sh 如下:
- #!/bin/bash
- # With the addition of Keystone, to use an openstack cloud you should
- # authenticate against keystone, which returns a **Token** and **Service
- # Catalog**. The catalog contains the endpoint for all services the
- # user/tenant has access to - including nova, glance, keystone, swift.
- #
- # *NOTE*: Using the 2.0 *auth api* does not mean that compute api is 2.0. We
- # will use the 1.1 *compute api*
- export OS_AUTH_URL=http://controller:5000/v2.0
- # With the addition of Keystone we have standardized on the term **tenant**
- # as the entity that owns the resources.
- export OS_TENANT_ID=4ab102c171284ac18e0c3c211bb2ba29
- export OS_TENANT_NAME="admin"
- # In addition to the owning entity (tenant), openstack stores the entity
- # performing the action as the **user**.
- export OS_USERNAME="admin"
- # With Keystone you pass the keystone password.
- echo "Please enter your OpenStack Password: "
- read -sr OS_PASSWORD_INPUT
- export OS_PASSWORD=$OS_PASSWORD_INPUT
- proxy-server.conf配置如下:
- [DEFAULT]
- bind_port = 8080
- workers = 8
- user = swift
- [pipeline:main]
- pipeline = healthcheck cache authtoken keystone proxy-server
- [app:proxy-server]
- use = egg:swift#proxy
- allow_account_management = true
- account_autocreate = true
- [filter:cache]
- use = egg:swift#memcache
- memcache_servers = 127.0.0.1:11211
- [filter:catch_errors]
- use = egg:swift#catch_errors
- [filter:healthcheck]
- use = egg:swift#healthcheck
- [filter:keystone]
- use = egg:swift#keystoneauth
- operator_roles = admin, SwiftOperator
- is_admin = true
- cache = swift.cache
- [filter:authtoken]
- paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
- #admin_tenant_name = %SERVICE_TENANT_NAME%
- #admin_user = %SERVICE_USER%
- #admin_password = %SERVICE_PASSWORD%
- delay_auth_decision = true
- admin_tenant_name = service
- admin_user = swift
- admin_password = ce46438b2925a9392ab6
- auth_host = controller
- auth_port = 35357
- auth_protocol = http
- signing_dir = /tmp/keystone-signing-swift
复制代码 |
|