Hi,

I’ve been running into an issue with our CentOS 7 clients. We didn’t have this problem before but seem to have it with recent client additions. When trying to change the base and child channels for a CentOS 7 system, the change fails and corrupts the client repo config file at /etc/yum.repos.d/susemanager:channels.repo. The gpgkey= lines somehow have the non-Uyuni repo signing keys still in there, with the Uyuni key on a separate line immediately after. For example

    [susemanager:centos7-x86_64]

    name=CentOS 7 (x86_64)

    enabled=1

    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

    file:///etc/pki/rpm-gpg/mgr-gpg-pub.key

    baseurl=https://carmd-nv-uyuni1.sierrawireless.local:443/rhn/manager/download/centos7-x86_64

    susemanager_token=eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTUyNDgzNzEsImlhdCI6MTY2MzcxMjM3MSwibmJmIjoxNjYzNzEyMjUxLCJqdGkiOiI0UkhWYWUzU0VnTngwRk1yaXFsWG13Iiwib3JnIjoxLCJvbmx5Q2hhbm5lbHMiOlsiY2VudG9zNy14ODZfNjQiXX0.EoqL2bHAZ4li3FGsXuatKny5BU0qJ1aDbdJifTD_Gkw

    gpgcheck=1

    repo_gpgcheck=1

    type=rpm-md

Instead that gpgkey line should just look like
    gpgkey=file:///etc/pki/rpm-gpg/mgr-gpg-pub.key


It currently only seems to happen with the CentOS 7 clients. Is this a bug in a recent CentOS client update, or a database issue?

 

Cheers,

Paul-Andre Panon