Project

General

Profile

Actions

Bug #38396

open

discovered host search queries break when `has facts.x` is combined with another type of comparison

Added by David Schlenk 6 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Discovery plugin
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF