MySQLdb doesn't allow None to be passed for password
Bug #829019 reported by
Rick Harris
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Rick Harris |
Bug Description
Received this traceback: http://
The root cause seems to be that SQLAlchemy's `make_url` will return None if the password isn't present. When we try to pass this `None` value to the MySQLdb driver, it complains since it's expecting a string.
The fix here is to do something like:
connection_
After testing that out, it seems to fix the problem.
Notes:
>>> MySQLdb.__version__
'1.2.2'
Related branches
lp:~rconradharris/nova/lp829019
- Matt Dietz (community): Approve
- Ed Leafe (community): Approve
-
Diff: 16 lines (+3/-1)1 file modifiednova/db/sqlalchemy/session.py (+3/-1)
Changed in nova: | |
assignee: | nobody → Rick Harris (rconradharris) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-4 |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.