Bug 868357 - python-keystone-auth-token overlaps with python-keystone causes missing import
Summary: python-keystone-auth-token overlaps with python-keystone causes missing import
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-keystone
Version: 18
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Alan Pevec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-19 15:12 UTC by Attila Fazekas
Modified: 2012-11-14 07:09 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 875018 (view as bug list)
Environment:
Last Closed: 2012-11-14 07:09:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
yum.log (24.14 KB, text/plain)
2012-11-08 22:57 UTC, Dennis Jacobfeuerborn
no flags Details
yum.log (29.47 KB, text/plain)
2012-11-08 23:08 UTC, Chris Ricker
no flags Details

Description Attila Fazekas 2012-10-19 15:12:04 UTC
Description of problem:
$rpm -qf /usr/lib/python2.7/site-packages/keystone/middleware/__init__.py
 python-keystone-auth-token-2012.2-1.fc18.noarch
 python-keystone-2012.2-1.fc18.noarch

Indicates the overlap.

The __init__.py  is an empty file.

Exception part:
raise ImportError("%r has no %r attribute" % (entry,attr))
ImportError: <module 'keystone.middleware' from '/usr/lib/python2.7/site-packages/keystone/middleware/__init__.py'> has no 'NormalizingFilter' attribute


Steps to Reproduce:
1. yum remove -y python-keystone-auth-token
2. yum install -y openstack-keystone

  
Actual results:

/usr/lib/python2.7/site-packages/keystone/middleware/__init__.py is empty

Expected results:
/usr/lib/python2.7/site-packages/keystone/middleware/__init__.py imports the  middleware.core.


workaround: 
yum reinstall -y python-keystone

Related issue: #844508

Comment 1 Alan Pevec 2012-10-19 17:54:40 UTC
Where do you get Exception i.e. what's step 3. in steps to reproduce?

Comment 2 Attila Fazekas 2012-11-05 13:10:32 UTC
If the "/usr/lib/python2.7/site-packages/keystone/middleware/__init__.py" empty the issue reproduced.

The exception is from the /var/log/messages after a start attempt.
$ service openstack-keystone start
$ grep -A 2 Import /var/log/messages 

The issue happens even on the first install, without changing the config file.

Comment 3 Chris Ricker 2012-11-08 12:14:18 UTC
I see this too - can reproduce by following the steps in

https://fedoraproject.org/wiki/Test_Day:2012-09-18_OpenStack#Fedora_18

on a freshly built F18 server

Comment 4 Alan Pevec 2012-11-08 21:54:56 UTC
Could you please provide /var/log/yum.log when this happens? Thanks.

Comment 5 Dennis Jacobfeuerborn 2012-11-08 22:57:53 UTC
Created attachment 641102 [details]
yum.log

I'm seeing this too and have attached a yum.log.

Comment 6 Chris Ricker 2012-11-08 23:08:21 UTC
Created attachment 641106 [details]
yum.log

another yum.log from a machine with the issue for comparison

Comment 7 Alan Pevec 2012-11-09 00:15:14 UTC
I couldn't reproduce, so it must be randomness in executing post/triggers.
But given that auth-token doesn't work standalone in Folsom anyway (bug 844508) I'll drop auth-token subpackage. It will return as a part of Grizzly python-keystoneclient: https://blueprints.launchpad.net/keystone/+spec/authtoken-to-keystoneclient-repo

Comment 8 Fedora Update System 2012-11-09 01:20:05 UTC
openstack-keystone-2012.2-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/openstack-keystone-2012.2-3.fc18

Comment 9 Fedora Update System 2012-11-09 21:10:18 UTC
Package openstack-keystone-2012.2-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-keystone-2012.2-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17926/openstack-keystone-2012.2-3.fc18
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-11-13 19:07:57 UTC
Package openstack-keystone-2012.2-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-keystone-2012.2-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17926/openstack-keystone-2012.2-4.fc18
then log in and leave karma (feedback).


Note You need to log in before you can comment on or make changes to this bug.