Closed
Bug 981107
Opened 12 years ago
Closed 12 years ago
Puppetize.sh should use --detailed-exit-codes
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
Attachments
(1 file, 1 obsolete file)
|
2.34 KB,
patch
|
arich
:
review+
|
Details | Diff | Splinter Review |
The puppet-running scripts do a good job of parsing the exit codes from puppet, but puppetize.sh just (incorrectly) assumes that 'puppet agent' returns 0 only on success.
| Assignee | ||
Comment 1•12 years ago
|
||
Tested on a relabs system.
Attachment #8411892 -
Flags: review?(arich)
Comment 2•12 years ago
|
||
Comment on attachment 8411892 [details] [diff] [review]
bug981107.patch
Looking through the script as a whole, there are a few cases where we shell out to populate variables but then don't actually check that the shell call worked and that the variables have data in them (see the mktemp above, plus a few calls to facter, etc). We should add that checking.
Also, I'm not sure why PUPPET_OPTIONS doesn't include --detailed-exitcodes or --server since none of those things are used anyplace else in the script. If there's a good reason for splitting them out, great, I'm just not sure what it is.
Attachment #8411892 -
Flags: review?(arich) → review-
| Assignee | ||
Comment 3•12 years ago
|
||
This checks the mktemp result, and puts all of the PUPPET_OPTIONS in one place.
Attachment #8411892 -
Attachment is obsolete: true
Attachment #8411931 -
Flags: review?(arich)
Comment 4•12 years ago
|
||
Comment on attachment 8411931 [details] [diff] [review]
bug981107-p2.patch
You want -f for the file test, not -d. r+ with that change.
Attachment #8411931 -
Flags: review?(arich) → review+
| Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•