[Bug 1526659] Re: The barbican package is missing a dependancy on python-pymysql

Launchpad Bug Tracker 1526659 at bugs.launchpad.net
Fri Dec 18 06:41:04 UTC 2015


This bug was fixed in the package barbican - 1:2.0.0~b1-0ubuntu1

---------------
barbican (1:2.0.0~b1-0ubuntu1) xenial; urgency=medium

  [ Corey Bryant ]
  * New upstream milestone for OpenStack Mitaka.
  * d/control: Align (build-)depends with upstream.

  [ James Page ]
  * d/barbican-api.install: Install missing policy.json (LP: #1526655).
  * d/control: Add Recommends on python-pymysql (LP: #1526659).
  * d/control: Add missing runtime dependency on uwsgi-plugin-python
    (LP: #1526654).
  * d/barbican-api.upstart.in: Provide full upstart configuration as
    generation using openstack-pkg-tools is not supported for uwsgi
    applications (LP: #1526654).
  * d/barbican-{api,common}.install,control: Move configuration files to
    common package to support use across all barbican packages and with
    Apache WSGI.

 -- Corey Bryant <corey.bryant at canonical.com>  Tue, 15 Dec 2015 09:57:35
-0500

** Changed in: barbican (Ubuntu Xenial)
       Status: Triaged => Fix Released

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

Title:
   The barbican package is missing a dependancy on python-pymysql

Status in barbican package in Ubuntu:
  Fix Released
Status in barbican source package in Wily:
  Fix Committed
Status in barbican source package in Xenial:
  Fix Released

Bug description:
  [Impact]
  barbican services are not immediately usable with the preferred storage backend, mysql.

  [Test Case]
  Install barbican-api with mysql backend configuration
  Barbican will throw a stack trace whilst trying to create the DB

  [Regression Potential]
  Addition of recommends for pymysql; so minimal.

  [Original Bug Report]
  If barbican is configured to use a mysql database then the barbican-api server fails to start with:

  2015-12-16 08:07:07.273 20728 CRITICAL barbican [-] BarbicanException: Error configuring registry database with supplied sql_connection. Got error: No module named pymysql
  2015-12-16 08:07:07.273 20728 ERROR barbican Traceback (most recent call last):
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
  2015-12-16 08:07:07.273 20728 ERROR barbican     return loadobj(APP, uri, name=name, **kw)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
  2015-12-16 08:07:07.273 20728 ERROR barbican     return context.create()
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
  2015-12-16 08:07:07.273 20728 ERROR barbican     return self.object_type.invoke(self)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
  2015-12-16 08:07:07.273 20728 ERROR barbican     **context.local_conf)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
  2015-12-16 08:07:07.273 20728 ERROR barbican     val = callable(*args, **kw)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
  2015-12-16 08:07:07.273 20728 ERROR barbican     app = loader.get_app(app_name, global_conf=global_conf)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
  2015-12-16 08:07:07.273 20728 ERROR barbican     name=name, global_conf=global_conf).create()
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
  2015-12-16 08:07:07.273 20728 ERROR barbican     return self.object_type.invoke(self)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke
  2015-12-16 08:07:07.273 20728 ERROR barbican     app = context.app_context.create()
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
  2015-12-16 08:07:07.273 20728 ERROR barbican     return self.object_type.invoke(self)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
  2015-12-16 08:07:07.273 20728 ERROR barbican     return fix_call(context.object, context.global_conf, **context.local_conf)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
  2015-12-16 08:07:07.273 20728 ERROR barbican     val = callable(*args, **kw)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/barbican/api/app.py", line 76, in _wrapper
  2015-12-16 08:07:07.273 20728 ERROR barbican     repositories.setup_database_engine_and_factory()
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/barbican/model/repositories.py", line 100, in setup_database_engine_and_factory
  2015-12-16 08:07:07.273 20728 ERROR barbican     _ENGINE = _get_engine(_ENGINE)
  2015-12-16 08:07:07.273 20728 ERROR barbican   File "/usr/lib/python2.7/dist-packages/barbican/model/repositories.py", line 185, in _get_engine
  2015-12-16 08:07:07.273 20728 ERROR barbican     raise exception.BarbicanException(msg)
  2015-12-16 08:07:07.273 20728 ERROR barbican BarbicanException: Error configuring registry database with supplied sql_connection. Got error: No module named pymysql
  2015-12-16 08:07:07.273 20728 ERROR barbican

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/barbican/+bug/1526659/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list