Bug 618322
| Summary: | [RFE] add a convenient way to set system-wide environment variables from job XML | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Ondrej Hudlicky <ohudlick> |
| Component: | beah | Assignee: | beaker-dev-list |
| Status: | CLOSED EOL | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 0.5 | CC: | azelinka, bpeck, mastyk, mcsontos, mvadkert, ohudlick, tools-bugs |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | Kickstart | ||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-02-11 12:17:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ondrej Hudlicky
2010-07-26 16:45:57 UTC
Also usage of MALLOC_CHECK_ should be also considered: export MALLOC_CHECK_=3 For more information see http://www.gnu.org/s/hello/manual/libc/Heap-Consistency-Checking.html http://techbase.kde.org/Development/malloc_check I have no desire or intention to do this: I see lot of ***[1] flying my way after making this a default. [1] BZs reporting regressions. There will be people and teams unwilling to participate. I see it better to be able to turn it on. The easiest way is to add following snippet to the job: <ks_append> <![CDATA[ cat >>/etc/profile.d/task-defaults-rhts.sh <<END export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) export MALLOC_CHECK_=3 END ]]> </ks_append> I guess global environment variable setting for the whole recipe
could be quite a useful feature. What about providing a more user
friendly xml for such variable setting? This could be similar to
that of task parameters:
<recipe ks_meta="method=nfs" whiteboard="Server">
<distroRequires>
...
</distroRequires>
<environment>
<variable name="X" value="Y"/>
</environment>
<task name="/some/task" role="STANDALONE">
<params>
<param name="X" value="Y"/>
</params>
</task>
...
</recipe>
Then workflows will be able to add the required setting very
easily. This could even be implemented in the common workflow
code. What do you think?
You may not believe it, but I have a branch which does exactly that! Get scheduler support it and we are ready to go. Great! :-) Thanks! Bulk reassignment of issues as Bill has moved to another team. Beah is no longer supported by Beaker development team. Instead of that, we are working on Restraint test harness. You can find all the features of Restraint here. https://restraint.readthedocs.io/en/latest/ If you think your RFE should be still implemented as part of Restraint feel free to create a new BZ ticket. https://bugzilla.redhat.com/enter_bug.cgi?product=Restraint In case you have any question feel free to reach out to me Thank you, Martin Styk <martin.styk> |