← Back to team overview

openstack team mailing list archive

Re: Attempting to start up swift-proxy and failing on startup


Thanks Chmouel that did the trick!

Best Regards,
JJ Asghar

From: launchpad@xxxxxxxxxxx [mailto:launchpad@xxxxxxxxxxx] On Behalf Of Chmouel Boudjnah
Sent: Tuesday, January 03, 2012 1:28 AM
To: Asghar, Jonathan Edward (HP Cloud Services NOC)
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] Attempting to start up swift-proxy and failing on startup


You won't need the default_swift_cluster setting usually comment it and your swift cluster should start. if you really do then the format specified is incorrect, look at the commented config file here :



On Tue, Jan 3, 2012 at 3:40 AM, Asghar, Jonathan Edward (HP Cloud Services NOC) <jonathan.asghar@xxxxxx<mailto:jonathan.asghar@xxxxxx>> wrote:
Hi, I was attempting to start up a swift proxy on a test environment and it seems I'm running into a wall.  My object-nodes are working fine from what I can see but it seems that my proxy won't start at all.

The error I get starting it up is this:

root@proxy:~# swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
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 "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 123, in run_wsgi
    loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 168, in invoke
    app = filter(app)
  File "/usr/lib/pymodules/python2.7/swauth/middleware.py", line 1463, in auth_filter
    return Swauth(app, conf)
  File "/usr/lib/pymodules/python2.7/swauth/middleware.py", line 123, in __init__
    raise Exception('Invalid cluster format')
Exception: Invalid cluster format

My proxy-server.conf is as follows:

root@proxy:~# cat /etc/swift/proxy-server.conf
bind_port = 443
cert_file = /etc/swift/cert.crt
key_file = /etc/swift/cert.key
workers = 8
user = swift

pipeline = healthcheck cache swauth proxy-server
#pipeline = healthcheck cache auth proxy-server

use = egg:swift#proxy
allow_account_management = true

use = egg:swauth#swauth
set log_name = swauth
super_admin_key = swauthkey
default_swift_cluster =

#use = egg:swift#auth
#ssl = true

use = egg:swift#healthcheck

use = egg:swift#memcache
memcache_servers =<>

I've done the googling on this, and it looks like most people have trouble with the auth part, it's either "uth" or "sauth" or "wauth" when it should be "swauth."  As you can see I've tried both (the commented line) but my goal is swauth so I'm asking with this configuration.
Any advice or direction would be greatly appreciated!  Thanks!

Best Regards,
JJ Asghar
HP Cloud Services
512-619-0722 - Cell

Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp