黑马程序员技术交流社区

标题: 执行swift stat时报错 [打印本页]

作者: 余永健    时间: 2015-2-8 14:15
标题: 执行swift stat时报错
  1. 执行swift stat 后 出现如下错误:
  2. [Errno 111] Connection refused
  3. 求帮助!!
  4. openrc.sh 如下:
  5. #!/bin/bash

  6. # With the addition of Keystone, to use an openstack cloud you should
  7. # authenticate against keystone, which returns a **Token** and **Service
  8. # Catalog**.  The catalog contains the endpoint for all services the
  9. # user/tenant has access to - including nova, glance, keystone, swift.
  10. #
  11. # *NOTE*: Using the 2.0 *auth api* does not mean that compute api is 2.0.  We
  12. # will use the 1.1 *compute api*
  13. export OS_AUTH_URL=http://controller:5000/v2.0

  14. # With the addition of Keystone we have standardized on the term **tenant**
  15. # as the entity that owns the resources.
  16. export OS_TENANT_ID=4ab102c171284ac18e0c3c211bb2ba29
  17. export OS_TENANT_NAME="admin"

  18. # In addition to the owning entity (tenant), openstack stores the entity
  19. # performing the action as the **user**.
  20. export OS_USERNAME="admin"
  21. # With Keystone you pass the keystone password.
  22. echo "Please enter your OpenStack Password: "
  23. read -sr OS_PASSWORD_INPUT
  24. export OS_PASSWORD=$OS_PASSWORD_INPUT

  25. proxy-server.conf配置如下:
  26. [DEFAULT]
  27. bind_port = 8080
  28. workers = 8
  29. user = swift

  30. [pipeline:main]
  31. pipeline = healthcheck cache authtoken keystone proxy-server

  32. [app:proxy-server]
  33. use = egg:swift#proxy
  34. allow_account_management = true
  35. account_autocreate = true

  36. [filter:cache]
  37. use = egg:swift#memcache
  38. memcache_servers = 127.0.0.1:11211

  39. [filter:catch_errors]
  40. use = egg:swift#catch_errors

  41. [filter:healthcheck]
  42. use = egg:swift#healthcheck

  43. [filter:keystone]
  44. use = egg:swift#keystoneauth
  45. operator_roles = admin, SwiftOperator
  46. is_admin = true
  47. cache = swift.cache

  48. [filter:authtoken]
  49. paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
  50. #admin_tenant_name = %SERVICE_TENANT_NAME%
  51. #admin_user = %SERVICE_USER%
  52. #admin_password = %SERVICE_PASSWORD%
  53. delay_auth_decision = true
  54. admin_tenant_name = service
  55. admin_user = swift
  56. admin_password = ce46438b2925a9392ab6
  57. auth_host = controller
  58. auth_port = 35357
  59. auth_protocol = http
  60. signing_dir = /tmp/keystone-signing-swift

复制代码





欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2