I’m trying to understand the concept of content hosts and how it relates to a client. This is my first time using and testing the product and I’m using Katello 3.8.
I’ve installed my server and synced my first repo and now I’m attempting to add a client. Both are running CentOS 7.5
Now I’m unsure what to do for my next steps. Is a content host the Katello verbage for client? Should I now follow the instructions under Content Hosts in the documentation to add my ‘client’?
does the host have at least one repo enabled that shows up in the katello ui? If Katello does not know about any of the repos that the host has, it will show that message.
ya exactly, you should be able to add a subscription to the host. If you don’t have any products, you’ll need to create one and then create a repo under the product. Once the product is created, you can then assign the product’s subscription to the host.
Can you check that /etc/yum.repos.d/redhat.repo on the host has repos in it? This confirms that everything is working as far as the host knowing its repos.
[root@katelloclient ~]# subscription-manager list --consumed
±------------------------------------------+
Consumed Subscriptions
±------------------------------------------+
Subscription Name: x-centos
Provides: x-centos
SKU: 133092954328
Contract:
Account:
Serial: 8046521489164601904
Pool ID: 4028dd4066365f2401663b5258250023
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/03/2018
Ends: 09/25/2048
System Type: Physical
Subscription Name: epel
Provides: epel
SKU: 508966444484
Contract:
Account:
Serial: 7743122078349391617
Pool ID: 4028dd4066365f24016636a052d1000d
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/02/2018
Ends: 09/24/2048
System Type: Physical
Subscription Name: base-7.5.1804
Provides: base-7.5.1804
SKU: 685552104653
Contract:
Account:
Serial: 3433284986234075349
Pool ID: 4028dd4066365f2401663b19ee90001c
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 10/03/2018
Ends: 09/25/2048
System Type: Physical
Using x-centos as an example, can you confirm that product has repos in Katello?
Also, can you do a “subscription-manager refresh” and “yum repolist”, then check for redhat.repo file? usually you should get a redhat.repo file even if it’s empty.
I performed the refresh and everything worked afterwards. Thanks much!
Side question - I noticed that my local repos are still present. If I want Katello to be the end-all be-all for repo management for a client, should I empty out my /etc/yum.repos.d/ (effectively leaving redhat.repo)?
Ya, you should be able to recreate all of the repos in Katello. Once the system is subscribed to the right products, you should be able to rm everything in /etc/yum.repos.d and “subscription-manager refresh” will recreate redhat.repo for you.
You can use "yum repolist -v " to get a before/after snapshot which can be helpful