Project

General

Profile

Bug #29683

Unable to search by value of certain Hostgroup parameter

Added by Kavita Gaikwad 7 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1829412

Description of problem:
When we try to search the hostgroups with the help of Host Parameter
value. On Satellite 6.6 and Satellite 6.7, this fails with an error

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

How reproducible:
Always

Steps to Reproduce:

1. Login to Satellite > Configure -> Hostgroups > Select hostgroup[testgrp] > click on Parameter tab > Add a new Parameter

Name= cfme_catalog_display
Type= String
Value= yes

2. Login to Satellite > Configure -> Hostgroups > Enter below below
value in Search bar
 params.cfme_catalog_display=yes

Now when trying to search the hostgroups with the help of Host Parameter value. On Satellite 6.6 and Satellite 6.7, this fails with an error  "Field'params.cfme_catalog_display not recognized for searching'

Also, on search bar unable to see any value/type option with "param."

Actual results:

Login to Satellite > Configure -> Hostgroups > Enter below below value in Search bar
 params.cfme_catalog_display=yes

fails with an error "Field'params.cfme_catalog_display not recognized for searching'

Expected results:

Login to Satellite > Configure -> Hostgroups > Enter below below value in Search bar
 params.cfme_catalog_display=yes

Successfully able to search hostgrouop :testgrp, when searched with "params.cfme_catalog_display=yes" in search bar.

Additional info:

Same works perfectly in Red Hat Satellite 6.5.

On Satellite 6.5:

1. Login to Satellite > Configure -> Hostgroups > Slecet hostgroup[testgrp] > click on Parameter tab > Add a new Parameter.

Name: cfme_catalog_display
Value: yes

2. When we are trying to search with help of above Parameter value. On Satellite 6.5,  

Login to Satellite > Configure -> Hostgroups > Enter below below value in Search bar
 params.cfme_catalog_display=yes

Successfully able to search hostgrouop :testgrp, when searched with "params.cfme_catalog_display=yes" in search bar.


Related issues

Related to Foreman - Bug #29493: Can't search Hosts/Hostgroup by ParameterNew

Associated revisions

Revision b5af8416 (diff)
Added by Kavita Gaikwad 5 months ago

Fixes #29683 - fix params search on hg,os,domain,subnet pages

Revision f46e93f6 (diff)
Added by Kavita Gaikwad 5 months ago

Refs #29683 - add search by param tests for models

Revision 7ef6aaca (diff)
Added by Ondřej Ezr about 2 months ago

Refs #29683 - clean up forgotten puts

In f46e93f6fc848badf9e087a7c1756248e08d2ead we've forgot to remove debug puts.

History

#1 Updated by Lars Wagner 7 months ago

  • Related to Bug #29493: Can't search Hosts/Hostgroup by Parameter added

#2 Updated by Kavita Gaikwad 7 months ago

  • Assignee set to Kavita Gaikwad

#3 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7670 added

#4 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.2.0 added

#5 Updated by Kavita Gaikwad 5 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 4 months ago

  • Category set to Search

#7 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

#8 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/8057 added

Also available in: Atom PDF