OpenStack Incident Response Starts with a Record of Normal

How to combine a normal-state baseline, a change ledger, and service boundaries to narrow the cause of OpenStack incidents quickly.

When an OpenStack incident begins, operators open logs and alerts at the same time. Current values alone, however, rarely explain what is wrong. To decide whether an API error rate is higher than usual, whether message-queue latency is a cause or an effect, or whether only one availability zone is affected, operators need a view of the healthy state that came before the incident.

Operators comparing a normal-state graph with OpenStack incident signals after a change

A normal-state baseline is not a stored average utilization value. It is an operational reference that makes it possible to compare which services were responding within what range, what changed immediately before the incident, and how far the impact spread. With that reference, incident response becomes an investigation that narrows differences instead of a collection of guesses.

An incident is visible as a difference

If the only question is “what broke?”, the scope is too broad. OpenStack divides request paths among Keystone authentication, Nova scheduling and compute, Neutron networking, and Cinder storage. A healthy response from one service can hide delay or backend exhaustion in the next service.

The first question should therefore be: “How does the current state differ from the last state we confirmed as healthy?” A useful baseline records at least the following:

  • Success rate, latency, and 4xx and 5xx ratios for important APIs
  • Registration and disabled status for Nova compute services and service agents
  • Available resources and scheduling failure types for Placement resource providers and hosts
  • Neutron agent state, network namespaces, and address-pool availability
  • Capacity, volume-service state, and request wait time for Cinder backends
  • Connection counts, latency, errors, and retries for message queues and databases
  • Control-plane versions, configuration changes, certificate state, and secret expiry

These values do not all need the same alert threshold. The goal is not to turn everything into an alert, but to keep a sample that can be compared when an incident occurs. The OpenStackClient compute service commands show how to inspect current registration state; that result should be stored alongside time-series metrics so that a transient incident can be distinguished from a long-standing configuration problem.

Divide the baseline into four layers

A single dashboard with every metric can look rich while making decisions harder. A baseline is easier to use when it follows the boundaries that a request crosses.

The first layer is platform inventory. Store service versions, cells and availability zones, compute hosts, storage backends, and network-agent lists at regular points in time. Do not only count entries. Compare each snapshot with the last healthy one to find newly added hosts or missing agents.

The second layer is the control plane. Record success rates and latency for Keystone token issuance, Nova API and scheduler operations, Neutron server requests, and Cinder API calls. Message queues and databases belong here as well. The fact that an API is alive does not prove that work has completed in a lower-level service.

The third layer is the data plane. Check user paths such as instance boot, metadata access, east-west traffic, external connectivity, volume attach, and volume I/O. A control-plane request can return 200 while an instance remains disconnected from its network.

The fourth layer is the tenant experience. Run small synthetic transactions from a representative project: create an instance, connect a port, attach a floating IP, and create and delete a volume. If the path a user actually experiences is broken, the platform is not healthy merely because its internal services look good.

Record a normal range instead of an average

Average latency hides peak-time problems. A useful baseline stores percentiles, maximums, and request volume alongside the average. Separate periods with different operating patterns, such as business hours, batch windows, backups, and scheduled image publishing.

For example, an average Nova API latency of 200 milliseconds says little by itself. Operators need to know whether the normal 99th percentile is 800 milliseconds, whether it reaches two seconds during deployments, and whether the scheduler queue grows at the same time. A baseline must be a range with load and time context, not one number.

Healthy does not mean “there are no warnings.” If a known disk-utilization warning or a long scrub time on a particular backend is accepted as normal, document that fact. Treating unexplained warnings as normal makes it easy to miss an important signal during the next incident.

A change ledger creates the incident timeline

The most expensive question in an incident investigation is often “when did this become different?” Record configuration changes, policy deployments, image replacements, quota increases, network security-group edits, certificate rotations, and hardware changes alongside releases.

A change ledger should contain at least these fields:

  • Start and end times, with the reference time zone
  • The service, region, cell, and project affected, plus the expected scope
  • Requester, approver, implementer, and purpose
  • Pre-change validation and the rollback method if it fails
  • Post-change checks, rollback conditions, and expiry conditions

