Bug #10475
closedThe puppet fact search does not work when used with 'and' operator
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