diff options
author | Mark Beierl <mark.beierl@dell.com> | 2016-11-10 15:47:41 -0500 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2016-11-10 15:48:15 -0500 |
commit | 871160145215f9cf7f281b1c1b74f4bcba9f5561 (patch) | |
tree | e4effd099208d7015e97f19a575d1762545688de /rest_server.py | |
parent | cd7b2eeef24c910c14c980ac6746e1145314deba (diff) |
Create Stack Fixes
Removes check stack as that can timeout when a large
number of agents are requested
Waits for stack to be created before returning
JIRA: STORPERF-70
Change-Id: I1cbe45b1f60f0ecab0691f0822ed5643778d218b
Signed-off-by: Mark Beierl <mark.beierl@dell.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_server.py b/rest_server.py index 390cb8c..2b5bbfb 100644 --- a/rest_server.py +++ b/rest_server.py @@ -7,9 +7,6 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -from storperf.db.job_db import JobDB -from storperf.plot.barchart import Barchart -from storperf.storperf_master import StorPerfMaster import io import json import logging @@ -20,6 +17,10 @@ from flask import abort, Flask, request, jsonify, send_from_directory from flask_restful import Resource, Api, fields from flask_restful_swagger import swagger +from storperf.db.job_db import JobDB +from storperf.plot.barchart import Barchart +from storperf.storperf_master import StorPerfMaster + app = Flask(__name__, static_url_path="") api = swagger.docs(Api(app), apiVersion='1.0') @@ -191,7 +192,6 @@ class Configure(Resource): if ('volume_size' in request.json): storperf.volume_size = request.json['volume_size'] - storperf.validate_stack() storperf.create_stack() return jsonify({'agent_count': storperf.agent_count, |