gbp-db-manage (ImportError: cannot import name log)

Bug #1637312 reported by Igor Meneguitte Ávila
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy
Incomplete
Undecided
Unassigned

Bug Description

I'm trying to install GBP in OpenStack Kilo with Ubuntu 14.04.

I used the following documentation: https://wiki.openstack.org/wiki/GroupBasedPolicy/InstallUbuntu

I do not know if the step 5 may be the problem.

Step 5: sed -i 's/gbpautomation/group_based_policy_automation/g' /usr/lib/python2.7/dist-packages/gbpautomation/__init__.py

When I run the following command (gbp-db-manage --config-file /etc/neutron/neutron.conf upgrade head) shows the error below.

Traceback (most recent call last):
  File "/usr/bin/gbp-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/gbpservice/neutron/db/migration/cli.py", line 24, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 105, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 229, in run_sanity_checks
    script_dir.run_env()
  File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 382, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 241, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/dist-packages/gbpservice/neutron/db/migration/alembic_migrations/env.py", line 22, in <module>
    from gbpservice.neutron.db.migration.models import head # noqa
  File "/usr/lib/python2.7/dist-packages/gbpservice/neutron/db/migration/models/head.py", line 17, in <module>
    from gbpservice.neutron.db.grouppolicy import group_policy_db # noqa
  File "/usr/lib/python2.7/dist-packages/gbpservice/neutron/db/grouppolicy/group_policy_db.py", line 23, in <module>
    from neutron.openstack.common import log as logging
ImportError: cannot import name log

Any idea? Thank you.

Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

Hi, It seems that you might have mismatch of versions. I think you are installing Juno GBP with Kilo Neutron.

Changed in group-based-policy:
status: New → Incomplete
Revision history for this message
Igor Meneguitte Ávila (igoravila) wrote :

how to install in kilo version?
have you documentation?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.