manage_image_cache in glance policy.json

asked 2015-03-13 15:53:29 -0500

Scott Zhang gravatar image

Hello,

I am testing glance policy.json. It appears to me there is no openstack cmd associate with "manage_image_cache" rule. How can I test if "manage_image_cache" action is allowed or not? In the doc it only says "manage_image_cache - Allowed to use the image cache management API". Could anyone let me know what command line I need to type or API call need to make to verify "manage_image_cache" in glance's policy.json?

Also, is there a openstack cmd associated with "modify image"? It seems to me "image set" will only update image's property information rather than the image itself (which is the definition of "modify image" in policy.json). Could anyone let me know if it is possible to verify the "modify image" rule in glance's policy.json file?

Thanks,

edit retag flag offensive close merge delete

Comments

Could someone please give me some hints? Thanks.

Scott Zhang gravatar imageScott Zhang ( 2015-03-15 20:47:19 -0500 )edit