Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1596069 - Internal Server Error during filtering by flavor name in API
Summary: Internal Server Error during filtering by flavor name in API
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.10.0
Assignee: Julian Cheal
QA Contact: Parthvi Vala
Depends On:
Blocks: 1572700 1607441 1607442
TreeView+ depends on / blocked
Reported: 2018-06-28 08:10 UTC by Imaan
Modified: 2019-02-11 14:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1607441 1607442 (view as bug list)
Last Closed: 2019-02-11 14:05:38 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:

Attachments (Terms of Use)

Description Imaan 2018-06-28 08:10:06 UTC
Description of problem:

Internal Server Error during filtering by flavor name in API.

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

Red Hat CloudForms 4.6

How reproducible:100%

API Query:[]"m1.tiny"

API Response: 

    "error": {
        "kind": "internal_server_error",
        "message": "undefined method `klass' for nil:NilClass\nDid you mean?  class",
        "klass": "NoMethodError"

Expected results: It should return 200 status code with flavor information.

Comment 4 Dave Johnson 2018-06-28 08:43:12 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 5 Julian Cheal 2018-07-11 12:18:12 UTC

Not sure if this is correct, but it stops throwing the error.

Comment 6 Julian Cheal 2018-07-18 19:36:24 UTC
Fixed in PR Vm needed to belong to Flavor in the models.

Comment 9 Parthvi Vala 2018-11-12 14:28:33 UTC
FIXED. Verified on

Request: GET /api/vms?filter[]"<flavor_name>"
Response: {
    "name": "vms",
    "count": 14,
    "subcount": 1,
    "subquery_count": 1,
    "pages": 1,
    "resources": [
            "href": "https://<ip_address>/api/vms/99"
    "actions": [
    "links": {
        "self": "https://<ip_address>/api/vms?",
        "first": "https://<ip_address>/api/vms?",
        "last": "https://<ip_address>/api/vms?"

Note You need to log in before you can comment on or make changes to this bug.