openstack glance, how to share image?

asked 2013-08-29 22:44:39 -0500

nora gravatar image

openstack glance, how to share image? in openstack dashboard "images & snapshots", there is a tab called "share with me", how to add image in this tab?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-05-06 00:58:00 -0500

mishra-rakesh510 gravatar image

updated 2015-05-06 00:58:44 -0500

glance member-create <image-uuid> <project-uuid>

edit flag offensive delete link more

answered 2016-05-26 15:12:31 -0500

Terry Howe gravatar image


OS_TENANT_ID=<image_sharer> glance member-update <image_id> <project_id>

After that, accept the image

OS_TENANT_ID=<project_id> glance member-update <image_id> <project_id> accepted

edit flag offensive delete link more

answered 2013-08-29 23:14:02 -0500

I think the image you have added must be private and not share across the tenant you are using. You can do this with CLI,

glance member-create [--can-share] "IMAGE" "TENANT_ID"

Share a specific image with a tenant.

Positional arguments:

"IMAGE" Image to add member to.

"TENANT_ID" Tenant to add as member

Optional arguments: --can-share Allow the specified tenant to share this image.

If you want to do it from dashboard, you will need to share the image from the admin tenant, go to images and you will find the share option.

edit flag offensive delete link more


hello, thank you for your reply. However, I use glance image-create --is-public=False --owner=<tenant-id-1> --name=<image-name> to create a private image. Then I use glance member-create --can-share <image-id> <tenant-id-2> I want to share with this tenant-id-2, but it still does not work.

nora gravatar imagenora ( 2013-08-30 00:00:49 -0500 )edit

is your tenant-id-1 admin?

coolsvap gravatar imagecoolsvap ( 2013-08-30 01:34:13 -0500 )edit

yes, but still does not work

nora gravatar imagenora ( 2013-09-01 22:11:39 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-08-29 22:44:39 -0500

Seen: 9,139 times

Last updated: May 06 '15