Page MenuHomePhabricator

Add MIME::Lite to the Perl image
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
The Perl Kubernetes container lacks sendmail and exim, so mail has to be sent via an external agent. The usual and easiest way of doing this is via the MIME::Lite module but this has not been provided in the perl532-tf container. So the Perl Kubernetes container lacks critical features available on the Grid.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

Need to be able to send mail from Perl when the Kubernetes container (perl532-tf) is used

Suggest adding https://packages.debian.org/buster/libmime-lite-perl to the image.

Benefits (why should this be implemented?):
This will allow Perl jobs running in Kubernetes containers to notify the operator of issues via email, as is currently the case with jobs running on the grid. Not possible to migrate from the Grid until this is resolved.

Event Timeline

I'm not against this package being added as some helper for using an SMTP server is a reasonable need for the container. I am confused about the claim that MIME::Lite is currently installed on the grid engine nodes:

$ whence dpkg-installed
dpkg-installed is aliased to `dpkg -l|grep ^ii|awk '{printf "%-20s %s\n", $2, $3}''
$ dpkg-installed | grep libmime-lite-perl
$ echo $?
1
$ cpan -l 2>/dev/null | grep Mime::Lite
$ echo $?
1

You're quite right; MIME::Lite is not available on the Grid. We never needed it there because we had sendmail and later exim.

You're quite right; MIME::Lite is not available on the Grid. We never needed it there because we had sendmail and later exim.

"The usual and easiest way of doing this is via the MIME::Lite module but this has not been provided in the perl532-tf container, although it is available on the Grid." -- I would appreciate you adjusting your task description to reflect the reality that this is an ask for a new new package rather than claiming that it is a regression fix.

I have edited the request. I created it as a feature, not a bug report.

Change 919920 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/docker-images/toollabs-images@master] perl532: Add libmime-lite-perl

https://gerrit.wikimedia.org/r/919920

bd808 changed the task status from Open to In Progress.May 15 2023, 10:21 PM
bd808 claimed this task.

Change 919920 merged by jenkins-bot:

[operations/docker-images/toollabs-images@master] perl532: Add libmime-lite-perl

https://gerrit.wikimedia.org/r/919920

Mentioned in SAL (#wikimedia-cloud) [2023-05-19T08:46:31Z] <bd808> Building new perl532-sssd/{base,web} images (T323522, T320904)

$ become bd808-test -- webservice perl5.32 shell
$ dpkg-query -l|grep mime-lite
ii  libmime-lite-perl                 3.031-1                        all          module for convenient MIME message creation