ImportError: No module named middleware.auth_token

Bug #1161704 reported by gxfuntu
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-keystoneclient (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I followed the document "OpenStack Install and Deploy Manual" to install Keystone and Swift.
When I tried to start Swift proxy service with command "swift-init proxy start",
the error "ImportError: No module named middleware.auth_token" showed up.

After trapping in this issue a few days with several times do-over, I found out where the problem is.
It seems like the folder "middleware" in "/usr/lib/python2.7/dist-packages/keystoneclient/" is missing,
when use "apt-get install python-keystoneclient" to install the keystoneclient in Ubuntu.

I found the "middleware" folder in "/usr/lib/python2.7/dist-packages/keystone/".
After copy the the "middleware" folder from "/usr/lib/python2.7/dist-packages/keystone/" to "/usr/lib/python2.7/dist-packages/keystoneclient/", the Swift proxy service works find now.

Revision history for this message
Dolph Mathews (dolph) wrote :

auth_token has been moved from keystone.middleware.auth_token to keystoneclient.middleware.auth_token

The docs you're referring to (2013.1 / grizzly?) appear to be ahead of the version of keystone you're trying to install (2012.2 / folsom?).

Changed in keystone:
status: New → Invalid
Revision history for this message
gxfuntu (gxfuntu) wrote :

I know auth_token has been moved.
The problem is, there is no auth_token in keystoneclient which I installed by "apt-get install python-keystoneclient" in Ubuntu.
The version of keystoneclient is "1:0.1.3-0ubuntu1.1".
I think the keystoneclient in Ubuntu repository should update.

Revision history for this message
Dolph Mathews (dolph) wrote :

Agree; I assume python-keystoneclient will be revised as part of the grizzly series of package updates, but moving this bug just to be sure.

affects: keystone → python-keystoneclient (Ubuntu)
Changed in python-keystoneclient (Ubuntu):
status: Invalid → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-keystoneclient (Ubuntu):
status: New → Confirmed
Revision history for this message
Mehmet Hacısalihoğlu (esedmehmet) wrote :

Hi,

I same this error message and I can't install Keystone.

Revision history for this message
Jorge (jorgedr) wrote :

I had the same issue and after installing the keystoneclient it started worked. I checked and the /usr/lib/python2.7/dist-packages/keystoneclient/middleware directory was installed with it.

Chuck Short (zulcss)
Changed in python-keystoneclient (Ubuntu):
status: Confirmed → 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.