Bug 1572067

Summary: can't search in external providers
Product: [oVirt] ovirt-engine Reporter: Lucie Leistnerova <lleistne>
Component: RestAPIAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.3CC: bugs, lsvaty, mperina
Target Milestone: ovirt-4.2.4Keywords: Automation
Target Release: ---Flags: rule-engine: ovirt-4.2+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:46:22 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:

Description Lucie Leistnerova 2018-04-26 06:38:07 UTC
Description of problem:
Searching external provider by the name that exists in the engine, returns empty result.

Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.2.3.2-0.1.el7.noarch

How reproducible: always


Steps to Reproduce:
1. run search
curl -k -u admin@internal:password -H "Prefer: persistent-auth" https://engine/ovirt-engine/api/openstackimageproviders/?search=name%3Drhevm-qe-brq-glance


Actual results: empty result, even when the provider is listed in result without search

<openstack_image_providers/>


Expected results: provider rhevm-qe-brq-glance

<openstack_image_providers>
    <openstack_image_provider href="/ovirt-engine/api/openstackimageproviders/b1a10d74-c443-4202-a710-827b25802ef2" id="b1a10d74-c443-4202-a710-827b25802ef2">
        <actions>
            <link href="/ovirt-engine/api/openstackimageproviders/b1a10d74-c443-4202-a710-827b25802ef2/importcertificates" rel="importcertificates"/>
            <link href="/ovirt-engine/api/openstackimageproviders/b1a10d74-c443-4202-a710-827b25802ef2/testconnectivity" rel="testconnectivity"/>
        </actions>
        <name>rhevm-qe-brq-glance</name>
        <description></description>
        ...
    </openstack_image_provider>
</openstack_image_providers>



Additional info:
The same is for
/openstacknetworkproviders?search=name%3Dovirt-provider-ovn
and probably for others too, but I did not test them (externalhostproviders, openstackvolumeproviders).

Comment 1 Lucie Leistnerova 2018-05-30 08:35:57 UTC
search returned proper result for openstackimageproviders, openstacknetworkproviders, externalhostproviders and openstackvolumeproviders

verified in ovirt-engine-restapi-4.2.4-0.1.el7.noarch

Comment 2 Sandro Bonazzola 2018-06-26 08:46:22 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.