Bug 475854
Summary: | Django requires MySQLdb-1.2.1p2 t run properly. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Joe Sauer <jsauer> |
Component: | MySQL-python | Assignee: | Tom Lane <tgl> |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 5.4 | CC: | azelinka, christof, cww, eric.moret, hhorak, iannis, jplans, jwest, kvolny, madko, michel, mmcgrath, rbinkhor, rdassen, rh, sgallagh, tao, tetsuya.morimoto |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-21 05:29:26 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: | |||
Bug Depends On: | |||
Bug Blocks: | 502912, 590060, 668957, 719046 |
Description
Joe Sauer
2008-12-10 20:01:36 UTC
One way out is to upgrade MySQL-python; either way, it's either a bcfg2-server bug (if it can only use MySQL backend) or a MySQL-python bug. Unless we are to split out Django's database backends, and disable the mysql backend on EPEL for the time being. Seems rather drastic, given that the other backends work just fine. Don't hold your breath waiting for a MySQL-python rebase in RHEL-5; in previous go-rounds it's taken literally years to get permission to fix anything in that package :-( Still, we seem to have managed to get into a state where RHEL-5 is shipping an older version than RHEL-4 (1.2.1 vs 1.2.1p2), which is definitely a bad thing. I'll put this into the request queue for 5.4 and we'll see what happens. From what I understand, these are the issues with 1.2.1 http://groups.google.com/group/django-developers/browse_thread/thread/490b8f7eea86873f http://wolfram.kriesing.de/blog/index.php/2006/multithreading-with-mysqldb-and-weakrefs Hmph. So the actual problem here is that the django people completely failed to think about whether their minimum requirement was 1.2.1, or 1.2.1_p2. As per our mailing list discussion just now, the two versions are equivalent if you're talking to a 4.1 or newer mysql server; or at least that's what the author says. If we were going to do a rebase in RHEL-5, the appropriate target would be 1.2.2 (or maybe 1.2.3, if it's final by the time permission comes through). This would fix a few bugs, but the odds of it happening are not good unless a few requests get escalated through the Proper Channels :-( This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". *** Bug 472195 has been marked as a duplicate of this bug. *** *** Bug 622370 has been marked as a duplicate of this bug. *** This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. could we have the steps to reproduce clarified? I've tried to install the packages, run "bcfg2-admin init", changed database_* records in /etc/bcfg2.conf, started mysqld, created user & database according to those settings, started bcfg2-server service, run bcfg-info ... and no traceback happened Same problem here with django. Just create a new django project. Modify the settings.py to use your mysql-server. Try to sync the database (./manage.py syncdb): ./manage.py syncdb --noinput Traceback (most recent call last): File "./manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 362, in execute_manager utility.execute() File "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 221, in execute self.validate() File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.4/site-packages/django/core/management/validation.py", line 22, in get_validation_errors from django.db import models, connection File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 41, in ? backend = load_backend(settings.DATABASE_ENGINE) File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 17, in load_backend return import_module('.base', 'django.db.backends.%s' % backend_name) File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", line 22, in ? raise ImproperlyConfigured("MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.__version__) django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0181.html |