ImportError: neutron.hooks.setup_hook

Bug #1454372 reported by Corey Bryant
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
networking-6wind
Fix Committed
Undecided
Unassigned
networking-brocade
Fix Committed
Undecided
Unassigned
networking-odl
Fix Released
Undecided
Unassigned
networking-ovn
Fix Released
Undecided
Unassigned
neutron
Fix Released
High
Russell Bryant

Bug Description

Attempting to pip install master gets "ImportError: neutron.hooks.setup_hook":

2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 ERROR:root:Error parsing
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 Traceback (most recent call last):
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 File "/tmp/pip-akMy3T-build/pbr-0.11.0-py2.7.egg/pbr/core.py", line 109, in pbr
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 attrs = util.cfg_to_args(path)
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 File "/tmp/pip-akMy3T-build/pbr-0.11.0-py2.7.egg/pbr/util.py", line 230, in cfg_to_args
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 hook_fn = resolve_name(hook)
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 File "/tmp/pip-akMy3T-build/pbr-0.11.0-py2.7.egg/pbr/util.py", line 185, in resolve_name
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 raise ImportError(name)
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 ImportError: neutron.hooks.setup_hook
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 error in setup command: Error parsing /tmp/pip-akMy3T-build/setup.cfg: ImportError: neutron.hooks.setup_hook
2015-05-12 17:28:14 INFO unit.nova-compute/0.install logger.go:40 Complete output from command python setup.py egg_info:

If I revert commit 8db41f04d54526104920f3a160203ecf7ef453b0, the error goes away.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This is the commit that I reverted and was able to get rid of the error:

commit 8db41f04d54526104920f3a160203ecf7ef453b0
Author: Cyril Roelandt <email address hidden>
Date: Thu May 7 13:00:38 2015 +0000

    Allow users to run 'tox -epy34'

    With this commit, it is possible to successfully run 'tox -epy34', even though
    only a small amount of tests will actually be run. This is a required step in
    making Neutron compatible with Python 3, as described in the 'Porting to Python
    3' specification.

    This commit:
    - fixes some broken imports, while making sure they still work with Python 3;
    - updates a call to gettext.install;
    - adds a py34 target in tox.ini.

    Change-Id: I91cc7a992d05ea85f7004d1c5a45a1c02cbf1c85
    Blueprint: neutron-python3

Revision history for this message
Russell Bryant (russellb) wrote :

This bug also occurs in gate jobs for projects that have neutron as a dependency (networking-ovn and networking-odl, for example). Here is one such job:

http://logs.openstack.org/93/177893/3/check/gate-networking-ovn-docs/897319f/console.html

Revision history for this message
Russell Bryant (russellb) wrote :
Changed in networking-ovn:
status: New → Confirmed
Changed in networking-odl:
status: New → Confirmed
Changed in networking-6wind:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/182413

Changed in neutron:
assignee: nobody → Russell Bryant (russellb)
status: New → In Progress
Revision history for this message
Maxime Leroy (maxime-leroy) wrote :
Changed in neutron:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/182438

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Russell Bryant (<email address hidden>) on branch: master
Review: https://review.openstack.org/182413
Reason: This should no longer be necessary now that https://review.openstack.org/#/c/182438/ has merged

Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

Should be fixed now for all projects affected. I've marked Neutron as fixed, for others, please check whether it's indeed fixed and do the same.

Changed in neutron:
status: In Progress → Fix Committed
Changed in networking-6wind:
status: Confirmed → Fix Committed
Changed in networking-ovn:
status: Confirmed → Fix Committed
Changed in networking-odl:
status: Confirmed → Fix Committed
Changed in networking-brocade:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-1 → 7.0.0
Changed in networking-ovn:
status: Fix Committed → Fix Released
Changed in networking-odl:
status: Fix Committed → Fix Released
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.