Ask Your Question
3

openstack glance, how to share image?

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

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
1

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

mishra-rakesh510 gravatar image

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

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

edit flag offensive delete link more
0

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

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

Comments

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 -0600 )edit

is your tenant-id-1 admin?

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

yes, but still does not work

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

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

Terry Howe gravatar image

First

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

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

2 followers

Stats

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

Seen: 7,956 times

Last updated: May 06 '15