How to share images between projects
You may require the ability to use multiple projects, but may want to use custom images across those projects. Sharing images between projects enables you to create master images in a single project, and then share them into multiple other projects.
This article provides examples of how to share images between OpenStack projects in the same region.
This article is intended for anyone responsible for the design and implementation of applications and services deployed on UKCloud's OpenStack service. Users should be familiar with using the OpenStack dashboard and API or CLI.
Sharing images between projects
You will require a RC file for both the source project and the destination project.
Source the source project RC file.
Locate the destination project:
openstack project list
Locate the image you want to share:
openstack image list
Set the image as shareable:
openstack image set --shared image-id
Share the image with the destination project:
glance member-create image-id dest-project-id
Source the destination RC file.
Check that the image share is pending:
openstack image member list image-id
Accept the image share:
openstack image set --accept image-id
If you find a problem with this article, click Improve this Doc to make the change yourself or raise an issue in GitHub. If you have an idea for how we could improve any of our services, send an email to firstname.lastname@example.org.