commit c4f2f26edf5cd1f5880f86853fcc611281605e63
Author: Max Lobur <email address hidden>
Date: Wed Jan 22 10:13:39 2014 -0500
Fix race condition when changing node states
To fix race condition we're adding a mechanism of background task
execution in conductor. The conductor will get synchrozed AMQP call,
reserve lock, start the background task and return empty response to
the API. In case when lock cannot be acquired or background tasks pool
is full, the exception is sent back to the API and the task is not
started.
Also the patch adds an ability to control resource locks manually.
This feauture used to release lock in the end of background task.
Reviewed: https:/ /review. openstack. org/69135 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=c4f2f26edf5 cd1f5880f86853f cc611281605e63
Committed: https:/
Submitter: Jenkins
Branch: master
commit c4f2f26edf5cd1f 5880f86853fcc61 1281605e63
Author: Max Lobur <email address hidden>
Date: Wed Jan 22 10:13:39 2014 -0500
Fix race condition when changing node states
To fix race condition we're adding a mechanism of background task
execution in conductor. The conductor will get synchrozed AMQP call,
reserve lock, start the background task and return empty response to
the API. In case when lock cannot be acquired or background tasks pool
is full, the exception is sent back to the API and the task is not
started.
Also the patch adds an ability to control resource locks manually.
This feauture used to release lock in the end of background task.
Change-Id: I4095de2d82058e a5e052531698e67 a0947424435
Closes-Bug: #1259910