The barbican package is missing a dependancy on python-pymysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
barbican (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
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/
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/
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/
2015-12-16 08:07:07.273 20728 ERROR barbican return self.object_
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican **context.
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
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/
2015-12-16 08:07:07.273 20728 ERROR barbican app = loader.
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican name=name, global_
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican return self.object_
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican app = context.
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican return self.object_
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican return fix_call(
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
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/
2015-12-16 08:07:07.273 20728 ERROR barbican repositories.
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican _ENGINE = _get_engine(
2015-12-16 08:07:07.273 20728 ERROR barbican File "/usr/lib/
2015-12-16 08:07:07.273 20728 ERROR barbican raise exception.
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
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Will add a Recommends; not everyone uses mysql as a backend.