GS Cleanup: Standard GCE Image |
|||||
Issue descriptionWe currently have two GCE servers running the purge_builds script (one per bucket), as well as the purge_gs.sh wrapper which runs the purge script in a loop. It would be better to create a standard image to base these builders on that contains the script, and the logic to auto-start at boot.
,
Mar 29 2016
The wrapper script currently looks like this:
#!/bin/bash
LOG="/home/dgarrett/purge.log"
cd ~/chromite
while true; do
mv -f "${LOG}" "${LOG}.previous"
git pull >> "${LOG}" 2>&1
bin/purge_builds --debug --chromeos-image-archive >> "${LOG}" 2>&1
sleep 24h
done
,
Mar 29 2016
This command can be used to retrieve the purge target for a given GCE instance (assuming the custom metadata 'purge_target' has been set for the instance). curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/purge_target
,
Mar 29 2016
,
Apr 26 2016
,
May 11 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/d0b9fc28215109156615f4e8c4dfcd4898c0d74e commit d0b9fc28215109156615f4e8c4dfcd4898c0d74e Author: Don Garrett <dgarrett@google.com> Date: Fri May 06 22:39:44 2016 purge_gs.sh: New script to run on GS purge servers. This is a new script to run on GS cleanup GCE instances that fetches the latest version of chromite, runs the GS cleanup script, sleeps, and repeats, forever. BUG= chromium:598439 TEST=Manual (and limited). Change-Id: I4793ac76c643164bc2789ba093bc1a1a73255992 Reviewed-on: https://chromium-review.googlesource.com/343210 Tested-by: Don Garrett <dgarrett@chromium.org> Reviewed-by: Aviv Keshet <akeshet@chromium.org> [add] https://crrev.com/d0b9fc28215109156615f4e8c4dfcd4898c0d74e/bin/purge_gs.sh
,
May 17 2016
A new image "purge-image" has been created, and a doc describing it's use has been created at go/cros-purge-servers.
,
May 17 2016
,
May 23 2016
Bulk verified |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by autumn@chromium.org
, Mar 28 2016