Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1279766

Summary: Custom facts doesn't displayed on webUI with unattended/semi-automatic pxe-less discovery via dhcp
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Discovery PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.4CC: bbuckingham, bkearney, dmoessne, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/12430
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-15 13:13:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
custom facts are visible on webUI none

Description Sachin Ghai 2015-11-10 09:19:51 UTC
Description of problem: I was trying un-attended pxe-less discovery via dhcp and remastered the iso with a custom fact. Later, I discovered a host using same ISO but when I checked the facts of discovered hosts from webUI -> "Discovered Host" -> facts page, the provided custom fact was missing:


here is cmd I used to remaster the ISO:

 ./discovery_remaster fdi-bootable-3.0.4.iso "fdi.pxgw=192.168.100.1 fdi.pxdns=192.168.100.1 proxy.url=https://192.168.100.1:9090 proxy.type=proxy fdi.pxfactname1=myfact fdi.pxfactvalue1=somevalue fdi.pxauto=1"



Version-Release number of selected component (if applicable):
Satellite 6.1.4 compose3

How reproducible:
always

Steps to Reproduce:
1. remaster the discovery ISO as above
2. discovered the host with same ISO
3. check if myfact is available under discovered hosts facts.

Actual results:
Missing provided custom fact while re-mastering the ISO

Expected results:
provided custom fact should be displayed

Additional info:

Comment 2 Sachin Ghai 2015-11-10 10:47:35 UTC
upstream issue filed: http://projects.theforeman.org/issues/12430

Comment 3 Lukas Zapletal 2015-11-11 08:33:32 UTC
The bot failed us, this is now POST.

https://github.com/theforeman/foreman-discovery-image/pull/49/files

Comment 6 Sachin Ghai 2015-11-27 07:29:25 UTC
Verified with Sat 6.1.5 compose2(Satellite-6.1.0-RHEL-7-20151125.0)
and using scratchbuild of discovery image from brew having version: foreman-discovery-image-3.0.5-2.iso

I can see the the custom facts on webUI with unattended pxe-less discovery. Please see the screenshot for verification.

Comment 7 Sachin Ghai 2015-11-27 07:29:57 UTC
Created attachment 1099599 [details]
custom facts are visible on webUI

Comment 8 Bryan Kearney 2015-12-15 13:13:34 UTC
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/RHSA-2015:2622