Samba testing on CentOS 8
Alexander Bokovoy
ab at samba.org
Tue Dec 8 12:44:06 UTC 2020
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.
>
> 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?
--
/ Alexander Bokovoy
More information about the samba-technical
mailing list