Install Multi-node of swift failed

Asked by Guangya Liu on 2011-08-09

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

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
2011-08-09
Last reply:
2011-08-12

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

Can you help with this problem?

Provide an answer of your own, or ask Guangya Liu for more information if necessary.

To post a message you must log in.