From: rexlee8776 Date: Sat, 27 Jan 2018 06:15:51 +0000 (+0000) Subject: Bugfix: yardstick env grafana fails when access the server X-Git-Tag: opnfv-6.0.0~126 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F51225%2F3;p=yardstick.git Bugfix: yardstick env grafana fails when access the server current timeout is 10 seconds, it would fail if grafana server start slow in some cases. JIRA: YARDSTICK-972 Change-Id: I783206fdd1352e94ba7e498283f70b5a6834b6fa Signed-off-by: rexlee8776 --- diff --git a/api/resources/v1/env.py b/api/resources/v1/env.py index 32a8c730b..75c981a96 100644 --- a/api/resources/v1/env.py +++ b/api/resources/v1/env.py @@ -119,7 +119,7 @@ class V1Env(ApiResource): "isDefault": True, } try: - HttpClient().post(url, data, timeout=10) + HttpClient().post(url, data, timeout=60) except Exception: LOG.exception('Create datasources failed') raise