Bug 2001537 - mailx -> s-nail replacement in CentOS Stream 9
Summary: mailx -> s-nail replacement in CentOS Stream 9
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-distribution
Classification: oVirt
Component: ovirt-host
Version: 4.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Sandro Bonazzola
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks: oVirt_on_CentOS_Stream_9_Hosts
TreeView+ depends on / blocked
 
Reported: 2021-09-06 10:21 UTC by Sandro Bonazzola
Modified: 2022-05-23 06:21 UTC (History)
5 users (show)

Fixed In Version: ovirt-host-4.5.0-1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-23 06:21:25 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.5+
sbonazzo: devel_ack+
gdeolive: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43380 0 None None None 2021-09-06 10:22:23 UTC
oVirt gerrit 116494 0 master MERGED packaging: update mailx dependency 2021-09-06 13:49:10 UTC

Description Sandro Bonazzola 2021-09-06 10:21:07 UTC
mailx is supposed to be replaced with s-nail in CentOS Stream 9.

The dependency on mailx was introduced by bug #1335503.

Comment 1 RHEL Program Management 2021-09-06 10:21:14 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Yedidyah Bar David 2021-09-09 13:15:54 UTC
Wasn't aware of this (or bug 1335503) so far. My own 2c:

1. We should clarify somewhere that you should have a configured and functional mail server on each HA host, if you expect to get email notifications from them, and if you accept the defaults of the deploy process (which are to send them to localhost). I think we already mention this somewhere.

2. I'd expect all sysadmins to (also) forward these emails to some other, external, address, eventually reaching a human (or some ticketing/alerting system or whatever). Perhaps we should also mention this.

3. For the IMO quite unlikely case of an admin taking care to configure a local mail server but not aliasing/forwarding to an external address, IMO we should not require mailx (or nail, or mutt, or whatever), but let the admin decide. In most cases, for emergencies, 'less(1)' is probably good enough, no need to carry more dependencies.

Comment 3 Sandro Bonazzola 2021-11-16 14:08:07 UTC
(In reply to Yedidyah Bar David from comment #2)
> Wasn't aware of this (or bug 1335503) so far. My own 2c:
> 
> 1. We should clarify somewhere that you should have a configured and
> functional mail server on each HA host, if you expect to get email
> notifications from them, and if you accept the defaults of the deploy
> process (which are to send them to localhost). I think we already mention
> this somewhere.

This should be covered already by ovirt-hosted-engine-setup related documentation.
@sgoodman can you please confirm?

> 2. I'd expect all sysadmins to (also) forward these emails to some other,
> external, address, eventually reaching a human (or some ticketing/alerting
> system or whatever). Perhaps we should also mention this.


I think this is up to the sysadmin, I expect them to know what they are doing


> 3. For the IMO quite unlikely case of an admin taking care to configure a
> local mail server but not aliasing/forwarding to an external address, IMO we
> should not require mailx (or nail, or mutt, or whatever), but let the admin
> decide. In most cases, for emergencies, 'less(1)' is probably good enough,
> no need to carry more dependencies.

I think the original bug was to be able to easily read mail sent to local root user.

Comment 4 Yedidyah Bar David 2021-11-16 14:38:41 UTC
(In reply to Sandro Bonazzola from comment #3)
> (In reply to Yedidyah Bar David from comment #2)
> > 3. For the IMO quite unlikely case of an admin taking care to configure a
> > local mail server but not aliasing/forwarding to an external address, IMO we
> > should not require mailx (or nail, or mutt, or whatever), but let the admin
> > decide. In most cases, for emergencies, 'less(1)' is probably good enough,
> > no need to carry more dependencies.
> 
> I think the original bug was to be able to easily read mail sent to local
> root user.

Yes, that's exactly what I meant - our messages are ASCII, and you can read
them with 'less /var/mail/root' if that's where mail to root goes. Indeed
you can't manipulate the mailbox with 'less', but that's IMO not a good
enough reason to require an MUA on each host.

So, if that's the only reason, IMO we should just remove the requirement.

Comment 5 Steve Goodman 2021-11-23 08:50:52 UTC
(In reply to Sandro Bonazzola from comment #3)
> (In reply to Yedidyah Bar David from comment #2)
> > 1. We should clarify somewhere that you should have a configured and
> > functional mail server on each HA host, if you expect to get email
> > notifications from them, and if you accept the defaults of the deploy
> > process (which are to send them to localhost). I think we already mention
> > this somewhere.
> 
> This should be covered already by ovirt-hosted-engine-setup related
> documentation.
> @sgoodman can you please confirm?

This is all that we say about email:

----
(From the SHE installation guide)
21. Provide the name and TCP port number of the SMTP server, the email address used to send email notifications, and a comma-separated list of email addresses to receive these notifications. Alternatively, press Enter to accept the defaults [1] 
----

and

Configuring Email Notifications [2] in the Admin Guide.


So should we add to the Planning and Prerequisites Guide under "Self-Hosted Engine Recommendations" [3] the following:

> You should have a configured and functional mail server on each HA host, if you expect to get email notifications from them, and if you accept the defaults of the deploy process (which are to send them to localhost).


[1] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/installing_red_hat_virtualization_as_a_self-hosted_engine_using_the_command_line#Deploying_the_Self-Hosted_Engine_Using_the_CLI_install_RHVM
[2] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/administration_guide#configuring_email_notifications
[3] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/planning_and_prerequisites_guide/index#self-hosted-engine-recommendations

Comment 6 Yedidyah Bar David 2021-11-23 09:36:08 UTC
(In reply to Steve Goodman from comment #5)
> So should we add to the Planning and Prerequisites Guide under "Self-Hosted
> Engine Recommendations" [3] the following:
> 
> > You should have a configured and functional mail server on each HA host, if you expect to get email notifications from them, and if you accept the defaults of the deploy process (which are to send them to localhost).

Yes, this makes sense. Perhaps something like:

HA setup defaults to configuring HA to send email notifications to a mail server on the local machine.

A mail server is not configured on the local machine by default, so these notifications will be lost.

If you want to get such notifications, you should either change the default when prompted, and provide details of your mail server, or configure a local mail server on each HA host.

Comment 7 Sandro Bonazzola 2022-01-31 13:59:01 UTC
Didi already answered to needinfo from comment #5 with comment #6

Comment 9 Pavol Brilla 2022-05-04 11:30:18 UTC
# yum deplist http://mirror.stream.centos.org/SIGs/9-stream/virt/x86_64/ovirt-45/Packages/o/ovirt-host-4.5.0-3.el9.x86_64.rpm | grep -E "mailx|s-nail"
ovirt-host-4.5.0-3.el9.x86_64.rpm                41 kB/s |  12 kB     00:00    
  dependency: s-nail


Note You need to log in before you can comment on or make changes to this bug.