Bug 1285463 - The cloud tenant summary page always shows 0 images
Summary: The cloud tenant summary page always shows 0 images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Ladislav Smola
QA Contact: Pavol Kotvan
URL:
Whiteboard: tenant
Depends On:
Blocks: 1289745
TreeView+ depends on / blocked
 
Reported: 2015-11-25 16:20 UTC by Bill Wei
Modified: 2019-08-06 20:06 UTC (History)
4 users (show)

Fixed In Version: 5.6.0.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1289745 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:11:46 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

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


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