glance db migrations deadlock against precise mysql server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Adam Gandelman | ||
glance (Ubuntu) |
Fix Released
|
High
|
Adam Gandelman |
Bug Description
Running 'glance db_sync' against an external mysql server (mysql-server-5.5 5.5.17-4ubuntu6) glance appears to deadlock in 003_add_
| glance | 10.252.28.238:60409 | glance | Sleep | 26 | | NULL |
| 5837 | glance | 10.252.28.238:60410 | glance | Query | 26 | Waiting for table metadata lock | ALTER TABLE images ADD disk_format VARCHAR(20) |
I've confirmed that pointing at an oneiric mysql server (mysql-server-5.1 5.1.58-1ubuntu1) does not run into the same problems. Its probably worth noting that mysql 5.5 ships with a different configuration, most notably enabling InnoDB by default, tho I could not reproduce on oneiric using InnoDB.
FWIW, I've also found that this only becomes a problem if I've deployed everything once, automated using Juju, then manually 'drop database glance ; create database glance;' and attempt to rerun the migrations. After its been dropped and recreated, it deadlocks 100% of the time.
Changed in glance (Ubuntu): | |
assignee: | nobody → Adam Gandelman (gandelman-a) |
importance: | Undecided → High |
status: | New → In Progress |
summary: |
- glance db migrations fail against precise mysql server + glance db migrations deadlock against precise mysql server |
Changed in glance: | |
milestone: | none → essex-4 |
importance: | Undecided → Low |
Changed in glance (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-4 → 2012.1 |
Fix proposed to branch: master /review. openstack. org/4176
Review: https:/