After going through the steps outlined in a registering a content host, these hosts all exist already and were not deployed with Foreman. When I click on the Hosts-All Hosts tab, I see that even though my systems registered okay they have this orange warning on them: Could not calculate errata status, ensure host is registered and the katello-host-tools package is installed
Expect to not see an error regarding the installation of the katello-host-tools, expect that it should show up green with no warning.
Foreman and Proxy versions:
Pulp, Dynflow, Ansible, SSH, Templates, TFTP, Puppet CA, Puppet, Logs, and HTTPBoot 1.22.0
is there any reason you opened a second thread for this topic after this one? As far as I can tell, this is the exact same problem (minus the mention of failing remote execution), just with some additional information.
In general, please do not open several topics for the same issue. This will likely cause confusion and lead to less efficient help. I would suggest though to keep this topic, since it is a little more focused and complete.
As I already asked in the other thread, can you please verify the following:
If the subscription information on the client are correct, it might be that Foreman is just missing a report.
Would you please try to check if a manual execution of katello-package-upload resolves the issue? Afaik, this should be done on a regular basis and on yum actions by itself, but please try triggering it manually.
Ok, I understand. I cannot remove the other post, I am just a normal user like you
What you did looks correct to me.
Sorry if that has not been clear, but you should only see the Organisation and Lifecycle Information when calling subscription-manager identity. Sadly, the quote made that less obvious.
Have you tried running katello-package-upload? If so, what was the result?
I understand, that is a typical mod/admin thing to say
Alright. katello-package-upload exiting without an error sounds good. But I assume it did not change the hosts status in Foreman, right?
If that changed the status: great
If not, we have to search further:
In the subscription-manager identity output, the name looks off to me. I don’t know if this affects anything, but on our systems, there is always the FQDN.
I checked with our provisioning template, we call subscription-manager register with “–name=”<%= @host.name %>"" in the template.
This is just a wild guess, but could you try the following on one of your systems:
subscription-manager --org=“Default_Organization” --activationkey=“Your Activation Key” --name="Whatever your system is called in Foreman"
So when I un-register the system, and check my Foreman server, it does in fact un-register under content hosts, good.
And when I go into the all hosts tab that Warning disappears and turns green, no katello tools warning, etc…okay…
But after that when I run:
sudo subscription-manager register --org=Default_Organization --activationkey=CentOS_6_Non_Prod_Key --name=name.of.problem.host
The system has been registered with ID: 6d2c86b9-cce1-4261-8d3b-3ccb1d29a061
I am once again registered under content hosts and green…but then my status under ALL HOSTS is in a warning state with the same error: Could not calculate errata status, ensure host is registered and the katello-host-tools package is installed
Yes, I tried that and it does not change the status. Thanks for all of your help.
Since last we spoke, I have about 10 CentOS-7 and CentOS-6 VM’s added to the foreman-katello server, and even though they are all registered to the content host correctly, they all have the same error. It’s concerning because my company wants to add close to 700 CentOS VMs to Foreman…and I can’t seem to get this very crucial feature to work.
I wonder if I would have a similar problem with an older version of foreman-katello, like maybe go back one version to 3.11
Thank you in advance, for any help you can provide, I really appreciate it.
just wanted to let you know I have not had the time to set up a working test environment and probably will not in the upcoming cuple of weeks.
As a last guess (if you have not solved this by yourself by now) I would guess that the solution to your other problem here might also solve this. Just found that thread and thought those toppics might be realted.
Can you try updating katello-host-tools on your client to use the above via the appropriate foreman-client-release RPM? That might fix the problem or at least make it easier to diagnose. See Foreman :: Plugin Manuals
Sorry for the late reply I was away for 2 weeks and just got back to work.
So I have about 150 CentOS 6, 6.5, and 7 hosts installed within Foreman and only 4 of them are actually not showing this error.
I ran some new katello client installs per the new Foreman Plugin client releases and I am still getting the same error. They show up as a content host but when I go to all hosts, 146 hosts say can’t calculate errata.
Here is the out put of one of my newly installed hosts of the katello host tools and agent.
rpm -qa | grep katello
Can someone please give me some help with this? I have a demo of Foreman with my company in a week, and I would love for it to be actually connecting as it should.
What can I check on next? Please advice, thank you,
@lbetson It sounds like you don’t have any subscriptions and therefore no repositories available to your hosts. Have you synced any CentOS repositories into your Foreman/Katello and applied their subscriptions to your content hosts?
It looks like you registered with an Activation Key - so in your case you should have applied those subscriptions to your Activation Key before registering the client with it. You can always add subscriptions to your content hosts after registration.
Yes, I have subscriptions. The problem I ran into was until I did a subscription-manager refresh on every host, it was not calculating the data. Working now. I just assumed after installing the katello host tools, agents, and subscribing to the proper content that it would do a check in that point. Thank you for your help.