RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1061768 - Keystone-all - ImportError: cannot import name deploy
Summary: Keystone-all - ImportError: cannot import name deploy
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RDO
Classification: Community
Component: openstack-keystone
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-05 15:26 UTC by Marcos
Modified: 2016-04-26 21:20 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-06 14:03:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Marcos 2014-02-05 15:26:59 UTC
Description of problem:
I've installed havana-7 release. Then, I applied a patch from github platform. After that, keystone-all raises this error:

Traceback (most recent call last):
  File "/usr/bin/keystone-all", line 35, in <module>
    from paste import deploy
ImportError: cannot import name deploy

Version-Release number of selected component (if applicable):
rdo-release-havana-7.noarch.rpm

How reproducible:
You install rdo-release-havana-7.noarch.rpm, then clone keystone from github and then try to run keystone-all

Steps to Reproduce:
1. $ yum install -y http://repos.fedorapeople.org/repos/openstack/openstack-havana/rdo-release-havana-7.noarch.rpm ; yum install -y openstack-packstack ; packstack --allinone --os-neutron-install=n --os-ceilometer-install=n
2. $ git clone https://github.com/openstack/keystone.git
   $ cd keystone
   $ python setup.py install
3. $keystone-all

Actual results:
Traceback (most recent call last):
  File "/usr/bin/keystone-all", line 35, in <module>
    from paste import deploy
ImportError: cannot import name deploy

Expected results:
Keystone working.

Additional info:

The solution for me was to install python-routes and python-paste-deploy. I think these libraries should be included on the RPM requirements.

Comment 1 Pádraig Brady 2014-02-06 14:03:37 UTC
So there are patches to the packaged keystone to allow it to pick up the correct _parallel installed_ versions of various python modules.

You can see the patches here:
  https://github.com/redhat-openstack/keystone/commits/el6-havana-patches
Specifically:
  https://github.com/redhat-openstack/keystone/commit/e053026a

You might get by with applying the above to your git clone.
Alternatively you might consider using `python setup.py sdist`
to generate a tarball, and then recreate an rpm from that.

thanks.


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