slugrunner: Follow redirects when downloading SLUG_URL
Merge pull request #403 from meyouhealth/slugrunner-follow-redirects

slugrunner: Follow redirects when downloading SLUG_URL
all: Remove _ from simple for loops

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #407 from flynn/gofmt-updates

gofmt: Remove _ from simple for loops
host: Exit containers on setup error

Signed-off-by: Lewis Marshall <lewis@lmars.net>
host: Ensure job errors are propagated via attach protocol

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #406 from flynn/host-fixes

Host fixes
packer: Copy the AMI to ap-northeast-1 as well.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Merge pull request #411 from flynn/packer-ami-northeast

packer: Copy the AMI to ap-northeast-1 as well.
host,pkg/rpcplus: Use os.File instead of ClosingFD

This prevents the c.stdin file from being double closed by the
finalizer in containerinit by closing it explicitly in fdrpc.

Closes #402
Closes #384

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #412 from flynn/fix-402

host,pkg/rpcplus: Use os.File instead of ClosingFD
controller: Handle controller crash in scheduler

Signed-off-by: Lewis Marshall <lewis@lmars.net>
controller: Track the state of one-off jobs

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Convert scheduler tests to integration tests

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Use existing slugrunner image in SchedulerSuite

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Add / Remove hosts via HTTP

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Add some debug logging

Signed-off-by: Lewis Marshall <lewis@lmars.net>
test: Increase timeout for job events

Signed-off-by: Lewis Marshall <lewis@lmars.net>
controller: Unregister service on exit

Signed-off-by: Lewis Marshall <lewis@lmars.net>
router: Unregister services on exit

Signed-off-by: Lewis Marshall <lewis@lmars.net>