Desired state and current state
Readcurrent_state to see where the instance is. desired_state records
what you asked for: running, stopped or deleted. While a request is
being applied, the two can differ: a stop sets desired_state=stopped and
current_state=stopping until the guest powers off.
current_state also reports conditions observed on the guest:
crashed: the guest crashed. If it is still desired to run, automatic recovery attempts a restart, at most once every 60 seconds. The crash is reported before recovery, so this state may be brief.paused: guest execution is paused.suspended: the guest entered power-management suspension.
running.
What each failure is telling you
current_state is error right after create
current_state is error right after create
Read
faults. Each entry carries a code, a severity, a message and
details from the step that failed. More than one code can be active at
once. See Resource faults for the array itself.POST /v1/instances/{instance_id}/start accepts an instance in error, so
a failure that happened while the guest was coming up can be retried
without recreating anything. A start retry resolves START_FAILED and
LEGACY_FAILURE_STATE only. It does not clear provisioning-owned codes.It does not rebuild what was never built. A failure earlier than that — the
boot volume or the interfaces — leaves nothing for a start to bring up, and
the instance is best deleted and created again once the cause is fixed. The
usual causes are in the request: a subnet that does not route to an
internet gateway while a NIC asked for a public address, a user_data
document that is not valid YAML, or a boot size below the image’s floor.The instance says running but nothing answers
The instance says running but nothing answers
Check
current_state. A running guest can still have a network or
guest-configuration problem; running does not mean SSH is ready.Read the console output next — it works on a guest that
never reached the network, which is precisely the case SSH cannot
diagnose.My cloud-init never ran
My cloud-init never ran
Two causes, both silent.Your
user_data has to decode to a document starting with
#cloud-config. A shell script is not merged and is not executed — put
the commands in runcmd.Top-level cloud-init values replace base values. Check your document and
the guest’s cloud-init logs when a custom command fails.I cannot SSH in
I cannot SSH in
For IAM SSH, use the Linux username from your profile or
service account. Check its public key, the current account role and login
permission, and that IAM SSH is enabled in the guest.Check that the
NIC’s security group admits your source on port 22. Confirm the address
from
GET /v1/instances/{instance_id}/interfaces: inspect each NIC’s addresses
and the nested floating_ips. The instance object has no IP summary fields.Start reports insufficient capacity
Start reports insufficient capacity
A capacity response with
503 means the existing host is unavailable or
cannot admit the full configured CPU and RAM. A stopped instance does not
hold that capacity, even after a successful resize.Retry later, choose a smaller flavor while stopped, or launch a new instance
where capacity is available and move your workload. Starting and resizing
an existing instance do not move it to another host.A 409 on start, stop or reboot
A 409 on start, stop or reboot
Start accepts
stopped or error; stop accepts running, crashed,
paused or suspended; reboot needs running. Resize and reinstall need
a fully stopped instance. Other transitions such as pending, building,
stopping, rebooting and deleting must settle first.You can also cancel an admitted start when current_state is stopped and
desired_state is running, or stop after a START_FAILED or STOP_FAILED
fault. Poll both state fields before retrying another operation.An operation on an instance answers 404 but I can see it
An operation on an instance answers 404 but I can see it
Check
managed_by. An instance owned by a load balancer or a database
cluster is read-only through this API, and every mutation answers 404
rather than 403 — the customer surface does not admit it is actionable.A 403 is the other case, and a different one: the instance is yours and
the IAM check on that specific action failed. Actions are per-operation, so
a principal may read an instance and still not be allowed to stop it.Crash dumps on small CentOS Stream 10 instances
Crash dumps on small CentOS Stream 10 instances
Kernel crash dumps need memory reserved at boot. The default CentOS Stream
10 configuration reserves none on a 1 GiB A zero reservation means no crash dump can be captured. With reserved
memory, check that the service reports
s1.micro, so crash dumps are
unavailable at that size. This does not prevent ordinary instance use or
SSH access.If you need crash dumps, choose a flavor with at least 4 GiB of RAM. After
resizing an existing instance, stop and start it to apply the new memory
size. Connect through SSH and check:ActiveState=active and
Result=success. Reserved memory is unavailable to your applications;
configure sufficient dump storage for your workload too.Quotas
An instance holds three regional counters at once, all reserved together at create and released at delete:instances, vcpus and ram_mb. That is why
a small instances limit is not the whole story — a handful of large flavors
can exhaust vcpus first.
volumes_per_instance caps the boot disk plus every data volume on one
instance, and is checked before the instance row exists, so exceeding it is a
plain 4xx rather than an instance that provisions partway and parks in
error. Floating IPs come out of the network service’s floating_ips.
Floating IPs come out of the network service’s floating_ips allowance, which
NAT gateways draw on too.
Next
Console access
The three ways in, including the one that works with no network.
Permissions
When the refusal is a
403 rather than a state error.
