← Back to team overview

openstack team mailing list archive

Re: Swift proxy and swift-informant

 

swob is not a separate package, it is part of the swift core. You may
either get older version of informant which does not use swob or upgrade
swift.

Tong Li
Emerging Technologies & Standards
Building 501/B205
litong01@xxxxxxxxxx



From:	Giovanni Colapinto <giovanni.colapinto@xxxxxxxxx>
To:	openstack@xxxxxxxxxxxxxxxxxxx,
Date:	04/04/2013 04:26 AM
Subject:	[Openstack] Swift proxy and swift-informant
Sent by:	openstack-bounces+litong01=us.ibm.com@xxxxxxxxxxxxxxxxxxx



Hi to all.

I try to configure swift proxy to work with swift-informant.

I've installed swift-informant and add/modify the following section
to /etc/swift/proxy-server.conf:

[pipeline:main]
pipeline = informant healthcheck cache swift3 authtoken keystone
proxy-server

[filter:informant]
use = egg:informant#informant
statsd_host = 10.0.1.154
metric_name_prepend = inndig.

When I start proxy-server it returns the following error:

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 138,
in run_wsgi
    loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
271, in loadobj
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
562, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
454, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
406, in get_context
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
620, in get_context
    object_type, name=name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
646, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2017, in
load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File
"/usr/local/lib/python2.7/dist-packages/informant-0.0.10-py2.7.egg/informant/middleware.py",
 line 16, in <module>
    from swift.common.swob import Request
ImportError: No module named swob

Searching on google I understand that swob is a module of swift >= 1.7.5,
but on my ubuntu 12.10 swift is 1.7.4

How can I resolv this situation? Is there a way to upgrade swift?

Thank you_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

GIF image


Follow ups

References