Page MenuHomePhabricator

Consider adding `kubectl`, `webservice`, and `toolforge` binaries to shell container images
Open, MediumPublicFeature

Description

With the Grid Engine removal the Toolforge admins are interested in removing "extra" software from the bastions including most language runtimes and support libraries. There are multiple reasons this is seen as desirable, but maybe the most important is making it more difficult for tool maintainers to either accidentally or purposefully abuse the compute power of the bastions to run tool workloads.

The removal of software from the bastions is expected to have some impact on the workflows that specific tool maintainers have developed over time to manage their webservices and other jobs. Tools most impacted will likely be those that are using their preferred runtime language (PHP, Python, JS, Ruby, Perl, ...) as part of scripting used to manage jobs. The T360488: Missing Perl packages on dev.toolforge.org for anomiebot workflows feature request is a reasonable example of this impact.

One way to compensate for this change in functionality would be to make container images that can be run via webservice shell or similar means which include the kubectl, webservice, and toolforge support tools that have been traditionally used from the bastions. These container images when combined with the ability of webservice shell to launch an interactive session connected to a container running on Kubernetes would provide an alternative for the removed bastion functionality.

Work was very recently completed that removed the need for in-container components of the webservice command in all "web" containers. This makes rushing to restore that dependency via inclusion of the webservice and toolforge commands seem unfortunate. A potential workaround for that would be to add a specific "shell" variant of some (all?) language runtimes that serves a similar purpose to the existing "web" variants: adding software and config specific to the associated use case.

Event Timeline

It would be a breaking change, but this could also be seen as a way to remove vim, emacs, and other primarily interactive packages from the base containers if that is desirable.

bd808 triaged this task as Medium priority.Apr 1 2024, 8:42 PM
bd808 added a project: cloud-services-team.

Dropping this into the "needs discussion" column for cloud-services-team as a potential solution for T360488: Missing Perl packages on dev.toolforge.org for anomiebot workflows which I currently consider a blocker to decommissioning the remaining Buster bastions.

At least for the main (non-shell) containers I'd prefer not to include the toolforge/webservice since I don't want to include a Python interpreter in the "stable" interface offered for tools to use in non-Python containers.