Ask Your Question
0

Install Multi-node of swift failed

asked 2011-08-09 02:39:05 -0500

gyliu gravatar image

Hi, I was now trying to install multi-node swift, but failed to start up proxy-server.

I was using swauth, and I can create a single node successfully, but failed to create multi-node, can anyone give some help?

Thanks in advance!

/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf /usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py:8: UserWarning: Module netifaces was already imported from /usr/lib/pymodules/python2.6/netifaces.so, but /usr/lib/pymodules/python2.6 is being added to sys.path import pkg_resources Traceback (most recent call last): File "/usr/bin/swift-proxy-server", line 22, in <module> run_wsgi(conf_file, 'proxy-server', default_port=8080, *options) File "/root/swift/trunk/swift/common/wsgi.py", line 122, in run_wsgi File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 204, in loadapp return loadobj(APP, uri, name=name, *kw) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 224, in loadobj global_conf=global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext global_conf=global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 278, in _loadconfig return loader.get_context(object_type, name, global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 405, in get_context global_additions=global_additions) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 503, in _pipeline_app_context for name in pipeline[:-1]] File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 409, in get_context section) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 431, in _context_from_use object_type, name=use, global_conf=global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 361, in get_context global_conf=global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext global_conf=global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 285, in _loadegg return loader.get_context(object_type, name, global_conf) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 561, in get_context object_type, name=name) File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point possible.append((entry.load(), protocol, entry.name)) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named middleware.healthcheck

root@proxy-node:/etc/swift# cat proxy-server.conf [DEFAULT] bind_port = 443 bind_ip = 172.17.27.230 cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key user = swiftdemo log_facility = LOG_LOCAL1

[pipeline:main] pipeline = healthcheck cache swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true

[filter:swauth] use = egg:swauth#swauth super_admin_key = swauthkey default_swift_cluster = local#https://172.17.27.230:443/v1

[filter:healthcheck] use = egg:swift#healthcheck

[filter:cache] use = egg:swift#memcache

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-08-12 21:39:40 -0500

I had same problem. Solution was: 1) Use port 8080 2) Don't use 127.0.0.1 for any IP in any config. They were 127.0.0.1 on storage nodes. (in object-server.conf etc...)

In /var/log/syslog I saw Aug 12 15:16:48 proxyServer proxy-server ERROR with Account server 192.168.0.11:6002/sdb1 re: Trying to PUT to /v1/AUTH_.auth: Connection refused (txn: tx0d42514a-91f6-4960-b90c-7ffe8a83e292) Aug 12 15:16:48 proxyServer proxy-server ERROR with Account server 192.168.0.12:6002/sdb1 re: Trying to PUT to /v1/AUTH_.auth: Connection refused (txn: tx0d42514a-91f6-4960-b90c-7ffe8a83e292) Aug 12 15:16:48 proxyServer proxy-server Error connecting to memcached: 127.0.0.1:11211

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-09 02:39:05 -0500

Seen: 44 times

Last updated: Aug 12 '11