"nova db sync" is racy
Bug #1009546 reported by
Soren Hansen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Unassigned |
Bug Description
If I run "nova db sync" simultaneously on multiple hosts, it very often fails. Migrate apparently doesn't take care to avoid races like this.
I realise this is far from enough information to start fixing this bug. I'm simply reporting it so that I don't forget it.
Changed in nova: | |
status: | New → Confirmed |
tags: | added: db |
Changed in nova: | |
importance: | Undecided → High |
To post a comment you must log in.
I remember we had this problem too. Don't know if you already have ideas on why this happens and how to solve this, however we ended up ensuring we ran db sync on a single host and that each nova upstart script would check that the db was at the right version before starting the service (and failing do to so otherwise).
We did this to get rid of the contention altogether; unless you ensure that nova-manage db sync locks out the entire DB (or tables affected) during the migration process, I cannot see any other way to solve the issue.
Hope this help.