Fix default deployment timeout value

Default deploy timeout value should be provided
by default settings not constant.
Add description into docstring for timeout parameter
to deployment method.

Change-Id: Ib388e51949e59e24bda79f62cb264ea8da21c512
This commit is contained in:
Rodion Promyshlennikov 2016-10-21 16:57:43 +03:00
parent 7677b4eb20
commit f198a0db8e
1 changed files with 4 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class PluginHelper(object):
def deploy_cluster(self, nodes_roles, verify_network=False,
update_interfaces=True, check_services=True,
timeout=7800):
timeout=settings.DEPLOYMENT_TIMEOUT):
"""Assign roles to nodes and deploy the cluster.
:param nodes_roles: nodes to roles mapping.
@ -254,6 +254,9 @@ class PluginHelper(object):
:param check_services: whether or not OSTF tests should run after the
deployment (default: True).
:type check_services: boolean
:param timeout: deployment timeout: after run out of it
deployment process will be stopped with exception.
:type timeout: int
:returns: None
"""
self.fuel_web.update_nodes(self.cluster_id, nodes_roles,