Add --env: argument to plugin and more log messages for debugging environment variable related issues #152
+69
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Background:
During a recent deployment to the customer's data center, we needed to debug several issues related to environment variable settings in the process where the SPANK plugin is loaded. As a result, it became necessary to improve the current log messages. Additionally, in the customer's environment, access to external data sources requires the use of an HTTP proxy, which meant that environment variables such as
http_proxyneeded to be set in the process where the SPANK plugin is loaded.This PR will add:
--env:argument to spank plugin. It allows system adminitrator to add environment variables to the Slurm process where the SPANK plugin is loaded. The format for specifying environment variables is defined as follows.--env:{variable name}={value}For example, when interacting with Quantum resources via an HTTP proxy, the environment variables
http_proxy,https_proxy, andno_proxyare required. These can be added as shown below.In addition to log the result (success or failed), we needed to know the detailed error reason to debug. By this PR changes, log message will be enhanced to include the detailed reason information like below.
Checklist ✅
Ticket