Closed
Bug 1000312
Opened 11 years ago
Closed 11 years ago
jacuzzi script fails during puppet run
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: massimo)
Details
Attachments
(1 file)
|
1003 bytes,
patch
|
rail
:
review+
massimo
:
checked-in+
|
Details | Diff | Splinter Review |
Wed Apr 23 09:27:45 -0700 2014 Puppet (err): /tools/python27/bin/python2.7 /usr/local/bin/jacuzzi_metadata.py -o /etc/jacuzzi_metadata.json returned 1 instead of one of [0]
Wed Apr 23 09:27:45 -0700 2014 /Stage[main]/Jacuzzi_metadata/Exec[get_jacuzzi_metadata]/returns (err): change from notrun to 0 failed: /tools/python27/bin/python2.7 /usr/local/bin/jacuzzi_metadata.py -o /etc/jacuzzi_metadata.json returned 1 instead of one of [0]
Should this even be running in puppet? It seems like it should be part of runslave.py or somewhere in between.
| Reporter | ||
Updated•11 years ago
|
Assignee: dustin → relops
| Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(mgervasini)
| Assignee | ||
Comment 1•11 years ago
|
||
Hi Dustin,
we need to run the jacuzzi_metadata.py script before the instance_metadata script to decide where to mount the instance storage space; running it as part of runslave.py would be just too late.
In any case we need to make the script more robust.
Flags: needinfo?(mgervasini)
| Reporter | ||
Updated•11 years ago
|
Assignee: relops → mgervasini
| Assignee | ||
Comment 2•11 years ago
|
||
Hi rail,
this patch updates how urllib2 exceptions are handled.
Attachment #8413810 -
Flags: review?(rail)
Attachment #8413810 -
Flags: feedback?
Comment 3•11 years ago
|
||
Comment on attachment 8413810 [details] [diff] [review]
[puppet] - jacuzzi script fails during puppet run.patch
Review of attachment 8413810 [details] [diff] [review]:
-----------------------------------------------------------------
::: modules/jacuzzi_metadata/files/jacuzzi_metadata.py
@@ +27,4 @@
> log.debug("Fetching %s", url)
> try:
> return json.load(urllib2.urlopen(url, timeout=1))
> + except urllib2.URLError as error:
Can you use the old syntax here (except urllib2.URLError, error:) so we don't rely on newer Python.
Attachment #8413810 -
Flags: review?(rail) → review+
| Assignee | ||
Updated•11 years ago
|
Attachment #8413810 -
Flags: feedback? → checked-in+
| Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•