cloudstack/tools
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
..
apidoc Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
appliance changed the base iso file from debian-7.8.0 to debian-7.9.0 2015-09-15 21:37:44 +05:30
bugs-wiki fixing license headers in marvin 2012-07-04 18:45:08 -04:00
build build_asf.sh: fix debian changelog altering 2015-12-13 20:41:56 +01:00
checkstyle maven: Upgrade dependency versions 2016-04-22 16:20:16 +05:30
cli tools: Remove cloudmonkey, add info in INSTALL.md 2013-07-28 22:53:12 +05:30
devcloud Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
devcloud-kvm Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
devcloud4 Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
docker squashed commit for dockerfiles part#2 including comments from PR#910 2015-10-28 22:34:31 -04:00
eclipse CLOUDSTACK-8433: remove awsapi db usage and add upgrade cleanup path 2015-05-06 15:22:04 +02:00
git Show actual diff in commits after merge 2015-12-12 11:22:32 +01:00
jira jira-changes.py: generate content for CHANGES.md from jira filter 2014-11-30 21:16:59 -05:00
logo README: happy holidays! 2015-12-23 13:27:40 +05:30
marvin Merge pull request #1529 from mike-tutkowski/marvin_replace_sleep 2016-05-11 00:03:59 -04:00
ngui CLOUDSTACK-9048: Fix typo for public network description 2015-11-09 11:18:44 -06:00
transifex Update L10N resource files with 4.8 strings from Transifex (20160504) 2016-05-04 21:47:37 +01:00
travis travis: increase build verbosity 2016-04-09 03:12:12 +05:30
utils/database_comparision_during_upgrade database_comparision_during_upgrade: add missing license header 2015-04-27 11:55:41 +02:00
vagrant Add missing license headers from recent branch merge 3c429ee 2015-03-18 11:03:54 +05:30
whisker further maven dependency updates from Daan 2016-04-22 16:36:37 +05:30
wix-cloudstack-maven-plugin Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
pom.xml Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00