Created attachment 1579726 [details]
Description of problem:
When I add or remove a subscription to a host and check the Monitor > Audits in the WebUI, the records are showing "Missing(ID: 2)" in "Host ids" line.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Register a host to the Satellite
2. Go to Hosts > Content hosts > pick the host > tab Subscriptions > Add or Remove some subscription
3. Go to Monitor > Audits > check the latest log
"Missing(ID: 2)" shown in "Host ids" item
Valid value shown in "Host ids" item
See the attachment
Kavita, does this ring a bell? It feels like we can't find the host object for some reason. I wonder if that could be caused by taxonomies, this audit does not have any location. But the user is apparentely an admin.
(In reply to Marek Hulan from comment #3)
> Kavita, does this ring a bell? It feels like we can't find the host object
> for some reason. I wonder if that could be caused by taxonomies, this audit
> does not have any location. But the user is apparentely an admin.
I had discussion with Vladimír about this BZ previously. This is not due to taxonomies.
There is no direct association between pool and hosts but there is 'hosts' method defined inside Glue::Candlepin::Pool.
To fix this BZ, I would need changes from this PR - https://github.com/theforeman/foreman/pull/6710
which will allow me to add audit hook on pool side to get host records.
Creating an upstream issue for pool side changes which will get merge after this above PR
Created redmine issue https://projects.theforeman.org/issues/27383 from this bug
since this is merged upstream, moving to POST
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.