Samba testing on CentOS 8
Martin Schwenke
martin at meltin.net
Tue Dec 8 12:17:46 UTC 2020
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'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?
Thanks...
peace & happiness,
martin
More information about the samba-technical
mailing list