Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1111078 - Association between katello's content-host and Foreman's host doesn't work
Summary: Association between katello's content-host and Foreman's host doesn't work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-19 08:21 UTC by Sachin Ghai
Modified: 2019-09-26 17:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:05:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
missing provisioning details after registering a host (provisioned via foreman) (44.09 KB, image/png)
2014-06-19 08:21 UTC, Sachin Ghai
no flags Details
registered content-hosts.. vodka.katellolabs.org still up under content-host (38.80 KB, image/png)
2014-06-19 08:46 UTC, Sachin Ghai
no flags Details
Content tab is visible under foreman host details (53.57 KB, image/png)
2014-06-26 17:15 UTC, Sachin Ghai
no flags Details
provisioning details are also visible now (50.62 KB, image/png)
2014-06-26 17:17 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6290 0 None None None 2016-04-22 15:46:42 UTC

Description Sachin Ghai 2014-06-19 08:21:45 UTC
Created attachment 910284 [details]
missing provisioning details after registering a host (provisioned via foreman)

Description of problem:
I provisioned a host via foreman and auto register it with activation-key. The host was populated under content-host after auto registration with activation key. But Looks like "provisioning details" tab doesn't show any details.

it shows this msg:


"No provisioning details are available for this content host."
 

Version-Release number of selected component (if applicable):
sat6 beta snap10 (Satellite-6.0.3-RHEL-6-20140618.0)

How reproducible:
always

Steps to Reproduce:
1. Provision a host via foreman
2. Register it via rhsm to see under content-host


Actual results:
"Provisioning Details" tab doesn't show any info. 


Expected results:
"Provisioning Details" tab should show info like: name, os, hostgroup and status.

Additional info:
Looks like its a regression as details were available during snap8

Comment 1 Sachin Ghai 2014-06-19 08:29:03 UTC
Looks like.. Association between katello's content-host and Foreman's host doesn't work. Reason:

- No provisioning details available under registered host provisioned via foreman using libvirt
- No 'Content' tab available under foreman host details adjacent to YAML tab.
- Deleting a host from foreman doesn't unregsiter the host from content-host.

Comment 2 Sachin Ghai 2014-06-19 08:31:32 UTC
Logs generated when deleting a host from foreman:


Processing by HostsController#destroy as HTML
  Parameters: {"authenticity_token"=>"oXXsNmCFK2hdm2AQhnQkBd8OWLhyC5CN/mdgVCqKsEE=", "id"=>"vodka.katellolabs.org"}
Delete the DNS PTR record for 192.168.100.4/vodka.katellolabs.org
Delete the DNS A record for vodka.katellolabs.org/192.168.100.4
Delete DHCP reservation for vodka.katellolabs.org-52:54:00:cb:67:93/192.168.100.4
Delete the TFTP configuration for vodka.katellolabs.org
Removing Compute instance for vodka.katellolabs.org
Redirected to https://dhcp207-55.lab.eng.pnq.redhat.com/hosts
Completed 302 Found in 6730ms (ActiveRecord: 64.2ms)
Processing by HostsController#index as HTML
  Rendered hosts/_list.html.erb (52.9ms)
  Rendered hosts/index.html.erb within layouts/application (69.3ms)
  Rendered common/_searchbar.html.erb (10.5ms)
  Rendered home/_submenu.html.erb (6.9ms)
  Rendered home/_user_dropdown.html.erb (2.4ms)
Read fragment views/tabs_and_title_records-1 (0.2ms)
  Rendered home/_topbar.html.erb (11.7ms)
  Rendered layouts/base.html.erb (13.9ms)
Completed 200 OK in 175ms (Views: 96.3ms | ActiveRecord: 11.5ms)


Please note the hostname is vodka.katellolabs.org

Comment 4 Sachin Ghai 2014-06-19 08:45:06 UTC
host "vodka.katellolabs.org" deleted from foreman but its association still there under content-host. Please see the screenshot.

Comment 5 Sachin Ghai 2014-06-19 08:46:55 UTC
Created attachment 910302 [details]
registered content-hosts.. vodka.katellolabs.org still up under content-host

Comment 6 Brad Buckingham 2014-06-19 14:56:03 UTC
Created redmine issue http://projects.theforeman.org/issues/6290 from this bug

Comment 7 Brad Buckingham 2014-06-19 15:58:29 UTC
proposed fix in PR:

https://github.com/Katello/katello/pull/4305

Comment 10 Sachin Ghai 2014-06-26 17:14:03 UTC
Verified with sat6 beta snap11 compose2.

I can see the association between katello's content-host and Foreman's host.

Provisioning details are available now.
Content tab available under foreman host details
deleting a host from foreman also unregister it from content-host

Comment 11 Sachin Ghai 2014-06-26 17:15:50 UTC
Created attachment 912483 [details]
Content tab is visible under foreman host details

Comment 12 Sachin Ghai 2014-06-26 17:17:08 UTC
Created attachment 912484 [details]
provisioning details are also visible now

Comment 13 Bryan Kearney 2014-07-02 14:05:04 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


Note You need to log in before you can comment on or make changes to this bug.