Verify image and volume operations across edge sites
To ensure that the deployment of central and edge sites are working, test glance multi-store and instance creation. You can use the openstackclient pod to test commands as an OpenStack administrator.
You can import images into glance that are available on the local filesystem or available on a web server.
View Image service stores in DCN Copy linkLink copied!
Verify that all Image service (glance) stores are available to confirm that your multi-store configuration is working correctly.
Procedure Copy linkLink copied!
glance stores-info command. In the following example, three stores are available: central, dcn1, and dcn2. The central store is at the central location, and the dcn1 and dcn2 stores are at edge sites:
$ glance stores-info
+----------+----------------------------------------------------------------------------------+
| Property | Value |
+----------+----------------------------------------------------------------------------------+
| stores | [{"default": "true", "id": "az0", "description": "central rbd glance |
| | store"}, {"id": "az1", "description": "z1 rbd glance store"}, |
| | {"id": "az2", "description": "az2 rbd glance store"}] |
+----------+----------------------------------------------------------------------------------+
Populate an edge Glance store from a local image file Copy linkLink copied!
Import an image from a local file to the central location and distribute it to edge sites. This workflow ensures that images are centrally managed and consistently available across all locations.
Procedure Copy linkLink copied!
Import an image from a web server Copy linkLink copied!
Import images directly from a web server to multiple storage locations. This method streamlines image distribution across your DCN deployment by eliminating manual copying steps.
About this task Copy linkLink copied!
This procedure assumes that the default image conversion plugin is enabled in the Image service (glance). This feature automatically converts QCOW2 file formats into raw images, which are optimal for Ceph RBD. You can confirm that a glance image is in raw format by running the glance image-show ID | grep disk_format.
Procedure Copy linkLink copied!
image-create-via-import parameter of the glance command to import an image from a web server. Use the --stores parameter.
# glance image-create-via-import \
--disk-format qcow2 \
--container-format bare \
--name cirros \
--uri http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img \
--import-method web-download \
--stores az0,az1
In this example, the QCOW2 CirrOS image is downloaded from the official CirrOS site, converted to raw by glance, and imported into the central site and edge site 1 as specified by the --stores parameter.
--stores with --all-stores True to upload the image to all of the stores.
Copy an image to a new site Copy linkLink copied!
Copy images from the central location to edge sites to make them available for instance creation. This reduces instance launch time by eliminating the need to transfer images over the WAN during deployment.
Procedure Copy linkLink copied!
Create image-based boot volumes at edge sites Copy linkLink copied!
Create persistent boot volumes from images stored at edge sites to validate that instances can launch from Ceph-backed storage at your distributed locations.
Procedure Copy linkLink copied!
Create and copy instance snapshots between sites Copy linkLink copied!
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 Copy linkLink copied!
Back up and restore volumes across edge sites Copy linkLink copied!
Back up and restore Block Storage (cinder) volumes across edge sites and the central location for data protection and disaster recovery. All backups are centrally stored and managed to provide a consistent recovery point across your distributed architecture.
Before you begin Copy linkLink copied!
- The Block Storage backup service is deployed in the central AZ. For more information, see Updating the control plane.
- Block Storage (cinder) REST API microversion 3.51 or later.
- All sites use a common
openstackcephx client name.
About this task Copy linkLink copied!
Back up and restore operations directly between edge sites are not supported.