aeolusproject / conductor

Aeolus Conductor
http://www.aeolusproject.org/
Apache License 2.0
32 stars 27 forks source link

BZ 870479 - fixed checking of "stopped after creation" state #392

Closed jprovaznik closed 11 years ago

jprovaznik commented 11 years ago

For rhevm/vsphere an instance goes to 'stopped' state after creation so conductor has to send explicit start request. To distinguish "stopped after creation" state and common "stopped" state conductor checks if last instance launch request was sent after last deployment launch request (there can be multiple launch requests for deployment/instance because of rolblack+retry process).

In some cases it was possible that instance launch request was picked up by delayed_job in same second when the deployment was created, so checking create times by seconds was not precise enough.

jprovaznik commented 11 years ago

This patch was already acked here:https://lists.fedorahosted.org/pipermail/aeolus-devel/2012-November/013323.html Merging.