Bug 2230734

Summary: when discovering a host the host.created is not triggered
Product: Red Hat Satellite Reporter: Paul Dudley <pdudley>
Component: Hooks and WebhooksAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.13.2CC: jstloui9, ofedoren
Target Milestone: UnspecifiedFlags: ofedoren: needinfo? (pdudley)
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 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?