分享

swift+keystone不工作

nocturne1210 发表于 2013-10-17 21:30:23 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 7513
我在尝试安装swift+keystone,服务都起了,keystone也测试过能用。swift的endpoint也建立了。swift-get-node之类的命令也能使用。但是我使用swift -V 2.0 -A http://192.168.0.103:5000/v2.0 -U adminTenant:admin -K openstack stat之类的命令,就没有反应了,强行中断后,得出如下信息
swift1@swift1:~/Templates$ swift -V 2.0 -A http://192.168.0.103:5000/v2.0 -U adminTenant:admin -K openstack stat
^CTraceback (most recent call last):
  File "/usr/bin/swift", line 1972, in
    error_queue)
  File "/usr/bin/swift", line 1432, in st_stat
    headers = conn.head_account()
  File "/usr/bin/swift", line 890, in head_account
    return self._retry(None, head_account)
  File "/usr/bin/swift", line 864, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/bin/swift", line 343, in head_account
    resp = conn.getresponse()
  File "/usr/lib/python2.7/dist-packages/swift/common/bufferedhttp.py", line 102, in getresponse
    response = HTTPConnection.getresponse(self)
  File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.7/socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 264, in recv
    return self._read_io(self.fd, self.fd.recv, buflen, flags)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 255, in _read_io
    timeout_exc=socket.timeout("timed out"))
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/__init__.py", line 121, in trampoline
    return hub.switch()
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
    return self.greenlet.switch()
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 226, in run
    self.wait(sleep_time)
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 84, in wait
    presult = self.do_poll(seconds)
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/epolls.py", line 59, in do_poll
    return self.poll.poll(seconds)
我的proxy-server.conf配置信息:
swift1@swift1:~$ sudo cat /etc/swift/proxy-server.conf
[sudo] password for swift1:
[DEFAULT]
bind_ip=0.0.0.0
bind_port=8080
swift_dir=/etc/swift
workers=1
user=swift
cert_file=/etc/swift/cert.crt
key_file=/etc/swift/cert.key
log_name=swift
log_facility=LOG_LOCAL0
log_level=DEBUG
[pipeline:main]
pipeline=catch_errors healthcheck cache ratelimit authtoken keystone proxy-server
[app:proxy-server]
use=egg:swift#proxy
account_autocreate=true
log_level=DEBUG
[filter:authtoken]
paste.filter_factory=keystone.middleware.auth_token:filter_factory
#the host must point to your keystone server
auth_host=192.168.0.103
auth_port=35357
auth_protocol=http
auth_uri=http://192.168.0.103:5000/
service_host=192.168.0.103
service_port=5000
admin_token=ADMIN
admin_user=admin
admin_password=openstack
admin_tenant_name=adminTenant
[filter:keystone]
paste.filter_factory=keystone.middleware.swift_auth:filter_factory
operator_roles=adminRole,swiftoperator
is_admin=true
reseller_prefix=AUTH
[filter:healthcheck]
use=egg:swift#healthcheck
[filter:cache]
use=egg:swift#memcache
memcache_servers=127.0.0.1:11211
[filter:ratelimit]
use=egg:swift#ratelimit
[filter:domain_remap]
use=egg:swift#domain_remap
[filter:catch_errors]
use=egg:swift#catch_errors
请问这是什么情况?谢谢
              
               
               

已有(2)人评论

跳转到指定楼层
cyl_python 发表于 2013-10-17 21:31:05

            我也遇到了这个问题,配置和你基本一致,查看源码是因为proxy服务的请求没有响应,不知道这个问题你解决了没有?
        
回复

使用道具 举报

nocturne1210 发表于 2013-10-17 21:31:42

            引用 1 楼  的回复:我也遇到了这个问题,配置和你基本一致,查看源码是因为proxy服务的请求没有响应,不知道这个问题你解决了没有?
没。我现在的解决方式就是重装,也不知怎么就好了。。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条