Description of problem:
Currently (with sat6 beta snap5 compose3), if I provisioned a host via foreman and later register it via rhsm.. the host is listed under content host. However on other hand, if I register a host (which is not provisioned by foreman) via rhsm, then it is listed only under content host, not under foreman hosts.
I think for host/system unification, it should be two way.
Version-Release number of selected component (if applicable):
sat6 beta snap5 compose3
Steps to Reproduce:
1. register a host (which is not provisioned by foreman) via rhsm
2. host is listed under content hosts but not under foreman host
register a host (which is not provisioned by foreman) via rhsm, then it is listed only under content host, not under foreman hosts.
host should be listed under both sides ( under foreman hosts as well as content-hosts)
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
I don't think Katello needs to create a Foreman host every time a content host is registered using subscription-manager. From what I understand, a content host that manages only RPM's doesn't need a Foreman host. If a content host also contains puppet modules, then the puppet master will import the facts and automatically create a Foreman (unmanaged) host after the next puppet run (every 30 minutes).
If I let puppet run create Foreman host, it's created without proper Organization, Location and Environment.
From my use:
- or subscription-manager process registers also Foreman host
- or some kind of lookup, when receiving new hosts through Puppet master, needs to be done to create Foreman host in correct Organization/Location/Environment
Created redmine issue http://projects.theforeman.org/issues/9381 from this bug
Upstream bug component is WebUI
Upstream bug component is Content Management
This was resolved as part of hot unification work for 6.2, moving to POST
Verified with sat6.2 beta snap6
I registered an already provisioned host with sat6 server via rhsm and I can see that host under 'content-host' as well as 'All hosts'
[root@cloud-qe-9 ~]# subscription-manager register --activationkey ak_rhel7 --org Default_Organization
The system has been registered with ID: f8e9a167-898a-4d0a-91c5-079c8bda2bce
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
Please see the attached screenshots from webUI for verification.
Created attachment 1143744 [details]
registered host appears under content-host (cloud-qe-09)
Created attachment 1143745 [details]
registered host appears under 'all hosts' (cloud-qe-09)
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.