Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1061768

Summary: Keystone-all - ImportError: cannot import name deploy
Product: [Community] RDO Reporter: Marcos <lobo>
Component: openstack-keystoneAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ayoung, pbrady, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 14:03:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.