[Bug 1515409] Re: swift proxy with ceilometer pipeline fails to start version conflict

Matt Wear wearmg at inhs.org
Thu Nov 12 22:33:40 UTC 2015


Hi Chris, 
That fixed my problem.  swift-proxy is now able to start with ceilometer in the pipeline.  The No Handlers message was there previously and is unrelated:

root at labproxy01:~# swift-init proxy start
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', **options))
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 445, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 354, in loadapp
    ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 338, 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 61, 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 61, 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 61, 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: (python-neutronclient 2.3.11 (/usr/lib/python2.7/dist-packages), Requirement.parse('python-neutronclient>=2.4.0,<2.5.0'))

root at labproxy01:~# dpkg -i /tmp/python-ceilometer_2015.1.2-0ubuntu1.1_all.deb 
(Reading database ... 100006 files and directories currently installed.)
Preparing to unpack .../python-ceilometer_2015.1.2-0ubuntu1.1_all.deb ...
Unpacking python-ceilometer (2015.1.2-0ubuntu1.1) over (2015.1.2-0ubuntu1~cloud0) ...
Setting up python-ceilometer (2015.1.2-0ubuntu1.1) ...
root at labproxy01:~# swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
No handlers could be found for logger "ceilometer.openstack.common.versionutils"

root at labproxy01:~# swift-init proxy status
proxy-server running (8136 - /etc/swift/proxy-server.conf)
root at labproxy01:~#

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceilometer in Ubuntu.
https://bugs.launchpad.net/bugs/1515409

Title:
  swift proxy with ceilometer pipeline fails to start  version conflict

Status in Ubuntu Cloud Archive:
  Triaged
Status in ceilometer package in Ubuntu:
  Invalid
Status in python-ceilometerclient package in Ubuntu:
  Invalid
Status in python-neutronclient package in Ubuntu:
  Invalid
Status in python-oslo.concurrency package in Ubuntu:
  Invalid
Status in ceilometer source package in Vivid:
  Fix Committed
Status in python-ceilometerclient source package in Vivid:
  New
Status in python-neutronclient source package in Vivid:
  New
Status in python-oslo.concurrency source package in Vivid:
  New

Bug description:
  on a swift proxy server using ceilometer in the pipeline I get the
  following error after doing updates in kilo from the cloud archive
  from python-ceilometer 2015.1.0-0ubuntu1~cloud0 to
  2015.1.2-0ubuntu1~cloud0

  root at labproxy02:~# swift-init proxy start
  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', **options))
    File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 445, in run_wsgi
      loadapp(conf_path, global_conf=global_conf)
    File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 354, in loadapp
      ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
    File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 338, 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 61, 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 61, 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 61, 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: (python-neutronclient 2.3.11 (/usr/lib/python2.7/dist-packages), Requirement.parse('python-neutronclient>=2.4.0,<2.5.0'))

  
  If i pull ceilometer out of the pipeline swift-init proxy start processes without issue.  If I install the updated dependancies with pip I am able to start the proxy server without issues:
  pip install python-neutronclient==2.4.0
  pip install python-ceilometerclient==1.1.1
  pip install oslo.concurrency==1.8.2

  after updating those packages I am able to start the swift-proxy server.  Can these dependencies be reviewed / updated in the cloud archive?
  Thanks,
  -Matt

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1515409/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list