Bug 2230734 - when discovering a host the host.created is not triggered [NEEDINFO]
Summary: when discovering a host the host.created is not triggered
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hooks and Webhooks
Version: 6.13.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-09 22:58 UTC by Paul Dudley
Modified: 2023-08-10 13:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
ofedoren: needinfo? (pdudley)


Attachments (Terms of Use)

Description Paul Dudley 2023-08-09 22:58:27 UTC
Description of problem:
Unable to get webhook data against the host.created event for discovered hosts

How reproducible:
100%

Steps to Reproduce:
1. discover a host via foreman discovery
2. create the host with any relevant info
3. observe that the host.created hook is never printed

Actual results:
Creating a discovered host does not trigger the host.created hook.

Expected results:
Creating the discovered host should print the host.created event payload for the host created

Additional info:
The host.updated hook is triggered without issue, but that hook has many triggers and it makes it more difficult to curate a hook only for data from a discovered host.

Comment 1 Oleh Fedorenko 2023-08-10 10:57:15 UTC
Hello Paul,

Currently we're trying to better distinguish between different host related events, since host_updated event is quite general. host_created event seems to be a bit general also, since we should consider discovered hosts as well.

Do you think a new, e.g. discovered_host_created, event will be sufficient solution?


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