I think https://review.opendev.org/c/openstack/glance/+/146651 fixed this. Please reopen this bug report if you still encounter this issue.
** Changed in: glance Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1253963 Title: Can not define only image creator can delete the image Status in Glance: Fix Released Bug description: We want to define that the image only can be deleted by admin or image creator. So we modify the policy file as below: { "context_is_admin": "role:admin", "admin_or_user": "is_admin:True or user_id:%(user_id)s", "default": "", "manage_image_cache": "role:admin", "delete_image": "rule:admin_or_user" } But it does not work because it does not pass the user_id or other detail to the policy checker. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1253963/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp