Add wait before sending version request

We check fuel version via api
but when we send request fuel is
not ready. Need to add wait for fuel

Partial-bug:1657695
Change-Id: I82bb920ebf7ec84b3015b6afa6125d4b1d8fb960
This commit is contained in:
Alexander Kurenyshev 2017-01-20 16:03:04 +03:00 committed by Vladimir Khlyunev
parent 8d2bd359a5
commit 6e4029a550
1 changed files with 7 additions and 0 deletions

View File

@ -463,6 +463,13 @@ class NailgunActions(BaseActions):
logger.debug('Uploading new nailgun settings: {}'.format(
ng_settings))
self.restart_service("nailgun")
# TODO(vkhlyunev): REWORK NAILGUN RESTART
# if nailgun service is restarted fuel-qa's keystone session does not
# know about it and tries to reuse tcp session which is closed on
# fuel side. We should restart it properly but right now
# lets give it to tcp keep-alive mechanism
import time
time.sleep(10)
self.wait_for_fuel_service_ready("nailgun")
def set_collector_address(self, host, port, ssl=False):