Ask Your Question
0

Allow access to _member_ user for take Snapshot

asked 2015-10-29 01:45:15 -0500

Bipin gravatar image

Hello All,

I want to allow _member_ privileged users to take snapshot of their Virtual Machines. Here follows my glance policy.json

"add_image": "",
"delete_image": "",
"get_image": "",
"get_images": "",
"modify_image": "",
"publicize_image": "",
"copy_from": "",

I believe the "publicize_image" option is doing the permission, so I give permission to any to take snapshots. After editing the file, i restarted following services.

service glance-registry restart
service glance-api restart

But when I trying to take snapshot, Horizon says, you dont have permission and kicked me out from the dashboard.

Regards

edit retag flag offensive close merge delete

Comments

Hi, Publicize_image does not do what you want, it only gives permissions to make the image publicly. Here is the policy.json doc

http://docs.openstack.org/developer/glance/policies.html

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-10-29 01:53:14 -0500 )edit

publicize_image is for Create or update images with attribute ? Snapshot is nothing but an Image ?? Because i dont find anything related to Snapshot on the link you provided.

Bipin gravatar imageBipin ( 2015-10-29 03:07:40 -0500 )edit

I'd say the snapshot is made by Nova, then uploaded to Glance. Normally, the owner of an instance should be able to create a snapshot without tweaking policy.json. Your permission problem must be somewhere else.

Bernd Bausch gravatar imageBernd Bausch ( 2015-10-31 02:23:51 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-11-04 23:46:00 -0500

Bipin gravatar image

Hi,

Its solved. Issue was with the following file.

/usr/share/openstack-dashboard/openstack_dashboard/conf/glance_policy.json

Proper permission was not defined there.

Regards

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-29 01:45:15 -0500

Seen: 239 times

Last updated: Nov 04 '15