Getting error message "Unable to find registration template for host xx running RedHat x.x, associate the registration template for this OS first" with the Global Registration Template on the content host.
Issue
- Getting error message
Unable to find registration template for host xx running RedHat x.x, associate the registration template for this OS first
with the Global Registration Template on the content host.
e.g.
# curl -X GET "https://xxxxxxx.com:9090/register?activation_key=rhosp-key&location_id=2&operatingsystem_id=3&organization_id=1&setup_insights=false&setup_remote_execution=false" -H 'Authorization: Bearer eyJhbMmJhMTAyNTJmYjBlNmVlMjMwMDIwMjlmMjUiLCJleHAiOjE2MzQ2NDg5ODZ9.VrdR8G4niX1U99KmeOIWn5eVzvpHnepHcbSM_aKmvRE' | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10363 100 10363 0 0 59901 0 --:--:-- --:--:-- --:--:-- 60250
#
# Running registration
#
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8500 100 8500 0 0 1660k 0 --:--:-- --:--:-- --:--:-- 1660k
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Dependencies resolved.
=========================================================================================================
Package Architecture Version Repository Size
=========================================================================================================
Installing:
katello-ca-consumer-xxxxxxx.com noarch 1.0-1 @commandline 8.3 k
Transaction Summary
=========================================================================================================
Install 1 Package
Total size: 8.3 k
Installed size: 20 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : katello-ca-consumer-xxxxxxx.com-1.0-1.noarch 1/1
Running scriptlet: katello-ca-consumer-xxxxxxx.com-1.0-1.noarch 1/1
Verifying : katello-ca-consumer-xxxxxxx.com-1.0-1.noarch 1/1
Installed products updated.
Installed:
katello-ca-consumer-xxxxxxx.com-1.0-1.noarch
Complete!
The system has been registered with ID: 324-f0ed-43f-b23f-8d67
The registered system name is: rhel8u4
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 303 100 168 100 135 724 581 --:--:-- --:--:-- --:--:-- 1306
ERROR: not_found
Unable to find registration template for host rhel8u4 running RedHat 8.4, associate the registration template for this OS first
Environment
- Red Hat Satellite 6.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.