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)

x86
All

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/
Component: Release Engineering → Release Engineering: Machine Management
QA Contact: release → armenzg
Whiteboard: [cleanup]
Whiteboard: [cleanup] → [cleanup][buildduty]
Priority: -- → P4
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
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
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 → ---
Pasted bhearsum's crontab entries from comment 1 into ffxbld@dev-stage01's crontab.
Also commented out cltbld's corresponding crontab entries.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.