From 0e2c8a5a3dc5919df7d906be951331372775eeff Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Fri, 16 Feb 2018 14:16:59 -0500 Subject: Fixes ensuring VBMCs are actually running We currently start VBMCs using CLI due to issues with the VBMC python lib. However when we start them, there is no check to make sure they are actually changed to 'running' status. This patch adds logic to check (up to 5 times) to ensure each VBMC is running or raises an error. Note this is for virtual deployments only. JIRA: APEX-527 Change-Id: Iab7ee3b76292d6fc547f18c83f23c04205e9bb2e Signed-off-by: Tim Rozet --- apex/virtual/exceptions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apex/virtual/exceptions.py (limited to 'apex/virtual/exceptions.py') diff --git a/apex/virtual/exceptions.py b/apex/virtual/exceptions.py new file mode 100644 index 00000000..e3dff51a --- /dev/null +++ b/apex/virtual/exceptions.py @@ -0,0 +1,12 @@ +############################################################################## +# Copyright (c) 2018 Tim Rozet (trozet@redhat.com) and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class ApexVirtualException(Exception): + pass -- cgit 1.2.3-korg