Actions
Bug #38396
opendiscovered host search queries break when `has facts.x` is combined with another type of comparison
Status:
New
Priority:
Normal
Assignee:
-
Category:
Discovery plugin
Description
Problem:
Given a discovered host with facts
fact1 = foo
fact2 = bar
the search query `has facts.fact1 and facts.fact2 = bar` returns no hosts.
A similar query for provisioned hosts does work.
Expected outcome:
A query `has facts.x and facts.y = z` should return all hosts that have a fact named `x` with any value and a fact `y` with value `z` for both discovered and provisioned hosts.
Foreman and Proxy versions:
3.13
Foreman and Proxy plugin versions:
Katello 4.15
Discovery 25.0.0
Distribution and version:
Oracle Linux 9
Support forum post on same topic: https://community.theforeman.org/t/host-searches-for-discovered-hosts-that-include-has-facts-xxx-and-facts-yyy-zzz-in-same-query-fails/43093
No data to display
Actions