8.6. Creating and copying instance snapshots between sites
Create instance snapshots at edge sites and copy them to the central location for backup and image management. This validates your image copying workflow across distributed sites.
Procedure
Verify that you can create a new image at the
az1location. Ensure that the server is stopped to quiesce data to create a clean snapshot:NOVA_ID=$(openstack server show pet-server-az1 -f value -c id) openstack server stop $NOVA_ID openstack server image create --name cirros-snapshot $NOVA_ID openstack server start $NOVA_IDCopy the image from the
az1edge site back to the central location, which is the default backend for glance:IMAGE_ID=$(openstack image show cirros-snapshot -f value -c id) glance image-import $IMAGE_ID --stores az0 --import-method copy-image