sahara/sahara/service
Dmitry Mescheryakov 9cd9013a49 Avoid deleting transient cluster before job is started
In order to run job on a transient cluster client needs to execute
two commands:
 * create cluster with is_transient=true
 * run job on it in a regular manner

We terminate unneeded transient clusters in a periodic job, which
terminates cluster if cluster is transient and no job is running on it
at a time. We also do not terminate cluster if its lifetime is smaller
then config parameter min_transient_cluster_active_time. For some
reason the parameter is set to 0 by default, which could cause
premature cluster termination if periodic task runs between
cluster creation and job execution.

Also added unit tests to verify min_transient_cluster_active_time.

Change-Id: I5330a969ea7cd81ec2759a7fe32bab4a5de3fb4c
(cherry picked from commit 400d90da07)
2014-06-24 14:19:44 +00:00
..
edp Fix hardcoded tenant name for job binaries 2014-06-03 14:25:25 +04:00
validations Fix running EDP job on transient cluster 2014-06-03 14:19:39 +04:00
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
api.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
direct_engine.py Keep python 3.X compatibility for xrange 2014-03-19 16:08:29 +08:00
engine.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
heat_engine.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
networks.py Add fixed and floating IPs discovery via neutron 2014-03-28 00:17:03 +04:00
periodic.py Avoid deleting transient cluster before job is started 2014-06-24 14:19:44 +00:00
trusts.py Create trusts for admin user with correct tenant name 2014-06-03 14:25:26 +04:00
validation.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
volumes.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00