Bug 1607441

Summary: Internal Server Error during filtering by flavor name in API
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Julian Cheal <jcheal>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: bsorota, cpelland, ikaur, mkourim, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.4.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1596069 Environment:
Last Closed: 2018-09-04 18:01:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1596069    
Bug Blocks:    

Comment 2 CFME Bot 2018-07-23 23:55:50 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/54ec113077d242bb804770698601291a040deb80
commit 54ec113077d242bb804770698601291a040deb80
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Wed Jul 18 16:46:18 2018 -0400
Commit:     Gregg Tanzillo <gtanzill>
CommitDate: Wed Jul 18 16:46:18 2018 -0400

    Merge pull request #17692 from juliancheal/filter_by_flavor_api

    Adding flavor as a has one on VM
    (cherry picked from commit fb7a26da221d315639bf6851d646522db54f5d17)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1607441

 app/models/vm_or_template.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 3 Martin Kourim 2018-08-13 14:00:57 UTC
Verified on 5.9.4.2 that it's possible to filter by flavor name:

GET /api/vms?filter[]=flavor.name=m3.medium
{
    "name": "vms",
    "count": 38,
    "subcount": 1,
    "subquery_count": 1,
    "pages": 1,
    "resources": [
        {
            "href": "https://<addr>/api/vms/792"
        }
    ],
...

Comment 5 errata-xmlrpc 2018-09-04 18:01:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2018:2561