Drop RHEL 7 / CentOS 7 support and move to Python 3.8 minimum?

Alexander Bokovoy ab at samba.org
Mon Aug 21 07:44:39 UTC 2023


On Пан, 21 жні 2023, Andrew Bartlett via samba-technical wrote:
> On Sat, 2023-08-19 at 20:06 +0200, Andreas Schneider wrote:
> > On Friday, 18 August 2023 02:08:00 CEST Andrew Bartlett via samba-
> > technical 
> > wrote:
> > > I would note that times when we didn't line up the CI version and
> > > Python 'supported' version, it kept breaking.
> > > I note that RHEL7 ends 'maintenance' in June 2024, just after the
> > > 4.20
> > > release March 2024
> > > https://www.redhat.com/en/blog/end-maintenance-red-hat-enterprise-linux-7-al
> > > 
> > > most-here Those dates I think give good cause to drop CentOS 7, but
> > > other
> > > views still welcome.
> > 
> > I'm fine with dropping Python 3.6 support for Samba 4.20.
> 
> Thanks.  
> 
> So far we seem to be missing the markdown and dns packages for Python
> 3.8 on Centos8 Stream.  Do you know where I might find these packages,
> or how we might get them to become packaged?
> 
> The other important but not totally vital packages I couldn't find for
> Python 3.8 was setproctitle and gpg.
> 
> https://gitlab.com/samba-team/samba/-/merge_requests/3231
> 

The reason why we stuck with Python 3.6 on RHEL 8 (and therefore on
CentOS 8 Stream) is because packages in the distribution, when installed
in the default configuration, can only depend on the packages available
in non-modular or in default modular streams. Python 3.6 is the one
available by default. All other Python builds are separate modular
streams not enabled by default.

This is why FreeIPA (which is packaged as a module in RHEL 8 and is
available in two streams, one enabled by default and one not enabled by
default) and Samba (which is packaged as a normal package) only depend
on the content that is enabled by default, e.g. Python 3.6. FreeIPA use
case is important here because it is the primary user of Samba Python
modules in RHEL.

We cannot change this situation in RHEL 8, so we stuck with Python 3.6
support in RHEL 8 until its retirement. If Samba drops Python 3.6
support, we cannot rebase to this new version of Samba in RHEL 8. It is
probably OK as RHEL 8 is already reaching 8.9 minor version after which
rebases will become hard to impossible (RHEL 7.9 is the last RHEL 7
minor release already). We also cannot migrate to python3.11 there at
this point.

In RHEL 9 both Samba and FreeIPA are packaged as normal packages, the
modularity support is removed. Both continue to use the same default
Python version which is already Python 3.9. 





> Andrew Bartlett
> 
> 
> -- 
> Andrew Bartlett (he/him)       https://samba.org/~abartlet/
> Samba Team Member (since 2001) https://samba.org
> Samba Team Lead                https://catalyst.net.nz/services/samba
> Catalyst.Net Ltd
> 
> Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
> company
> 
> Samba Development and Support: https://catalyst.net.nz/services/samba
> 
> Catalyst IT - Expert Open Source Solutions
> 
> 

-- 
/ Alexander Bokovoy



More information about the samba-technical mailing list