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 - Foreman_hooks are missing most flags
Summary: Foreman_hooks are missing most flags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-10 11:48 UTC by Lukas Zapletal
Modified: 2019-09-26 14:00 UTC (History)
6 users (show)

Fixed In Version: foreman-1.11.0.32-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:04:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14981 0 Normal Closed Use root_object where possible 2020-01-29 13:18:26 UTC

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


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