← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1671693] Re: Rebuild instance panel does not show project images when using Glance V2

 

Reviewed:  https://review.openstack.org/444091
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=445117eb1fa1cd67e21e69243fbbe12c453192fa
Submitter: Jenkins
Branch:    master

commit 445117eb1fa1cd67e21e69243fbbe12c453192fa
Author: Mark Mielke <mark.mielke@xxxxxxxxx>
Date:   Thu Mar 9 23:16:51 2017 -0500

    Image list function should normalize owner filter
    
    The api.glance.image_list_detailed() function accepts a list of
    filters which it then translates into a form that is acceptable for
    Glance v1 or Glance v2. These translations included support for
    mapping 'is_public' to 'visibility', but did not include support for
    mapping 'property-owner_id' to 'owner'.
    
    This changes adds support for mapping 'property-owner_id' to 'owner'
    for Glance v2, and mapping 'owner' to 'property-owner_id' for Glance
    v1.
    
    Before this fix, "rebuild instance" from the instances page did not
    properly list project-specific images as options.  After this fix,
    "rebuild instance" is working as expected.
    
    Change-Id: Ica750f8b36bdbadd02a81aed41fd250864a49a66
    Closes-Bug: 1671693


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1671693

Title:
  Rebuild instance panel does not show project images when using Glance
  V2

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  When using Glance v2, the "rebuild instance" panel shows public
  images, but does not show project images.

  Steps to reproduce:
  * Configure Horizon to use Glance v2
  * Create a private image in project A
  * Rebuild an instance in project A from the instances dashboard
  * The image list will show public images, but not project images

  Upon more detailed investigation, the "rebuild instance" function
  calls code that searches for images based upon "property-owner_id",
  which only works in Glance v1. In Glance v2, it should use "owner".

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1671693/+subscriptions


References