Merge "Revert "Add retry to the start of VM""

This commit is contained in:
Jenkins 2016-08-12 12:38:25 +00:00 committed by Gerrit Code Review
commit 80361961dc
1 changed files with 0 additions and 7 deletions

View File

@ -27,7 +27,6 @@ from proboscis.asserts import assert_equal
from proboscis.asserts import assert_true
import six
from fuelweb_test.helpers.decorators import retry
from fuelweb_test.helpers.decorators import revert_info
from fuelweb_test.helpers.decorators import update_rpm_packages
from fuelweb_test.helpers.decorators import upload_manifests
@ -402,18 +401,12 @@ class EnvironmentModel(object):
.format(settings.KEYSTONE_CREDS['username'],
settings.KEYSTONE_CREDS['password']))
# NOTE(akostrikov) Due to fact that virtual machine in libvirt 1.x hangs
# with probability less than 0,3%, we need to restart virtual machine to
# reinitialize its resources.
# TODO(akostrikov) Replace when possible, with exact Exception type.
@retry(count=2, delay=0)
def setup_environment(self, custom=settings.CUSTOM_ENV,
build_images=settings.BUILD_IMAGES,
iso_connect_as=settings.ADMIN_BOOT_DEVICE,
security=settings.SECURITY_TEST):
# Create environment and start the Fuel master node
admin = self.d_env.nodes().admin
self.d_env.destroy()
self.d_env.start([admin])
logger.info("Waiting for admin node to start up")