Choose storage by access and lifetime
| Need | Service or resource | How the workload uses it |
|---|---|---|
| Select an initial boot template | Glance image | Nova retrieves an image and metadata |
| Scratch files tied to a VM | Nova instance-local disk | Guest sees a disk whose lifetime follows the instance |
| Database files on a detachable disk | Cinder volume | Guest sees a block device |
| Store exported backups or datasets by name | Swift object | Client uses an object storage API |
Glance can store images on different backends. An image in an object backend still serves as a boot template in the Glance catalog. A Cinder snapshot captures a volume at a point in time and can seed a new volume. A backup is an archived copy. Swift uses a proxy to route object operations and a ring to map partitions to storage locations and replicas.
In an added example, boot a fresh VM from an image, attach a volume for the database and store an exported report in Swift. Deleting the VM discards instance-local files. The report has its own lifetime. The volume can be reused if its lifecycle configuration preserves it. Stopping a VM differs from deleting it, and a volume explicitly configured for deletion with the server can be removed with it.
Describe the deployment with Heat
A stack template declares resources and their relationships. Suppose a web VM needs a port on a private network, while a database VM needs that network and a Cinder volume. Heat can create the network before the dependent ports and call the appropriate service APIs for each resource. On a later template update, it works out which stack resources need changes. Replacements and deletion policies matter when state is involved.
Ceilometer collects measurements that can inform automation. Heat implements stack changes. The deck mentions several template formats. Study the desired resources, dependencies and downstream API calls as the stable idea. OpenStack Heat resource types and template examples
Retrieval
After replacing the database VM, which resource lets you resume using the same disk contents? Reattach the retained Cinder volume. Launching from the original Glance image recreates the starting software instead.
Source: Lecture 09 - OpenStack, printed slides 66–79.