Bug 1104236

Summary: Exception while running keystone on httpd
Product: [Community] RDO Reporter: Jose Castro Leon <jose.castro.leon>
Component: openstack-keystoneAssignee: Adam Young <ayoung>
Status: CLOSED CURRENTRELEASE QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: apevec, ayoung, jose.castro.leon, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 23:27:43 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:
Attachments:
Description Flags
Patch for wsgi keystone file none

Description Jose Castro Leon 2014-06-03 15:12:57 UTC
Created attachment 901822 [details]
Patch for wsgi keystone file

Description of problem:
When running Keystone in httpd using the configuration guide proposed upstream it gives an exception while loading due to missing paste deploy.
This behavior was patched in keystone-all but not on the wsgi.

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

How reproducible:
100%

Steps to Reproduce:
1. Install RPM and HTTPD
2. Create httpd configuration that points to wsgi file in /usr/share/keystone
3. Start httpd service

Actual results:
[Tue Jun 03 17:01:56 2014] [error] Traceback (most recent call last):
File "/var/www/cgi-bin/keystone/main", line 20, in <module>
     from paste import deploy
 ImportError: cannot import name deploy

Expected results:
No error

Additional info:
It seems that the wsgi file is was not patched like in:
  https://github.com/redhat-openstack/keystone/commit/e053026a

Comment 1 Adam Young 2014-06-03 21:02:26 UTC
Iwas able to deploy without this change.  I think that there is an RPM dependency missing. I think you need python-paste-deploy

Comment 2 Jose Castro Leon 2014-06-24 08:17:20 UTC
There is something weird here, I have just installed python-paste-deploy and it works without the patch. I have now this two packages installed

Installed Packages
python-paste-deploy1.5.noarch  1.5.0-5.el6   @epel
python-paste-deploy.noarch     1.3.3-2.1.el6 @slc6-os

Keystone package has as a dependency only on:
python-paste-deploy1.5

Any ideas?

Comment 3 Alan Pevec 2015-03-19 23:27:43 UTC
Fixed in RDO Icehouse where we introduced updated python-* packages for EL6 in RDO repo instead of using parallel installable versions which were a pain to maintain.