Glance image sharing across different regions

Problem

If you want to share an image with other regions.

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher

Two regions with a different set of glance nodes.

Procedure

  1. Save the image on the host from First region.
Save source image
Copy

2. Copy the image(s) using SCP to the /tmp directory of the target region's glance hosts.

3. There are three ways to add an image file to the Glance image repository in Platform9 Managed OpenStack:

  • Copy an image file into the repository directory__. The supporting pf9-imagelibrary service will detect the new file, calculate Glance metadata for it, and add it to Glance.
  • Upload an image using the Glance command line client (or through some other REST client).
  • Create an image as a snapshot of a virtual machine disk or Cinder volume.
  1. Here, we will see "Copy an image file into the repository directory" method. Please copy/move the images from "/tmp"to the watch folder by default it is "/var/opt/pf9/imagelibrary/data" which can changed by administrator as needed, and they will be automatically imported into your Glance Image Catalog.

Note related to Image Permissions: Your image files must have the right permissions - world-readable or readable to pf9 user and pf9group group. You can use the following command on the image file:

chown pf9:pf9group <image-file-name>

With above method you will start observing the image in another region.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard