deb-sahara/sahara
Sergey Gotliv f0325c4643 Modify launch_command to support global variables
We use launch_command script to run Spark and Storm jobs on the guest.
Sometimes like in case of the Spark Shell job for the proper job execution
we need to set environment parameters on the guest before running the job.
launch_command is using the subprocess module to run the command.
subprocess.Popen is already supporting environment variables through the
"env" parameter, so all we have to do is populate this variable if needed.

This patch proposes to use the same format to transfer environment variables
to the command we use when running a shell script:

FILE="a" DIR="b" test.sh

In this case launch_command will parse a command line, separate environment
variables FILE and DIR from the command and send them to Popen using the "env"
parameter.

Change-Id: If110f00e95f0479b12e2d26cc30e9cbe4513e361
2015-07-13 07:12:25 +03:00
..
api Merge "[EDP] Unified Map to Define Job Interface" 2015-07-07 12:04:05 +00:00
cli Using oslo_* instead of oslo.* 2015-02-04 13:19:28 +03:00
conductor Merge "[EDP] Unified Map to Define Job Interface" 2015-07-07 12:04:05 +00:00
db Allow to specify auto_security_group in default templates 2015-07-07 23:51:43 +03:00
locale Imported Translations from Transifex 2015-03-17 06:46:20 +00:00
openstack Switch to oslo.service 2015-06-23 15:52:47 +02:00
plugins Merge "Allow to specify auto_security_group in default templates" 2015-07-09 16:14:49 +00:00
service Modify launch_command to support global variables 2015-07-13 07:12:25 +03:00
swift Adding retry ability to keystoneclient calls 2015-05-16 13:38:57 +00:00
tests Fix failed unit tests 2015-07-10 12:39:52 +03:00
topology Adding retry ability to novaclient calls 2015-05-16 11:34:06 +00:00
utils Merge "[EDP] Unified Map to Define Job Interface" 2015-07-07 12:04:05 +00:00
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
config.py Disable neutron DEBUG logs 2015-06-02 14:05:00 -07:00
context.py Fix logging_context_format_string input for sahara 2015-05-19 15:23:19 +08:00
exceptions.py Fix compatible issues in unit tests for python 3 2015-06-29 05:41:17 +00:00
i18n.py Using oslo_* instead of oslo.* 2015-02-04 13:19:28 +03:00
main.py Switch to oslo.service 2015-06-23 15:52:47 +02:00
version.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00