<div dir="ltr">No, it is an "implicit" variable. Its presence means true, otherwise false.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 8, 2015 at 2:46 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">"true" and "false" being the valid values?<br>
<br>
On Fri, 2015-05-08 at 14:41 -0500, Ketan Maheshwari wrote:<br>
</span><div class="HOEnZb"><div class="h5">> In terms of cobalt provider option, it would be the switch<br>
> "--disable_preboot". The corresponding environment variable is "--env<br>
> RUNJOB_DISABLE_PREBOOT=true". --Ketan<br>
><br>
> On Fri, May 8, 2015 at 2:22 PM, Mihael Hategan <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>> wrote:<br>
><br>
> > There is no user-customizable way to pass environment variables to the<br>
> > block job through coasters, mostly because <a href="http://worker.pl" target="_blank">worker.pl</a> is the only entity<br>
> > that could use them.<br>
> ><br>
> > So this should be a cobalt provider option. The way you would do it is<br>
> > similar to how, for example, PBS handles custom options (see, for<br>
> > example pbs.resource_list).<br>
> ><br>
> > If you give me the specifics, I could do it.<br>
> ><br>
> > Mihael<br>
> ><br>
> ><br>
> > On Fri, 2015-05-08 at 14:04 -0500, Ketan Maheshwari wrote:<br>
> > > Cobalt uses the environment variable in the way it allocates compute<br>
> > > blocks: bootable vs non-bootable. --Ketan<br>
> > ><br>
> > > On Fri, May 8, 2015 at 2:02 PM, Mihael Hategan <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>><br>
> > wrote:<br>
> > ><br>
> > > > Let me rephrase the question. What entity uses this environment<br>
> > > > variable?<br>
> > > ><br>
> > > > Mihael<br>
> > > ><br>
> > > > On Fri, 2015-05-08 at 13:34 -0500, Ketan Maheshwari wrote:<br>
> > > > > Hi Mihael,<br>
> > > > ><br>
> > > > > I am trying to pass an environment variable at the qsub level.<br>
> > > > ><br>
> > > > > In the Swift source, CobalExecutor.java, I find the following code as<br>
> > > > part<br>
> > > > > of qsub commandline builder:<br>
> > > > ><br>
> > > > > Collection<String> names = getSpec().getEnvironmentVariableNames();<br>
> > > > > if (names != null && names.size() > 0) {<br>
> > > > > result.add("--env");<br>
> > > > > StringBuffer sb = new StringBuffer();<br>
> > > > > Iterator<String> i = names.iterator();<br>
> > > > > while (i.hasNext()) {<br>
> > > > > String name = i.next();<br>
> > > > > sb.append(name);<br>
> > > > > sb.append('=');<br>
> > > > ><br>
> > sb.append(quote(getSpec().getEnvironmentVariable(name)));<br>
> > > > > if (i.hasNext()) {<br>
> > > > > sb.append(':');<br>
> > > > > }<br>
> > > > > }<br>
> > > > > result.add(sb.toString());<br>
> > > > ><br>
> > > > > I am wondering how to add my environment variable to this list.<br>
> > > > ><br>
> > > > > --<br>
> > > > > Ketan<br>
> > > > ><br>
> > > > ><br>
> > > > > On Fri, May 8, 2015 at 1:18 PM, Mihael Hategan <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>><br>
> > > > wrote:<br>
> > > > ><br>
> > > > > > Are you trying to pass an environment variable to an app or to the<br>
> > > > > > worker?<br>
> > > > > ><br>
> > > > > > Mihael<br>
> > > > > ><br>
> > > > > > On Fri, 2015-05-08 at 13:00 -0500, Ketan Maheshwari wrote:<br>
> > > > > > > Hi,<br>
> > > > > > ><br>
> > > > > > > Question about the cobalt provider with 0.96: how to set an<br>
> > > > environment<br>
> > > > > > so<br>
> > > > > > > that it ends up on the qsub line:<br>
> > > > > > ><br>
> > > > > > > qsub --env MY_ENV=true ...<br>
> > > > > > ><br>
> > > > > > > I tried to add the env.MY_ENV line under site.cluster<br>
> > > > > > > and site.cluster.execution.options but to no avail.<br>
> > > > > > ><br>
> > > > > > > From logs of my current runs, I see that the qsub line contains<br>
> > one<br>
> > > > > > > environment variable:<br>
> > > > > > ><br>
> > > > > > > qsub --env WORKER_LOGGING_LEVEL=NONE --mode script --proccount<br>
> > 32 ...<br>
> > > > > > ><br>
> > > > > > > but I do not see it being specified anywhere in my conf file.<br>
> > > > > > ><br>
> > > > > > > Thanks for any suggestions.<br>
> > > > > > ><br>
> > > > > > > --<br>
> > > > > > > Ketan<br>
> > > > > > > _______________________________________________<br>
> > > > > > > Swift-devel mailing list<br>
> > > > > > > <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> > > > > > ><br>
> > <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
> > > > > ><br>
> > > > > ><br>
> > > > > > _______________________________________________<br>
> > > > > > Swift-devel mailing list<br>
> > > > > > <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> > > > > > <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
> > > > > ><br>
> > > ><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > Swift-devel mailing list<br>
> > > > <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> > > > <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
> > > ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Swift-devel mailing list<br>
> > <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> > <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
> ><br>
<br>
<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</div></div></blockquote></div><br></div>