Why OpenStack Images Need a Retirement Plan from Day One

How to design the creation, validation, distribution, retention, and retirement of OpenStack images around recoverability and operational ownership.

An OpenStack image is not a file that gets uploaded once and used forever. It carries an operating system, packages, configuration, vulnerability state, and the decisions of the people who built it. Yet many clouds automate image creation while leaving validation, ownership, and retirement to the habits of individual projects.

The OpenStack image lifecycle from validation and retention to retirement

Without an image lifecycle, old images remain the starting point for new servers. Deleting an old image based only on its name can remove a useful recovery or audit reference. Image management is not just about reducing storage. It defines which operating-system state can be trusted, reused, and recovered, and for how long.

An image is a deployment reference point

An image registered in Glance may look like a disk file, but in operation it becomes a reference point shared by several systems. When Nova creates an instance, the selected image and its metadata affect the boot method, device names, drivers, and agents. Two images with the same distribution name can produce very different servers if their kernels, initialization tools, or security settings differ.

An image catalog therefore needs more than filenames. At minimum, teams should track the following:

  • The source and build definition that produced the image
  • The operating-system and package baseline date
  • The tests it passed and the person or process that approved it
  • The projects and regions where it may be deployed
  • The end of its security support and intended use period

Teams can record these details in image descriptions or custom properties, or keep important values in a separate catalog. The Glance image properties documentation distinguishes standard properties from custom ones. The important part is not the storage location but making the information readable by every image consumer in the same way.

Separate creation from approval

An image produced by a build pipeline should not automatically become available to every project. Creation can be automated; approval confirms what the image means in a production environment. If an untested image appears in a shared catalog, a development artifact can become the starting point for production simply because it is convenient.

A practical lifecycle has at least three states:

  1. A candidate image that is building or waiting for validation
  2. A release image that has passed validation and is approved for deployment
  3. A retiring image that is excluded from new deployments but retained for recovery or investigation

Representing these states only with filename suffixes makes automation fragile. Use protection, visibility, ownership, and custom properties together, and make deployment pipelines accept only image IDs in an approved state. The OpenStackClient image commands provide operations for protection and visibility, but platform policy must decide which image is approved.

Validation must go beyond a successful boot

An instance that boots does not automatically prove that an image is ready for deployment. A successful boot shows that the image meets a minimum execution condition. Network initialization, time synchronization, log forwarding, monitoring agents, disk expansion, and shutdown behavior still need to be checked.

A validation pipeline should include questions such as these, adapted to the local environment:

  • Does the image work with the intended boot mode and device versions?
  • Are host keys and machine identities regenerated on first boot?
  • Do default accounts, temporary credentials, and SSH settings meet policy?
  • Can package repositories and time sources be switched to the internal standard?
  • Does the image remain healthy after reboot, snapshot, volume attach, and volume detach?
  • Are vulnerability findings and exceptions tied to this exact image version?

Run these tests in a project that reflects the tenant network and policies, not only in a build environment. An image that passes development tests but fails against production security groups or the metadata service is not a deployable image.

Versions should explain the reason for change

A name such as ubuntu-2026-11-30 gives a creation date but says little about what changed. An image version should expose the units an operator needs for a decision. For example, a catalog can record the base image version, the image build definition version, and the security patch baseline date as separate attributes.

Every new image also needs a decision about the role of its predecessor. For a routine patch release, the new image can become the default for new deployments while the old one remains available for a defined period. If the kernel or initialization model changes substantially, the image should have a distinct compatibility review instead of silently replacing the old one. Changing the default image for new instances is not the same as replacing existing instances.

This distinction lets an incident report say that failures began with a particular change, rather than merely saying that the latest image was used. Troubleshooting needs a known-good reference point, not just one image labeled current.

Start sharing with the smallest useful scope

An image that needs to be used by several projects does not need to be public from the beginning. Image visibility and sharing scope are choices between convenience and isolation. A development image can remain available to the build project, while an approved release image can be shared with service projects or a selected domain.

The sharing policy also needs answers for these cases:

  • How access is revoked when an image is found to contain a secret
  • When access is removed from a retired project or former tenant
  • Who revokes copies in another region
  • How a visibility change affects existing instances and future deployments

Revoking access to an image does not automatically make instances that used it safe. Data can remain in deployed disks, caches, and snapshots. Image sharing, credential rotation, and instance replacement therefore need to be designed together.

Retirement is a transition, not a delete button

Deleting an image immediately reduces storage, but it can also remove evidence needed for recovery and investigation. Keeping every image forever makes the catalog untrustworthy and makes it hard to identify a safe default. Retirement works better as a transition:

  1. Remove the image from new-deployment choices.
  2. Check which projects and instances still depend on it.
  3. Announce a replacement image and a transition deadline.
  4. Protect it for the retention period required by recovery.
  5. Remove its data and metadata after the owner and approver confirm the decision.

Retention should depend on purpose rather than one universal number. A development image can have a short period, while a regulated service’s baseline image may need to follow audit and recovery requirements. The policy must also state whether expiry deletes the image automatically or requires a documented extension and a new approval.

Recovery tests prove the value of retention

An image kept for recovery but never used in a recovery exercise is only optimism in file form. The fact that Glance can list an image does not prove that the image can recover a service with the current Nova, networking, and storage configuration.

At a quarterly interval, or at a cadence suited to the service risk, test scenarios such as these:

  • Can the retiring image create an instance in an isolated network?
  • Are its metadata and initialization settings still valid?
  • Is it compatible with current flavors, networks, and security groups?
  • Can application data and configuration be attached after recovery?
  • Can the image ID, version, and validation result be recorded in the incident record?

An image that fails a recovery exercise is not a reason to extend retention. It is a reason to replace the image or redefine its retention purpose. When test results feed the next image release, the lifecycle becomes an operating learning loop rather than a storage policy.

Automate repetition and reserve judgment for decisions

Repetitive image work should be automated. Builds, vulnerability scans, property assignment, candidate isolation, expiry notices, and reports of unused images can be handled by pipelines and schedulers. When automation approves or deletes images, its conditions and exceptions should be reviewable as code.

Some decisions still need an accountable operator to review the evidence:

  • Whether to keep deploying an image with a security exception
  • Whether an image is valuable enough to retain as a recovery reference
  • Whether a compatibility change deserves a separate image
  • Whether an incident or audit requires an extension of the retention period

The goal is not to eliminate human judgment. It is to reduce the number of moments that require judgment and connect each decision to an image ID and a change record.

The image catalog becomes the platform’s memory

When image lifecycles are operated well, a catalog becomes more than a download list. It records which security baseline approved an image, when it became the default, and why it was retired. That history supports incident response, cost management, auditing, and supply-chain security.

The starting point does not need to be a large image-management platform. Define four practices and apply them to one service:

  1. Document image states and approval criteria.
  2. Connect each image ID to its build source and validation result.
  3. Keep default images and retiring images distinct in deployment automation.
  4. Run regular recovery exercises using retained images.

OpenStack images should be easy to create, but trusting and reusing one requires an explainable history. Automating creation and distribution while ignoring retirement and recovery makes a catalog age quickly. A durable cloud decides from the first image build when it earns trust, when its role ends, and under what conditions it can be used again for recovery.