cloudstack/tools/marvin
Will Stevens 10bcf2955a Merge pull request #1529 from mike-tutkowski/marvin_replace_sleep
Marvin: Replace a timer.sleep(30) with pulling logichttps://issues.apache.org/jira/browse/CLOUDSTACK-9374

From the ticket:

In the base.py file, there is a Host class with a delete instance method.

This method first attempts to transition the host into the maintenance resource state.

The first step in this process is to transition the host into the prepare-for-maintenance resource state.

A while later, the host can be transitioned completely into the maintenance resource state.

In an attempt to wait for this transition to occur, the delete method has a timer.sleep(30) call.

The hope is that the host will have transitioned from the prepare-for-maintenance resource state to the maintenance resource state within 30 seconds, but this does not always happen.

We should correct this problem by putting in logic to query the management server for the resource state of the host. If it's in the expected state, move on; else, sleep for a bit and try again (up to a certain limit).

* pr/1529:
  Replace a timer.sleep(30) with pulling logic

Signed-off-by: Will Stevens <williamstevens@gmail.com>
2016-05-11 00:03:59 -04:00
..
marvin Merge pull request #1529 from mike-tutkowski/marvin_replace_sleep 2016-05-11 00:03:59 -04:00
CHANGES.txt Missing LICENSE headers for sandbox and __init__.py's 2012-08-04 17:29:47 +05:30
DISCLAIMER.txt Adding DISCLAIMER.txt to the marvin tool. 2012-10-17 12:27:00 -04:00
LICENSE.txt CLOUDSTACK-326: Corrected marvin license file to be full ASLv2 license text 2012-10-12 16:41:17 -04:00
MANIFEST.in Missing LICENSE headers for sandbox and __init__.py's 2012-08-04 17:29:47 +05:30
mvn-setup.py marvin: Fix marvin.sync profile, fixes regression from e10f8e8 2014-08-13 11:15:41 +02:00
pom.xml Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
setup.py Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00