Add environment variable DEPLOYMENT_TIMEOUT
It is hardcoded now so it is necessary to manage timeout of deploy. Closes-Bug: #1461887 Change-Id: Ifb3423ad5070612cd3cb9ededc07b825cdeb6f31
This commit is contained in:
parent
37c05e38a6
commit
598dae2ae3
|
@ -690,7 +690,7 @@ class FuelWebClient(object):
|
||||||
@check_repos_management
|
@check_repos_management
|
||||||
@custom_repo
|
@custom_repo
|
||||||
def deploy_cluster_wait(self, cluster_id, is_feature=False,
|
def deploy_cluster_wait(self, cluster_id, is_feature=False,
|
||||||
timeout=130 * 60, interval=30,
|
timeout=help_data.DEPLOYMENT_TIMEOUT, interval=30,
|
||||||
check_services=True):
|
check_services=True):
|
||||||
if not is_feature:
|
if not is_feature:
|
||||||
logger.info('Deploy cluster %s', cluster_id)
|
logger.info('Deploy cluster %s', cluster_id)
|
||||||
|
|
|
@ -55,6 +55,7 @@ OPENSTACK_RELEASE = os.environ.get(
|
||||||
DEPLOYMENT_MODE_SIMPLE = "multinode"
|
DEPLOYMENT_MODE_SIMPLE = "multinode"
|
||||||
DEPLOYMENT_MODE_HA = "ha_compact"
|
DEPLOYMENT_MODE_HA = "ha_compact"
|
||||||
DEPLOYMENT_MODE = os.environ.get("DEPLOYMENT_MODE", DEPLOYMENT_MODE_HA)
|
DEPLOYMENT_MODE = os.environ.get("DEPLOYMENT_MODE", DEPLOYMENT_MODE_HA)
|
||||||
|
DEPLOYMENT_TIMEOUT = int(os.environ.get("DEPLOYMENT_TIMEOUT", 7800))
|
||||||
|
|
||||||
ADMIN_NODE_SETUP_TIMEOUT = os.environ.get("ADMIN_NODE_SETUP_TIMEOUT", 30)
|
ADMIN_NODE_SETUP_TIMEOUT = os.environ.get("ADMIN_NODE_SETUP_TIMEOUT", 30)
|
||||||
PUPPET_TIMEOUT = os.environ.get("PUPPET_TIMEOUT", 6000)
|
PUPPET_TIMEOUT = os.environ.get("PUPPET_TIMEOUT", 6000)
|
||||||
|
|
Loading…
Reference in New Issue