Copying OpenStack Glance images
Use these instructions to copy OpenStack Glance images from one region to another.
About this task
If you have access to the image files and you already
know information such as the container format and disk format, you
can create those images in region two. If the file is accessibly using
HTTP, you can use the OpenStack dashboard
to create a new image. Otherwise, you can use the glance
image-create command to create the image. The following
example assumes that you are logged on to the region two controller
and that you have copied the image file, test_image.img,
to that system:
# . openrc
# glance image-create --name='test image' --is-public=true --container-format=bare --disk-format=qcow2 < test_image.img
If the image files are stored in the region one glance repository or you are not sure of the image properties, use the following procedure to copy OpenStack cloud images from region r1 to region r2. The examples assume that the files openrc.r1 and openrc.r2 contain credentials for authenticating to regions r1 and r2 respectively.