Ask Your Question
1

pecan version for ceilometer in icehouse swift-proxy

asked 2014-04-23 20:26:30 -0500

august gravatar image

Hi all,

I've been following the docs for Icehouse/Ubuntu 14.04. Got to the section on configuring telemetry for swift ( http://docs.openstack.org/trunk/insta... ) and hit an issue.

added

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

and added ceilometer to the pipeline:

[pipeline:main]
pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server

Restarted swift proxy and see

Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 316, in loadapp
    ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 307, in loadcontext
    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/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, global_conf=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/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, global_conf=global_conf)
  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/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, 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 640, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 632, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (pecan 0.3.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('pecan>=0.4.5'))

Signal proxy-server  pid: 4202  signal: 15
No proxy-server running

pecan on my controller:

root@controller:~# dpkg-query --list | grep pecan
ii  python-pecan                         0.3.0-1ubuntu2                        all          WSGI object-dispatching web framework

requirements.txt also show 0.4.5 requirement:

https://github.com/openstack/ceilomet...

How do i get pecan 0.4.5 on Ubuntu 14.04? Doesn ... (more)

edit retag flag offensive close merge delete

Comments

More info:

# dpkg-query -S /usr/lib/python2.7/dist-packages/ceilometer-2014.1.egg-info/requires.txt
python-ceilometer: /usr/lib/python2.7/dist-packages/ceilometer-2014.1.egg-info/requires.txt

# dpkg-query --list | grep python-ceilometer
ii  python-ceilometer                    2014.1-0ubuntu1                       all          ceilometer python libraries
ii  python-ceilometerclient              1.0.8-0ubuntu1                        all          Client library for Openstack ceilometer server.

I changed the pecan line in requires.txt to 0.3.0, ie:

pecan>=0.3.0

and got this error:

pkg_resources.VersionConflict: (happybase 0.7 (/usr/lib/python2.7/dist-packages), Requirement.parse('happybase>=0.5,!=0.7'))

So it seems that ceilometer-2014.1.egg-info wants something newer than my ubuntu build.

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Trusty Tahr (development branch)
Release:    14.04
Codename:   trusty

I did do this with the beta image (ie prior to full release) but even a dist-upgrade doesn't bring updated ceilometer or pecan packages (which i didn ...(more)

august gravatar imageaugust ( 2014-04-23 20:52:41 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-20 16:35:04 -0500

Brian gravatar image

I just ran into the same problem. I resolved it by installing python-pip then upgrading both pecan and happybase:

apt-get install python-pip
pip install pecan --upgrade
pip install happybase --upgrade
swift-init proxy start
edit flag offensive delete link more
0

answered 2014-05-14 09:43:44 -0500

dmsimard gravatar image

updated 2014-05-14 10:20:19 -0500

Have you ended up filing a bug or finding a solution ?

Hitting the same problem here, packaged from Ubuntu cloud archive for 12.04.

Edit: Found the bug on launchpad: Pecan: https://bugs.launchpad.net/ubuntu/+source/swift/+bug/1317147 (https://bugs.launchpad.net/ubuntu/+so...) Happybase: https://bugs.launchpad.net/ubuntu/+source/swift/+bug/1317381 (https://bugs.launchpad.net/ubuntu/+so...)

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: 2014-04-23 20:26:30 -0500

Seen: 591 times

Last updated: May 20 '14