Searchlight not updating on member change

Bug #1491085 reported by Travis Tripp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
High
Lakshmi N Sampath

Bug Description

If you create an image and later change its members, the members are not updated via notifications. You have to run the index sync again to get the updated member list.

See: https://bugs.launchpad.net/searchlight/+bug/1490697

Membership information is critical for horizon filtering. Typically, a person is allowed to view an image under the following conditions:

 1) The image is owned by the project I am currently logged into.
 2) The image is public
 3) The image is owned by another project which has added me as a member and I have accepted membership to it.

Without current membership information, 3) above is not possible.

Glance bug here: https://bugs.launchpad.net/glance/+bug/1441453

CLI command to do image membership on devstack:

 # Pick an admin image ID and a demo project ID
 source ~/opensource/openrc admin admin
 glance image-list
 openstack project list

 # Share the image with the demo project using:
 glance member-create <image-id> <project-id>

 # switch to demo project and accepted the sharing
 source ~/devstack/openrc admin demo
 glance member-update <image-id> <project-id> accepted

 # Verify in listener and in results
 # You can re-trigger by updating status again to pending
 # and then back to accepted. Introspect searchlight
 # between them.
 glance member-update <image-id> <project-id> pending
 glance member-update <image-id> <project-id> accepted

Revision history for this message
Steve McLellan (sjmc7) wrote :

Glance doesn't issue a notification on image member changes. We'll have to see if this is something they'll entertain.

Changed in searchlight:
importance: Undecided → High
description: updated
description: updated
Revision history for this message
Travis Tripp (travis-tripp) wrote :
Changed in searchlight:
status: New → In Progress
milestone: none → liberty-rc1
assignee: nobody → Lakshmi N Sampath (lakshmi-sampath)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight (master)

Fix proposed to branch: master
Review: https://review.openstack.org/228998

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/229526
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=622c5bbb7da87b98c684f97b0906dc1a93de284b
Submitter: Jenkins
Branch: master

commit 622c5bbb7da87b98c684f97b0906dc1a93de284b
Author: Steve McLellan <email address hidden>
Date: Wed Sep 30 12:03:34 2015 -0500

    Add --no-delete to indexing

    To support cases where it's desirable to index without deleting data
    and mapping, add a --no-delete option to 'index sync'.

    Change-Id: I54973ee69864963878021d376b24bca49caa9570
    Partial-Bug: #1491085

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/228998
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=feeddfc7cdba69a185d9893f5aeba35173089ca4
Submitter: Jenkins
Branch: master

commit feeddfc7cdba69a185d9893f5aeba35173089ca4
Author: Lakshmi N Sampath <email address hidden>
Date: Tue Sep 29 20:40:33 2015 +0530

    Fix for updating image index on member notifications

    Change-Id: I953184ecdf111245c6cf420ba0f8b6c09f79ab36
    Closes-Bug: #1491085

Changed in searchlight:
status: In Progress → Fix Committed
Changed in searchlight:
status: Fix Committed → Fix Released
Changed in searchlight:
milestone: liberty-rc1 → 0.1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.