Revision adc46059
ID | adc460599831f2d1a3b378d562a2fd29b852201c |
Perform allocations in separate transactions
Add ForUpdateManager to the Backend model, in order to guarantee
exclusive order when allocating a VM.
Use manual transactions when allocating Backend and public IP for a new
VM, since these allocations need exclusive access (SELECT..FOR UPDATE)
and running them inside the same transaction with create_server would result
in backends and public networks to be locked until the job is sent to the Ganeti
backend.
Files
- added
- modified
- copied
- renamed
- deleted