Samba testing on CentOS 8

Rowland penny rpenny at samba.org
Wed Dec 9 15:42:27 UTC 2020


On 08/12/2020 13:31, Martin Schwenke via samba-technical wrote:
> Hi Alexander,
>
> Thanks for your reply!
>
> On Tue, 8 Dec 2020 14:44:06 +0200, Alexander
> Bokovoy <ab at samba.org> wrote:
>
>> On ti, 08 joulu 2020, Martin Schwenke via samba-technical wrote:
>>> We've been doing our CTDB and Samba testing using autocluster, based on
>>> the official CentOS-8.2 vagrant image.  This depends on using
>>> bootstrap/generated-dists/centos8/bootstrap.sh from the Samba source
>>> tree.
>>>
>>> Until recently this has worked just fine:
>>>
>>> + yum -v repolist all
>>> ...
>>> Repo-id            : PowerTools
>>> Repo-name          : CentOS-8 - PowerTools
>>> Repo-status        : enabled
>>> Repo-revision      : 8.2.2004
>>> Repo-distro-tags      : [cpe:/o:centos:centos:8]:  , 8, C, O, S, e, n, t
>>> Repo-updated       : Sat 31 Oct 2020 04:58:49 AEDT
>>> Repo-pkgs          : 2,010
>>> Repo-available-pkgs: 1,444
>>> Repo-size          : 1.0 G
>>> Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=PowerTools&infra=vag
>>> Repo-baseurl       : http://mirror.realcompute.io/centos/8.2.2004/PowerTools/x86_64/os/ (9 more)
>>> Repo-expire        : 172,800 second(s) (last: Thu 03 Dec 2020 22:30:57 AEDT)
>>> Repo-filename      : /etc/yum.repos.d/CentOS-PowerTools.repo
>>> ...
>>> Repo-id            : Devel
>>> Repo-name          : CentOS-8 - Devel WARNING! FOR BUILDROOT USE ONLY!
>>> Repo-status        : disabled
>>> Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=Devel&infra=vag
>>> Repo-expire        : 172,800 second(s) (last: unknown)
>>> Repo-filename      : /etc/yum.repos.d/CentOS-Devel.repo
>>> ...
>>> + yum config-manager --set-enabled PowerTools -y
>>> + yum config-manager --set-enabled Devel -y
>>> + yum update -y
>>> ...
>>>
>>> However, now:
>>>
>>> + yum -v repolist all
>>> ...
>>> Repo-id            : devel
>>> Repo-name          : CentOS Linux 8 - Devel WARNING! FOR BUILDROOT USE ONLY!
>>> Repo-status        : disabled
>>> Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=Devel&infra=vag
>>> Repo-expire        : 172,800 second(s) (last: unknown)
>>> Repo-filename      : /etc/yum.repos.d/CentOS-Linux-Devel.repo
>>> ...
>>> Repo-id            : powertools
>>> Repo-name          : CentOS Linux 8 - PowerTools
>>> Repo-status        : disabled
>>> Repo-mirrors       : http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=PowerTools&infra=vag
>>> Repo-expire        : 172,800 second(s) (last: unknown)
>>> Repo-filename      : /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
>>> Total packages: 14,251
>>> + yum config-manager --set-enabled PowerTools -y
>>> Error: No matching repo to modify: PowerTools.
>>>
>>> The whole thing falls in a heap because it appears that the Repo-id's
>>> are case-sensitive and that "PowerTools" and "Devel" have changed to
>>> lowercase in CentOS-8.3.
>>>
>>> I'm still using the CentOS-8.2 Vagrant image, so I'm a little confused
>>> about why the repos are now referring to 8.3 (not shown above for
>>> brevity, but definitely the case).  I'd certainly like to understand
>>> this... but I doubt that will solve the problem.  :-(
>> I think CentOS does not have separate supported minor releases anymore,
>> just the latest one. This, at least visible in your mirror list link --
>> it has one digit in the 'release=..' parameter, so you are on a rolling
>> release.
>>
>> If you want to stick to the previous releases, I don't think mirrorlist
>> tool supports that, so you would need to use a specific mirror for the
>> URL and replace 8.3.2011 there with the specific release folder.
> That makes sense.  However, I don't set up any of these repos myself.
> I just use the default repos from the Vagrant image.
>
> One possible part of this is a mirror problem.  In the runs that work I
> see the initial "yum update -y" actually update over 200 packages.  In
> the failures I see:
>
> + yum update -y
> Last metadata expiration check: 0:02:54 ago on Tue 08 Dec 2020 16:55:53 AEDT.
> Dependencies resolved.
> Nothing to do.
> Complete!
>
> So that's a strange difference... but see below...
>
>>> I'm wondering how we fix bootstrap/config.py to copy with this change.
>>> Does it have to be something horrible like the following patch?
>>>
>>> diff --git a/bootstrap/config.py b/bootstrap/config.py
>>> index 982ebae1cd1..8383aeb392d 100644
>>> --- a/bootstrap/config.py
>>> +++ b/bootstrap/config.py
>>> @@ -235,8 +235,10 @@ yum install -y dnf-plugins-core
>>>   yum install -y epel-release
>>>   
>>>   yum -v repolist all
>>> -yum config-manager --set-enabled PowerTools -y
>>> -yum config-manager --set-enabled Devel -y
>>> +yum config-manager --set-enabled PowerTools -y || \
>>> +    yum config-manager --set-enabled powertools -y
>>> +yum config-manager --set-enabled Devel -y || \
>>> +    yum config-manager --set-enabled devel -y
>>>   yum update -y
>>>   
>>>   yum install -y \
>>>
>>>
>>> Or is there a better way?
>> If these are the same in all previous versions, then that should be
>> enough. If not, may be we can make the repository names a part of
>> per-distribution configuration and run 'yum config-manager' for all of
>> them?
> The above is just for CentOS 8, so should cover all versions of that.
> I'm trying the above ugly patch (including a run of
> bootstrap/template.py --render to regenerate
> bootstrap/generated-dists/centos8/bootstrap.sh) and it seems to get through running bootstrap.sh.  Although many packages are updated, I see:
>
> ...
> + yum config-manager --set-enabled PowerTools -y
> Error: No matching repo to modify: PowerTools.
> + yum config-manager --set-enabled powertools -y
> + yum config-manager --set-enabled Devel -y
> Error: No matching repo to modify: Devel.
> + yum config-manager --set-enabled devel -y
> + yum update -y
> ...
>
> So the change is being exercised and it doesn't seem to be a mirror
> problem... although perhaps some mirrors are hopelessly out-of-date.
>
> If it works then I'll open a bug so the fix can be backported to 4.12
> and 4.13.
>
> Thanks...
>
> peace & happiness,
> martin
>
Hi, based on what is all over the internet about the future of Centos, 
should we continue to test anything on Centos 8 ? I mean, we may get to 
a point where we do not know whether a fault is down to Samba code or 
code that isn't in RHEL but is in Centos stream. Just a thought and I 
could be talking out of my hat.

Rowland





More information about the samba-technical mailing list