Automation does not remove the need for a readable record. An execution number from a deployment system forces the incident team to search again for what was actually applied. Store the configuration hash, image ID, and service version with a plain-language reason for the change.

Time matters too. When logs use UTC, dashboards use local time, and tickets use the author’s time zone, the order of events becomes ambiguous. The storage format is less important than making every system searchable in one reference time so that an operator can reconstruct one timeline.

Compare four things at the start of an incident

When an incident is declared, compare a few boundaries before reading every log from the beginning.

  1. Fix the user-visible symptom and affected operation in one sentence. “Instance creation failed” is less useful than “new instances in one region wait for more than five minutes and then fail with a scheduling error.”
  2. Compare the last healthy baseline with the current state. Identify which signal changed first and whether the change is common to all projects or limited to a group of hosts.
  3. Compare the result with the change ledger and find changes close to the first observed difference. Temporal proximity is not proof of causality; the scope must also match.
  4. Choose the recovery action and write its validation criteria first. If rolling back, define which API and data-plane operations must become healthy before executing it.

Commands such as openstack compute service list, openstack network agent list, and openstack volume service list can quickly reveal registration changes when their results are compared with the baseline. In environments that use Placement, also inspect the relationship between resource providers and inventory. Resources visible to the scheduler are not the same thing as a successful placement of the requested flavor on a usable host.

Validate the control plane and data plane separately

A successful recovery command does not mean that the incident is over. Control-plane validation checks token issuance, API requests, and resource-state queries. Data-plane validation checks that a new instance boots, reads metadata, receives the intended security-group behavior, and connects to the required networks and volumes.

Separating these checks makes “the API is healthy but the service is not” a precise statement. For example, restoring Neutron server can make port-creation requests succeed while an L3 agent still fails to update a router namespace, leaving external connectivity broken. Conversely, existing instances can remain healthy while new instances fail, which points to a separate investigation of Nova’s placement path.

Start recovery tests with small representative resources. In an isolated project, verify instance creation and deletion, port attachment, volume attachment, name resolution, and external connectivity, then attach the results and timestamps to the incident record. Testing by shaking a large set of production resources at once can expand the incident, so limit the impact first.

Treat changes during investigation more strictly

Changing unrelated configuration while looking for a cause destroys the meaning of the observations. If several values are changed at once, a recovery may occur without revealing which change helped. The next response will then be slower when the problem returns.

When an emergency change is necessary, record the before-state, the value changed, the expected effect, and the stop condition, even briefly. Give a temporary workaround an expiry time and an owner, then decide after stabilization whether to restore the original policy or promote the workaround to a permanent change. Quotas, scheduler filters, security groups, and message-queue settings can affect other projects, so recovery for one user must not be the only success criterion.

Post-incident work rebuilds the baseline

The purpose of a post-incident review is not to locate an individual to blame. If the baseline and change ledger could not explain when the incident began, improve the operating system so the next investigation has better evidence. Ask which metric was missing, which state was incorrectly classified as normal, and which service boundary the change crossed.

The findings are easier to execute when divided into three kinds of improvement:

  • Observability: add missing metrics, log-correlation keys, and synthetic transactions.
  • Change management: improve approval scope, prechecks, automatic rollback, and expiry conditions.
  • Recovery: put actual commands and validation order into the runbook and rehearse them regularly.

A dashboard or runbook that cannot be reused during the next incident is only an archive. Recovery exercises should verify that the operator can find the baseline, compare the change history, and validate the control plane and data plane in order.

Build a small baseline and keep it current

There is no need to build a perfect digital twin of every OpenStack service on the first day. Start with one region, a representative project, and the critical request paths, then expand in this order:

  1. Store service lists and versions, representative API metrics, and synthetic-transaction results every day.
  2. Record deployments, configuration, image, and network-policy changes on the same timeline.
  3. Put the comparison commands, dashboards, and recovery checks for the last healthy point into the incident runbook.
  4. Run a small incident scenario once a month to verify that the baseline and change ledger are useful in practice.

The quality of OpenStack incident response is not determined by the volume of logs. Operators must be able to explain the healthy state, trace the reason and scope of a change, and prove that the user path works again after recovery. Recording normal conditions is not optional work reserved for quiet periods. It becomes the platform’s memory during an incident and gives operators evidence on which to govern the cloud.