Closed
Bug 725195
Opened 13 years ago
Closed 13 years ago
Fix cron cleanup job on dev-stage01
Categories
(Infrastructure & Operations Graveyard :: CIDuty, task, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Unassigned)
Details
(Whiteboard: [cleanup][buildduty])
We're looking in /builds/opt/aus2/build, which is the old place, rather than /builds/opt/aus2/incoming/2/
Updated•13 years ago
|
Component: Release Engineering → Release Engineering: Machine Management
QA Contact: release → armenzg
Whiteboard: [cleanup]
Updated•13 years ago
|
Whiteboard: [cleanup] → [cleanup][buildduty]
Updated•13 years ago
|
Priority: -- → P4
Comment 1•13 years ago
|
||
I updated the crontab files on mpt-production-puppet and forced a puppet sync. Cleanup jobs now look like this:
@hourly cd /builds/opt/aus2/incoming/2 && for file in `find . -name 'complete.txt' -type f -mtime -10`; do url=`grep ^http $file`; if [ "$url" != "" ]; then echo $file `curl -sI $url | grep ^HTTP` | grep HTTP.*404 || continue; rm $file; fi; done >> snippets_removed.log
@hourly cd /builds/opt/aus2/incoming/2 && for file in `find . -name 'complete.txt' -type f -mtime -10`; do url=`grep ^url=http $file | grep -o http.*`; if [ "$url" != "" ]; then echo $file `curl -sI $url | grep ^HTTP` | grep HTTP.*404 || continue; rm $file; fi; done >> snippets_removed.log
Assignee: nobody → bhearsum
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 2•13 years ago
|
||
I had to adjust where the cleanup log went too because of permissions problems. The logs are now in: /builds/opt/aus2/snippets_removed.log
Comment 3•13 years ago
|
||
Bah, cltbld doesn't have permission to clean up the snippets. This has gotten non-trivial, I don't have time to tackle it, so I backed out all of my changes.
Assignee: bhearsum → nobody
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 4•13 years ago
|
||
Pasted bhearsum's crontab entries from comment 1 into ffxbld@dev-stage01's crontab.
Comment 5•13 years ago
|
||
Also commented out cltbld's corresponding crontab entries.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Product: Release Engineering → Infrastructure & Operations
Updated•6 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•