Bug 471830

Summary: ipa_webgui won't start if python-cherrypy is installed
Product: [Fedora] Fedora Reporter: Toshio Ernie Kuratomi <a.badger>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: bashton, mnagy, rcritten, ssorce
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-23 22:23:25 UTC Type: ---
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
the patch none

Description Toshio Ernie Kuratomi 2008-11-17 02:46:46 UTC
Description of problem:

If python-cherrypy (3.x) is installed, ipa_webgui won't start.  This is due to setuptools not being able to find the python-cherrypy2 package in this case.

In order to reproduce and test this, do:

yum install -y python-cherrypy ipa-server

/usr/sbin/ipa_webgui -f

failed to start web gui: (CherryPy 3.0.3 (/usr/lib/python2.5/site-packages), Requirement.parse('CherryPy>=2.3.0,<3.0.0alpha'))
2008-11-16 18:31:35,463 root ERROR failed to start web gui: (CherryPy 3.0.3 (/usr/lib/python2.5/site-packages), Requirement.parse('CherryPy>=2.3.0,<3.0.0alpha'))
  File "/usr/sbin/ipa_webgui", line 196, in <module>
    main()

  File "/usr/sbin/ipa_webgui", line 157, in main
    pkg_resources.require("TurboGears")

  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))

  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 528, in resolve
    raise VersionConflict(dist,req) # XXX put more info here


The attached one line patch will make this work by having the ipa_webgui script say it requires turbogears before any imports are performed.

Comment 1 Simo Sorce 2008-11-17 13:32:38 UTC
I see no patch attached.

Comment 2 Toshio Ernie Kuratomi 2008-11-17 15:28:32 UTC
Created attachment 323774 [details]
the patch

Sorry.  Don't know if it was user error or bugzilla glitch.  here's the patch.

Comment 3 Brennan Ashton 2008-11-19 23:35:54 UTC
This bug has been triaged

Comment 4 Bug Zapper 2008-11-26 05:30:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Toshio Ernie Kuratomi 2009-06-23 22:23:25 UTC
Fixed in bug #505686