[Bug 1652754] Re: ImportError: cannot import name certificate_manager

Corey Bryant corey.bryant at canonical.com
Thu Jan 5 15:21:34 UTC 2017


*** This bug is a duplicate of bug 1570356 ***
    https://bugs.launchpad.net/bugs/1570356

Correction on my previous statement.  This is fixed upstream in 3.0.0
and needs to be backported to 2.0.0.

As a work-around you can use barbican on xenial from the latest ubuntu
cloud archive (Newton):

sudo add-apt-repository cloud-archive:newton
sudo apt update

And that should get you to 3.0.0.

** This bug has been marked a duplicate of bug 1570356
   unable to load plugins in Centos

-- 
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/1652754

Title:
  ImportError: cannot import name certificate_manager

Status in barbican package in Ubuntu:
  New

Bug description:
  Ubuntu 16.04

  Package: barbican-api
  Version: 1:2.0.0-0ubuntu1
  Priority: extra
  Section: universe/net
  Source: barbican
  Origin: Ubuntu
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Original-Maintainer: PKG OpenStack <openstack-devel at lists.alioth.debian.org>
  Bugs: https://bugs.launchpad.net/ubuntu/+filebug
  Installed-Size: 20,5 kB
  Depends: barbican-common (= 1:2.0.0-0ubuntu1), libapache2-mod-wsgi
  Recommends: apache2 (>= 2.4.18~) | httpd
  Homepage: https://github.com/openstack/barbican
  Download-Size: 2 734 B
  APT-Manual-Installed: yes
  APT-Sources: http://ru.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
  Description: OpenStack Key Management Service - API Server
   The Barbican project provides services for secure storage, provisioning and
   management of sensitive client secret information such as encryption keys. It
   is aims at being useful for all environments, including large ephemeral
   Clouds.
   .
   This package contains the Barbican API Server.

  Package: barbican-common
  Version: 1:2.0.0-0ubuntu1
  Priority: extra
  Section: universe/net
  Source: barbican
  Origin: Ubuntu
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Original-Maintainer: PKG OpenStack <openstack-devel at lists.alioth.debian.org>
  Bugs: https://bugs.launchpad.net/ubuntu/+filebug
  Installed-Size: 63,5 kB
  Depends: adduser, python-barbican (= 1:2.0.0-0ubuntu1), python:any
  Breaks: barbican-api (<< 1:2.0.0~b1-0ubuntu1~)
  Replaces: barbican-api (<< 1:2.0.0~b1-0ubuntu1~)
  Homepage: https://github.com/openstack/barbican
  Download-Size: 10,4 kB
  APT-Manual-Installed: no
  APT-Sources: http://ru.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
  Description: OpenStack Key Management Service - common files
   The Barbican project provides services for secure storage, provisioning and
   management of sensitive client secret information such as encryption keys. It
   is aims at being useful for all environments, including large ephemeral
   Clouds.
   .
   This package contains common files for Barbican.

  Package: barbican-worker
  Version: 1:2.0.0-0ubuntu1
  Priority: extra
  Section: universe/net
  Source: barbican
  Origin: Ubuntu
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Original-Maintainer: PKG OpenStack <openstack-devel at lists.alioth.debian.org>
  Bugs: https://bugs.launchpad.net/ubuntu/+filebug
  Installed-Size: 29,7 kB
  Depends: barbican-common (= 1:2.0.0-0ubuntu1), init-system-helpers (>= 1.18~), lsb-base (>= 4.1+Debian11ubuntu7)
  Homepage: https://github.com/openstack/barbican
  Download-Size: 4 694 B
  APT-Manual-Installed: yes
  APT-Sources: http://ru.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
  Description: OpenStack Key Management Service - Worker Node
   The Barbican project provides services for secure storage, provisioning and
   management of sensitive client secret information such as encryption keys. It
   is aims at being useful for all environments, including large ephemeral
   Clouds.
   .
   This package contains the Barbican Worker Node.


  have this error in logs in apache (barbican-api):

  Could not load 'simple_certificate_event': cannot import name certificate_manager
  cannot import name certificate_manager
  Traceback (most recent call last):
     File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 163, in _load_plugins
       verify_requirements,
     File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 123, in _load_one_plugin
       verify_requirements,
     File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 184, in _load_one_plugin
       plugin = ep.resolve()
     File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
       module = __import__(self.module_name, fromlist=['__name__'], level=0)
     File "/usr/lib/python2.7/dist-packages/barbican/plugin/simple_certificate_manager.py", line 19, in <module>
       from barbican.plugin.interface import certificate_manager as cert
   ImportError: cannot import name certificate_manager


  and this in barbican-worker
  дек 27 12:54:57 os-controller02 systemd[1]: Starting OpenStack Barbican Key Management Workers...
  дек 27 12:54:57 os-controller02 systemd[1]: Started OpenStack Barbican Key Management Workers.
  дек 27 12:55:00 os-controller02 barbican-worker[16720]: Could not load 'simple_certificate_event': cannot import name certificate_manager
  дек 27 12:55:00 os-controller02 barbican-worker[16720]: cannot import name certificate_manager
  дек 27 12:55:00 os-controller02 barbican-worker[16720]: Traceback (most recent call last):
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 163, in _load_plugins
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:     verify_requirements,
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:   File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 123, in _load_one_plugin
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:     verify_requirements,
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 184, in _load_one_plugin
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:     plugin = ep.resolve()
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:   File "/usr/lib/python2.7/dist-packages/barbican/plugin/simple_certificate_manager.py", line 19, in <module>
  дек 27 12:55:00 os-controller02 barbican-worker[16720]:     from barbican.plugin.interface import certificate_manager as cert
  дек 27 12:55:00 os-controller02 barbican-worker[16720]: ImportError: cannot import name certificate_manager
  дек 27 12:55:00 os-controller02 barbican-worker[16720]: 2016-12-27 12:55:00.794 16720 INFO barbican.model.repositories [-] Setting up database engine and session factory
  дек 27 12:55:01 os-controller02 barbican-worker[16720]: 2016-12-27 12:55:01.327 16720 INFO barbican.model.repositories [-] Updating schema to latest version
  дек 27 12:55:01 os-controller02 barbican-worker[16720]: 2016-12-27 12:55:01.357 16720 INFO alembic.runtime.migration [-] Context impl PostgresqlImpl.
  дек 27 12:55:01 os-controller02 barbican-worker[16720]: 2016-12-27 12:55:01.359 16720 INFO alembic.runtime.migration [-] Will assume transactional DDL.
  дек 27 12:55:01 os-controller02 barbican-worker[16720]: 2016-12-27 12:55:01.391 16720 INFO barbican.queue.server [-] Starting the TaskServer

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



More information about the Ubuntu-openstack-bugs mailing list