Bug 1285463

Summary: The cloud tenant summary page always shows 0 images
Product: Red Hat CloudForms Management Engine Reporter: Bill Wei <bilwei>
Component: ProvidersAssignee: Ladislav Smola <lsmola>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: jfrey, jhardy, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: tenant
Fixed In Version: 5.6.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1289745 (view as bug list) Environment:
Last Closed: 2016-06-29 15:11:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289745    

Description Bill Wei 2015-11-25 16:20:54 UTC
Description of problem:
In the summary page of an OpenStack cloud tenant page, the field Images always shows 0.

In the backend this is caused by the query of ManageIQ::Providers::Openstack::CloudManager::CloudTenant.miq_templates returns []. The many_to_many relationship is not handled properly at image collection time.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Ladislav Smola 2016-01-12 07:50:14 UTC
this will require getting /v2/images/​{image_id}​/members to refresh that relation

Comment 4 CFME Bot 2016-04-19 05:00:56 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7f841eed10af19aa5aa0bbc4729db7fd9d6896ea

commit 7f841eed10af19aa5aa0bbc4729db7fd9d6896ea
Author:     Ladislav Smola <lsmola>
AuthorDate: Wed Mar 16 17:26:20 2016 +0100
Commit:     Ladislav Smola <lsmola>
CommitDate: Tue Apr 12 11:05:29 2016 +0200

    OpenStack fix tenant <-> image membership
    
    Fixing tenant <-> image membership taking in account if
    image is public and members of the image.
    
    Fixes BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1285463

 app/models/ems_refresh/save_inventory.rb              |  2 ++
 .../openstack/refresh_parser_common/images.rb         | 19 ++++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

Comment 8 errata-xmlrpc 2016-06-29 15:11:46 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/RHBA-2016:1348