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