Github user jburwell commented on the pull request: https://github.com/apache/cloudstack/pull/1471#issuecomment-216646244 @remibergsma you want to consider cribbing [``wait_until``](https://github.com/apache/cloudstack/blob/12d8e53dd54d83242b3dabf2151249ab7963d5a8/tools/marvin/marvin/lib/utils.py#L527-L543) from Marvin. It allows you check for a condition at a fixed interval and give up after a specified period of time. Therefore, you could have the best of both worlds -- check every 2 seconds and give up after 15 seconds.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---