Bug #29683
Unable to search by value of certain Hostgroup parameter
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
Associated revisions
Refs #29683 - add search by param tests for models
Refs #29683 - clean up forgotten puts
In f46e93f6fc848badf9e087a7c1756248e08d2ead we've forgot to remove debug puts.
History
#1
Updated by Lars Wagner 10 months ago
- Related to Bug #29493: Can't search Hosts/Hostgroup by Parameter added
#2
Updated by Kavita Gaikwad 10 months ago
- Assignee set to Kavita Gaikwad
#3
Updated by The Foreman Bot 10 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 8 months ago
- Fixed in Releases 2.2.0 added
#5
Updated by Kavita Gaikwad 8 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset b5af8416d5f12b687d16cba504fde4c69c214d97.
#6
Updated by Tomer Brisker 7 months ago
- Category set to Search
#7
Updated by The Foreman Bot 6 months ago
- Pull request https://github.com/theforeman/foreman/pull/7975 added
#8
Updated by The Foreman Bot 5 months ago
- Pull request https://github.com/theforeman/foreman/pull/8057 added
Fixes #29683 - fix params search on hg,os,domain,subnet pages