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 1334707

Summary: Foreman_hooks are missing most flags
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: APIAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.1.0CC: bbuckingham, bkearney, cwelton, dmoessne, ehelms, mtessun
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14981
Whiteboard:
Fixed In Version: foreman-1.11.0.32-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:04:31 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:

Description Lukas Zapletal 2016-05-10 11:48:16 UTC
Host facets refactoring broke host RABL API which is used in Hooks to deliver JSON output. Symptoms are missing fields in JSON output: https://github.com/theforeman/foreman_hooks/issues/34

Foreman hook plugin is widely used, for example to workaround UEFI PXE for 6.0-6.2 versions. This is a blocker.

QA notes: Install a test hook:

cat config/hooks/host/managed/create/00_test.sh 
#!/bin/bash
echo " *** got hook $* ***" >> /tmp/hook.log
cat >> /tmp/hook.log
exit 0

Create a new host and verify the log file contains MAC address. Previously, it was missing from the JSON output.

Comment 2 Bryan Kearney 2016-05-10 14:20:11 UTC
Upstream bug assigned to lzap

Comment 3 Bryan Kearney 2016-05-10 14:20:13 UTC
Upstream bug assigned to lzap

Comment 4 Bryan Kearney 2016-05-11 08:17:23 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14981 has been closed

Comment 9 Lukas Zapletal 2016-06-14 15:25:55 UTC
QA: See the notes in the description.

Please only test after https://bugzilla.redhat.com/show_bug.cgi?id=1337200 is released (currently POST, pending new build).

Comment 11 Bryan Kearney 2016-07-27 11:04:31 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/RHBA-2016:1501