Inspect service status¶
Status: validated on the lab (OKD 4.22.0-okd-scos.10, operators 18-stable) on 2026-11-11
With Kolla-Ansible you check health by looking at containers on each
controller (docker ps, HAProxy stats) and at the OpenStack APIs. Here there
is one more layer above the containers: each operator publishes what it
thinks of its service as conditions on a custom resource. Reading
conditions first saves most of the digging.
In short¶
- Health is read top-down through five levels: control plane resource, service resources, workloads, pods, then the OpenStack APIs.
- Stop at the first level that is not healthy and open the matching runbook.
- Healthy is one line:
openstack True Setup complete. - Conditions cover the control plane only. They do not prove that the compute nodes work or that an API answers: always finish with level 5.
- Everything on this page is read-only.
1. Initial symptoms¶
- You start a shift, or have just applied a change, and want to know whether the platform is healthy.
- A user reports "something is slow or failing" without detail.
2. Read-only investigation¶
Go top-down through five levels. Stop at the first level that is not healthy and switch to the matching runbook.
The order of the investigation; each level explains the one above it.
flowchart TD
L1["Level 1: OpenStackControlPlane openstack<br/>(one condition per service)"]
L2["Level 2: service resources<br/>(KeystoneAPI, Nova, Galera, ...)"]
L3["Level 3: workloads<br/>(Deployments, StatefulSets, Jobs)"]
L4["Level 4: pods and events"]
L5["Level 5: OpenStack APIs<br/>(endpoints, compute services, agents)"]
DP["Data plane<br/>(NodeSet and deployments)"]
L1 --> L2 --> L3 --> L4 --> L5 --> DP
Level 1: the control plane resource¶
[READ-ONLY]
oc get openstackcontrolplane openstack
oc get oscp openstack -o jsonpath='{range .status.conditions[*]}{.type}{"\t"}{.status}{"\t"}{.reason}{"\t"}{.message}{"\n"}{end}' | column -t -s $'\t'
Only the conditions that are not True:
[READ-ONLY]
oc get oscp openstack -o json | jq -r '.status.conditions[] | select(.status != "True") | "\(.type): \(.reason) - \(.message)"'
Level 2: the per-service custom resources¶
[READ-ONLY]
oc get keystoneapi,placementapi,glance,glanceapi,neutronapi,nova,novaapi,novascheduler,novaconductor,novametadata,novacell
oc get galera,memcached,dnsmasq,transporturl
oc get ovndbcluster,ovnnorthd
oc get rabbitmq,transporturl
Conditions of one service, for example Keystone:
[READ-ONLY]
oc get keystoneapi keystone -o jsonpath='{range .status.conditions[*]}{.type}{"\t"}{.status}{"\t"}{.message}{"\n"}{end}' | column -t -s $'\t'
Level 3: the workloads¶
[READ-ONLY]
oc get deployments,statefulsets
oc get jobs,cronjobs
Level 4: the pods¶
[READ-ONLY]
oc get pods -o wide
# Anything that is neither Running nor Completed:
oc get pods --field-selector=status.phase!=Running,status.phase!=Succeeded
# Restart counts, highest last:
oc get pods --sort-by='.status.containerStatuses[0].restartCount'
oc get events --sort-by=.lastTimestamp | tail -30
Level 5: OpenStack itself¶
[READ-ONLY]
oc rsh openstackclient openstack endpoint list
oc rsh openstackclient openstack compute service list
oc rsh openstackclient openstack network agent list
oc rsh openstackclient openstack hypervisor list
Data plane (when a compute node is deployed)¶
[READ-ONLY]
oc get openstackdataplanenodeset openstack-edpm
oc get openstackdataplanedeployment
Everything at once¶
The repository smoke test runs the same checks and prints PASS or FAIL:
[READ-ONLY]
tests/smoke-test.sh
3. Expected observations¶
-
Level 1: one line,
STATUSTrue,MESSAGESetup complete:NAME STATUS MESSAGE openstack True Setup completeEvery condition is
True. The lab shows 24 of them:Ready, then 23 conditions all prefixed withOpenStackControlPlane:Group Conditions (after the prefix) Services RabbitMQReady,MariaDBReady,MemcachedReady,KeystoneAPIReady,PlacementAPIReady,GlanceReady,OVNReady,NeutronReady,NovaReadyPlatform plumbing InfrastructureReady,DNSReadyCondition,CAReadyCondition,ClientReady,BackupConfigReady,InstanceHaCMReadyCondition,InstanceHaTLSReadyCondition,TestCMReadyCondition,OpenStackVersionInitializationReadyConditionOne per service with a Route ExposeKeystoneAPIReady,ExposePlacementAPIReady,ExposeGlanceReady,ExposeNeutronReady,ExposeNovaReadyDisabled services (Horizon, Cinder, Swift, ...) have no condition at all: absence is normal.
-
Level 2: every resource shows
STATUSTrueandMESSAGESetup complete. Two kinds print only anAGEcolumn (novaandnovacell): read their conditions with thejsonpathcommand instead.KeystoneAPIcarriesInputReady,ServiceConfigReady,DBReady,DBSyncReady,BootstrapReady,MariaDBAccountReady,MemcachedReady,RabbitMqTransportURLReady,DeploymentReady,CreateServiceReady,CronJobReady,NetworkAttachmentsReady,TLSInputReady, three conditions for its service account and role, andReadyas the summary. The set differs per service:PlacementAPI,NeutronAPI,NovaAPIandGlanceAPIaddKeystoneServiceReadyand/orKeystoneEndpointReady;Novaonly aggregates its children (NovaAPIReady,NovaSchedulerReady,NovaMetadataReady,NovaAllCellReady, ...). -
Level 3:
READYequals the desired count (1/1). The lab runs exactly these workloads:Kind Names Deployment keystone,placement,neutron,dnsmasq-dnsStatefulSet openstack-galera,openstack-cell1-galera,rabbitmq-server,rabbitmq-cell1-server,memcached,glance-default-single,nova-api,nova-scheduler,nova-metadata,nova-cell0-conductor,nova-cell1-conductor,nova-cell1-novncproxy,ovsdbserver-nb,ovsdbserver-sb,ovn-northdCronJob keystone-cron,glance-db-purge,nova-cell0-db-purge,nova-cell1-db-purgeThere is no DaemonSet: the OVN controller only runs on the compute node, as a podman container, and the lab control plane has no
OVNControllerresource. The db-sync and bootstrap Jobs are deleted once they have succeeded, sooc get jobslists only the hourlykeystone-cron-<n>Job and the data plane Jobs (<service>-edpm-deployment-openstack-edpm), allComplete. -
Level 4: every pod is
Runningwith all containers ready, orCompletedfor Job pods. The API pods (glance-default-single-0,neutron-...,placement-...,nova-api-0,nova-metadata-0) and the OVN pods are2/2; the others are1/1. The field-selector command printsNo resources found. Restart counts are0and stable between two looks. - Level 5:
- Ten endpoints, an
internaland apublicone for each of identity, placement, image, network and compute. Internal URLs have the formhttps://<service>-internal.openstack.svc:<port>, public oneshttps://<service>-public-openstack.apps.<cluster domain>. - Two
nova-conductor(hostsnova-cell0-conductor-0andnova-cell1-conductor-0) and onenova-schedulerareup. - With a data plane, one
nova-computeon hostedpm-compute-0.ctlplane.<cluster domain>isup, and the agentsOVN Controller Gateway agentandOVN Metadata agentare alive on the same host. - The hypervisor list shows one hypervisor of type
QEMUwith host IP 192.168.122.100. Its hostname is the name the virtual machine reported at registration, which is not necessarilyedpm-compute-0.
- Ten endpoints, an
- Data plane: the NodeSet is
Truewith messageNodeSet Ready; the deploymentedpm-deploymentisTruewith messageSetup complete. - The smoke test ends with
0 check(s) failed(15PASS, 1SKIPfor the functional test, which only runs with--functional).
4. Root cause¶
Why conditions are trustworthy as a first look: each operator runs a control
loop that compares the resource you declared with what exists, acts on the
difference, and then writes the result of each step into
status.conditions. A condition is therefore the operator's own account of
where it stopped. Ready is True only when all the others are.
The OpenStackControlPlane conditions are a mirror: ...KeystoneAPIReady
copies the Ready condition of KeystoneAPI/keystone. That is why you
always go one level down to get the actual reason.
A condition has three possible status values, not two; False splits
again by reason:
status |
reason |
Meaning |
|---|---|---|
True |
Ready |
Step done |
False |
Requested |
In progress or waiting for something. Normal for minutes during a rollout, a problem if it lasts |
False |
Error |
The step failed; the message carries the error |
Unknown |
Init |
The operator has not reached that step yet: look at an earlier condition |
5. Resolution¶
Nothing to resolve when all levels are healthy. Otherwise pick the runbook by the first unhealthy level:
| First unhealthy level | Go to |
|---|---|
1 or 2: a condition is False and stays so |
Reconciliation not progressing |
| 3 or 4: a pod is Pending, crash-looping or cannot pull its image | Pod Pending or CrashLoopBackOff |
| 4: Galera or RabbitMQ pod not ready | Galera and RabbitMQ |
| 5: API errors while pods look fine | Network, DNS and routing |
| Data plane | Data plane |
oc itself fails |
Node and OKD |
6. Verification¶
Re-run level 1. Healthy means one line with True:
[READ-ONLY]
oc get openstackcontrolplane openstack
7. Risks and precautions¶
- Everything here is read-only.
- A
Truecontrol plane does not prove instances can boot: conditions cover the control plane, not the compute nodes. Check level 5 and the data plane. - Right after a change, conditions go
Falsewith reasonRequestedfor a while. Judge by duration and by the message, not by the first glance. - The top-level message names the first service that is not ready, which is not always the one you touched: while the RabbitMQ pod restarts, the control plane reports a Nova message for about a minute.
- A service declared with
replicas: 0still reportsTrue: conditions say "what was asked is done", not "the API answers". oc rsh openstackclientruns as OpenStack admin. Read-only commands are safe; anything else changes the cloud.
Up: Operations guide · Next: Logs