Bug 1415751
| Summary: | Webadmin SearchBox: "Vms:hosts" doesn't work | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Shira Maximov <mshira> | ||||||||
| Component: | BLL.Infra | Assignee: | Eli Mesika <emesika> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 4.1.0 | CC: | bugs, emesika, lsvaty, mperina, mshira, oourfali, tjelinek | ||||||||
| Target Milestone: | ovirt-4.2.0 | Keywords: | Reopened | ||||||||
| Target Release: | 4.2.0 | Flags: | rule-engine:
ovirt-4.2+
|
||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: |
Cause:
The reason for that is that both "Hosts" and "host" are available as
search parameters. The search engine is case insensitive and therefor
since it is processing the search string character-by-character after
analysing the entity type (i.e what appears as "<entity>:" , "vms:" for
example) it get the "host" as a token when you are writing "Hosts" and
marks the "s" at the end of the "Hosts" string as an error.
Consequence:
search for "Hosts.<attribute>" for Vms
Fix:
Change "host" to "on_host"
Result:
You can search for "Hosts.<attribute>"
Please keep in mind that the Vms search options should be changed from "host" to "on_host"
|
Story Points: | --- | ||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2017-12-20 11:44:35 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Shira Maximov
2017-01-23 16:10:02 UTC
you left VMs: at the beginning, so you're searching in context of VM object.
> 2. try to perform this search = "VMs: Hosts.name="*"
I do not see the documentation saying that it is supported. It is not
When typing Hosts. (in Virtual machines) I should get auto complete options , as same as Templates gives the options- name, comment, os and more attaching video. Created attachment 1316587 [details]
video
you still have Vms: up front. "Hosts:" is no a property of the VM Created attachment 1316591 [details]
documentation
please see the documentation
not sure it's supposed to work, Martin? Seems like a bug (regression ...) After investigating the bug , this is not a regressions , it never worked ... The problem was that from VMs search you can not search for Hosts attributes (i.e. "Vms:Hosts.<some attribute>" The reason for that is that both "Hosts" and "host" are available as search parameters. The search engine is case insensitive and therefor since it is processing the search string character-by-character after analysing the entity type (i.e what appears as "<entity>:" , "vms:" for example) it get the "host" as a token when you are writing "Hosts" and marks the "s" at the end of the "Hosts" string as an error. Moving to 4.2 as this never worked (although it's documented) and search backend is very fragile part of the code autocomplete on 'Vms: Hosts.' works fine and search also (the same for 'Vms: host.*') verified in ovirt-engine-4.2.0-0.0.master.20171009063348.gitf2b70a1.el7.centos.noarch This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |