Closed
Bug 1127521
Opened 11 years ago
Closed 10 years ago
runner.cfg shows a diff on every puppet run
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: mrrrgn)
Details
Attachments
(2 files, 1 obsolete file)
|
1.76 KB,
text/plain
|
Details | |
|
2.51 KB,
patch
|
dustin
:
review+
|
Details | Diff | Splinter Review |
Notice: /Stage[main]/Runner/File[/opt/runner/runner.cfg]/content:
--- /opt/runner/runner.cfg 2015-01-29 13:08:23.682897750 -0800
+++ /tmp/puppet-file20150129-3059-18r88yj-0 2015-01-29 13:18:18.780904432 -0800
@@ -14,7 +14,7 @@
GIT_SHARE_BASE_DIR=/builds/git-shared
INFLUXDB_URL=*mumble*
INFLUXDB_NAME=runner_tasks
-PATH=/usr/bin:/sbin:/bin:/usr/sbin:/usr/local/bin
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/local/bin
[hg]
tools_path = /tools/checkouts/build-tools
Notice: /Stage[main]/Runner/File[/opt/runner/runner.cfg]/content: content changed '{md5}bd3ef4ae116dd70cf0572bfedf6264cb' to '{md5}889e4e35d56defd097ee299ab778686c'
| Reporter | ||
Updated•11 years ago
|
Assignee: dustin → winter2718
| Assignee | ||
Comment 1•11 years ago
|
||
So, what's happened is that we set the path based on whatever the user has at startup. It's trying bake export PATH=$PATH:/usr/local/bin the runner config.
The issue we're seeing, is that apparently the path isn't consistent across all of our hosts across reboots. I'm still thinking about how to approach this. It wasn't my doing, so I'm not yet sure what changing this could break. Also, I need to wrap my head around whether or not this is a bad thing to do.
At the very least, if we decide to keep this, it needs comments in the manifest. This was rather confusing to debug! >.<
Attachment #8556872 -
Flags: feedback?(dustin)
| Assignee | ||
Comment 2•11 years ago
|
||
Ahh, this was added in ea14f564a94e
changeset: 2680:ea14f564a94e
parent: 2678:e200fa718ce8
user: kmoir@mozilla.com
date: Wed Jan 07 09:02:29 2015 -0500
summary: Bug 1094293 - Add initial Yosemite(10.10) slaves to releng CI r=dustin
| Assignee | ||
Comment 3•11 years ago
|
||
At the very least, this comment is necessary IMO.
Attachment #8556877 -
Flags: review?(dustin)
| Reporter | ||
Comment 4•11 years ago
|
||
Yikes! I think the path should either be appended at runtime (so runner gets a patch to expand `$PATH` when it reads its config) or set statically per platform. Keying it to the environment where puppet was run is just going to confuse things, as nobody really gives consideration to setting PATH properly before running puppet.
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8556877 -
Attachment is obsolete: true
Attachment #8556877 -
Flags: review?(dustin)
Attachment #8557273 -
Flags: review?(dustin)
| Reporter | ||
Updated•11 years ago
|
Attachment #8557273 -
Flags: review?(dustin) → review+
| Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 8557273 [details] [diff] [review]
puppet.hardcode.path.diff
Review of attachment 8557273 [details] [diff] [review]:
-----------------------------------------------------------------
sorry, I forgot to click "Publish"
| Reporter | ||
Updated•11 years ago
|
Attachment #8556872 -
Flags: feedback?(dustin)
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•