Difference between revisions of "Share An Image In Openstack"

From CAC Documentation wiki
Jump to navigation Jump to search
(Created page with "__TOC__ == Introduction == You can share an image from your project with a collaborator in a different project in Openstack cloud so you can both launch instances using the...")
 
Line 22: Line 22:
  
 
== Accept a Shared Image ==
 
== Accept a Shared Image ==
* Get the ID of the shared image from the owner of the image. Make sure the owner has performed the steps in the Share an Image section above.
+
* Get the ID of the shared image from the owner of the image. Make sure the owner has performed the steps in the [[#Share_an_Image | Share an Image]] section above.

Revision as of 17:29, 4 December 2018

Introduction

You can share an image from your project with a collaborator in a different project in Openstack cloud so you can both launch instances using the shared image. You as the owner of the image can revoke the sharing privilege at any time.

To accomplish this,

  1. Both you and your collaborator need to use the Openstack CLI client, and
  2. You will need to know the project name or ID of your collaborator.

Share an Image

  • Find the project ID of your collaborator. Run
openstack project list | grep <collaborator's project name>
and the first field of the output is the ID of your collaborator's project ID.
  • Find the ID of the image you want to share:
openstack image show <image name>
  • Share the image with your collaborator's project:
openstack image add project <image ID> <collaborator's project ID>
  • Verify the image is now shared. The status field should say pending until your collaborator accepts the image.
openstack image member list <image ID>
  • Give the ID of the shared image to your collaborator.

Accept a Shared Image

  • Get the ID of the shared image from the owner of the image. Make sure the owner has performed the steps in the Share an Image section above.