Project

General

Profile

Actions

Bug #10475

closed

The puppet fact search does not work when used with 'and' operator

Added by Bryan Kearney about 9 years ago. Updated about 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1201404
Description of problem:

Unable to use 'and' operator when filter using puppet facts on Monitor-->Facts page.

Version-Release number of selected component (if applicable):

6.0.8

How reproducible:

Every time

Steps to Reproduce:
1. Go to Monitor-->Facts page and do search something which requires and operator: host.facts.operatingsystemmajrelease = 6 and name = puppetversion
2. This does not return any systems though it is true for multiple systems.

Actual results:

Unable to search with 'and' operator.

Expected results:

Should be able to use 'and' operator in search.

Additional Information:

As per discussions on satellite-tech-list we need new version of scoped_search of foreman.

--->
Are you trying to get the puppet version for all hosts running RHEL 6?

This works for me on the latest version upstream, but not on Satellite:
host.facts.operatingsystemmajrelease = 6 and name = puppetversion

So sounds like it's not possible in 6.0 GA and needs a newer version of
scoped_search or foreman.

Stephen Benjamin
Red Hat Engineering

Actions #1

Updated by Dominic Cleal about 9 years ago

  • Status changed from New to Duplicate
  • Assignee deleted (Ori Rabin)

Bryan Kearney wrote:

This works for me on the latest version upstream, but not on Satellite:
host.facts.operatingsystemmajrelease = 6 and name = puppetversion

So sounds like it's not possible in 6.0 GA and needs a newer version of
scoped_search or foreman.

Actions #2

Updated by Ohad Levy about 9 years ago

I just want to confrim before rejecting the bug:

 host.facts.operatingsystemmajrelease = 6 and name = puppetversion

is not a valid search term at all under the facts page.

you are searching for a single fact, and there is no fact that is both osrelease and puppetversion.

further. the prefixing host is not valid syntax in the facts page, it might be valid in the hosts page.

Actions

Also available in: Atom PDF