Closed Bug 1580581 Opened 5 years ago Closed 5 years ago

[image-generation] support userdata overriding worker version to run

Categories

(Taskcluster :: Workers, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: miles, Unassigned)

References

(Blocks 1 open bug)

Details

This bug covers ensuring that we can control the versions of workers that worker-runner starts via config in userdata.

This is important for allowing fast roll-forward changes when time does not allow for a full image generation cycle. This can also let us roll new images with older versions of workers for compatibility testing, rather than simply using old images baked with a specific worker version.

A cloud-init / cloudbase-init script that runs on instance start and downloads the correct version of the worker as specified in userdata could satisfy this requirement. Such a script would be provisioned into the base image and run by instances based on that image on startup.

For Linux, we can add a file to cloud-init's expected scripts directory into monopacker's files directory. These files get untarred on the base image filesystem.

taskcluster-worker-runner queries userdata for taskcluster credentials and other relevant information on startup.

We could overload userdata to specify versions of workers in addition, but that would be an essentially unspecified contract between worker-pool configuration and worker images.

This would have been nice to have but isn't a blocker. Marking it WONTFIX.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.