SUSE Support

Here When You Need Us

RMT (Repository Mirroring Tool) script "rmt-client-setup-res" executed in CentOS RMT client results in "registration command not found. Abort"

This document (000021232) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP4
CentOS Linux release 8.5.2111 

Situation

SUSE Linux Enterprise Server 15 SP4 running RMT (Repository Mirroring Tool).

On executing the RMT script "rmt-client-setup-res" on a CentOS Linux release 8.5.2111 (with SUSE Liberty Linux registered) RMT client system, the error message "registration command not found. Abort" was returned.

Resolution

1. Manually download the GPG public key of packages to avoid "Public key for <packages> is not installed" being reported:
[ root @ <centos-client> ] # rpm --import public.gpg.key
Alternatively, specify the url which contains GPG public key in the 'gpgkey' option in a repository section to let DNF install the key instead. Contact your distribution or package provider, if needed.

2. Backup original script:
[ root @ <centos-client> ] # cp -p rmt-client-setup-res rmt-client-setup-res-org
3. Modify the latest downloaded rmt-client-setup-res script:
[ root @ <centos-client> ] # vim rmt-client-setup-res
4. First, the following 2 lines need to be removed:
echo "Importing repomd.xml.key"
$RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key
5. The second adjustment takes into account that /usr/share/redhat-release in a Centos 8 is a directory and not a file.  Change...
if [ -f /usr/share/redhat-release ]; then
   rm -f /usr/share/redhat-release;
fi
... to...
if [ -e /usr/share/redhat-release ]; then
   rm -rf /usr/share/redhat-release;
fi
6. The third adjustment imports the gpg key before SUSEConnect and librepo are installed:
Add...

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sles-es-release
    
...between the lines...

    $DNF install --allowerasing ${SLL_release_package}

...and...

    $DNF install SUSEConnect librepo
7. Execute the modified script:
[ root @ <centos-client> ] # ./rmt-client-setup-res

Cause

Packages required to register like SUSEConnect and librepo that were initially installed successfully were subsequently uninstalled due to failed checking:
Error: GPG check FAILED
+ /usr/bin/curl --silent --show-error --insecure https://<RMT-server-name>/tools/rmt-client-setup --output rmt-client-setup
registration command not found. Abort.

Status

Reported to Engineering

Additional Information

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021232
  • Creation Date: 10-Oct-2023
  • Modified Date:12-Oct-2023
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.