-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent-spawner: base64 encode the resalloc ticket DATA in env #145
Conversation
I have not tested these changes, but here are some general observations:
|
These are set here: resalloc/resallocserver/manager.py Lines 40 to 50 in 36a289d
Yes. |
Why they are not visible in the |
They are actually. But resalloc != agent spawner. |
Is this comment valid for agent spawner? If not, it should be removed and we should mention |
d0fa7de
to
41e7132
Compare
Thank you for patiently punching me. You are right; the comment was wrong. I updated the docs, and fixed the fix. Can you please take another look now? |
LGTM. Although I have not tested these changes. |
# # Prepare the agent. Variable $RESALLOC_RESOURCE_DATA (base64 encoded) | ||
# # is provided in the script environment. Other variables like | ||
# # RESOURCE_NAME, RESOURCE_POOL_ID, etc. are provided as well. | ||
# # Prepare the agent. Variable $AGENT_SPAWNER_RESOURCE_DATA (base64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing I may add is that base64 decoded data may contain new lines. It could be tricky to debug, if you are not familiar with functioning of resalloc. It kept me confused for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, the current code doesn't modify the stdout at all, and thus it contains the trailing newline. We could implement some RFE for stdout post-processing if you think it is worth it.
Fixes: #144