Project

General

Profile

Actions

Bug #16600

closed

Searches with global parameters and overrides returning incorrect results

Added by Dominic Cleal over 7 years ago. Updated over 7 years ago.

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

Description

Copy of #16565 without the DB migration and priorities renumbering, focusing on the search ext method fix.


Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1372069
Description of problem:
Searches with global parameters not working as expected. The hammer host list --search "params.globalparameter = value1" returns all hosts even when we override these values for some hosts. From WebUI also we get same results.

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

How reproducible:
Everytime

Steps to Reproduce:
1. hammer global-parameter set --name myparam --value one

2. hammer host set-parameter --host-id 3 --name myparam --value two

3. hammer host list --search "params.myparam = two"
---|-------------------|------------------|------------|-----------------|------------------
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC
---|-------------------|------------------|------------|-----------------|------------------
3 | testvm.labs.local | RedHat 7.2 | provhg | 192.168.124.100 | 52:54:00:79:93:27
---|-------------------|------------------|------------|-----------------|------------------

4. hammer host list --search "params.myparam = one"
---|----------------------|------------------|------------|-----------------|------------------
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC
---|----------------------|------------------|------------|-----------------|------------------
1 | satellite.labs.local | RedHat 7.2 | | 192.168.124.10 | 52:54:00:98:78:a0
3 | testvm.labs.local | RedHat 7.2 | provhg | 192.168.124.100 | 52:54:00:79:93:27
---|----------------------|------------------|------------|-----------------|------------------

Expected results: Hosts with values overridden should not be listed


Related issues 1 (0 open1 closed)

Copied from Foreman - Bug #16565: Searches with global parameters and overrides returning incorrect resultsClosedTomer Brisker09/15/2016Actions
Actions #1

Updated by Dominic Cleal over 7 years ago

  • Copied from Bug #16565: Searches with global parameters and overrides returning incorrect results added
Actions #2

Updated by Dominic Cleal over 7 years ago

  • Status changed from New to Rejected
  • Assignee deleted (Dominic Cleal)
  • translation missing: en.field_release deleted (190)

#16565 is now set to 1.13.0 instead of splitting the fix.

Actions

Also available in: Atom PDF