AttributeError: 'module' object has no attribute 'quantum'

Bug #1125632 reported by Bob Melander
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Julie Pichon

Bug Description

When trying to login on dashboard I keep getting AttributeError for api.quantum.

It seems to happen in file 'openstack_dashboard/api/network.py' when NetworkClient.__init__() is calling api.quantum.FloatingIpManager(request).

I can see that no 'quantum.pyc' file is generated for 'quantum.py'. For all the other .py-files in the 'api' directory a corresponding .pyc has been generated.

I'm using Grizzly trunk.

description: updated
Changed in horizon:
status: New → Confirmed
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

For now, this can be solved modifying the file openstack_dashboard/api/__init__.py to look like this https://github.com/openstack/horizon/blob/dbfcc97e899417a0c1838a7b976b27e499b858ff/openstack_dashboard/api/__init__.py

Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Critical
milestone: none → grizzly-3
Julie Pichon (jpichon)
Changed in horizon:
assignee: nobody → Julie Pichon (jpichon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/22212
Committed: http://github.com/openstack/horizon/commit/63203ab1069999f81b9518c11da29eb8ca537077
Submitter: Jenkins
Branch: master

commit 63203ab1069999f81b9518c11da29eb8ca537077
Author: Julie Pichon <email address hidden>
Date: Mon Feb 18 12:33:54 2013 +0000

    Resolve API import issues (quantum)

    Restore the imports in the api init file, without including the "from"
    to ensure api calls still must specify "api.nova", "api.quantum", etc.

    Fixes bug #1125632

    Change-Id: I981105ce0ed7f1352de42fe2c0620665ba378823

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: grizzly-3 → 2013.1
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.