Red Hat Bugzilla – Bug 1100284
[RFE]Registering a host (which is not provisioned by foreman) via rhsm should show up in foreman
Last modified: 2016-07-27 05:09:03 EDT
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 apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.7-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.7-1.el6_5.noarch * candlepin-tomcat6-0.9.7-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.9-1.el6sat.noarch * foreman-compute-1.6.0.9-1.el6sat.noarch * foreman-gce-1.6.0.9-1.el6sat.noarch * foreman-libvirt-1.6.0.9-1.el6sat.noarch * foreman-ovirt-1.6.0.9-1.el6sat.noarch * foreman-postgresql-1.6.0.9-1.el6sat.noarch * foreman-proxy-1.6.0.6-1.el6sat.noarch * foreman-selinux-1.6.0-2.el6sat.noarch * foreman-vmware-1.6.0.9-1.el6sat.noarch * katello-1.5.0-24.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.5-1.el6sat.noarch * katello-installer-0.0.40-1.el6sat.noarch * openldap-2.4.23-32.el6_4.1.x86_64 * pulp-katello-plugins-0.3-1.el6sat.noarch * pulp-nodes-common-2.4.0-0.17.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.17.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.17.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.17.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.17.beta.el6sat.noarch * pulp-selinux-2.4.0-0.17.beta.el6sat.noarch * pulp-server-2.4.0-0.17.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch * rubygem-hammer_cli-0.1.0-13.el6sat.noarch * rubygem-hammer_cli_foreman-0.1.0-13.el6sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.2-6.el6sat.noarch * rubygem-hammer_cli_katello-0.0.3-24.el6sat.noarch How reproducible: always 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 3. Actual results: register a host (which is not provisioned by foreman) via rhsm, then it is listed only under content host, not under foreman hosts. Expected results: host should be listed under both sides ( under foreman hosts as well as content-hosts) Additional info:
Related: http://projects.theforeman.org/issues/3506
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' Installed: katello-ca-consumer-cloud-qe-15.idmqe.lab.eng.bos.redhat.com.noarch 0:1.0-1 Complete! [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. [root@cloud-qe-9 ~]# 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. https://access.redhat.com/errata/RHBA-2016:1501