我在尝试安装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
请问这是什么情况?谢谢
|
|