openstack Verified current stable Not installed? Networking

Openstack / Stop Servers

Stop Servers

Stop specified servers in OpenStack.

$
Terminal
openstack server stop <instance_id1 instance_id2 ...>

When To Use

For maintenance downtimes or when freeing up resources temporarily.

Pro Tip

Consider using `--force` to immediately stop unresponsive instances, though it carries risk.

Anatomy of Output

Understanding the result

Stopping servers: 1 Action Summary

Indicates the number of servers targeted for stopping.

+--------------------------------------+---------+----------+ Output Header

Shows server details including ID and status.

| ID | Name | Status | Column Details

Displays relevant attributes for each server.

| 678901ab-abcd-ef00-6666-77889900ccee | test-server | SHUTOFF | Server Entry

Output indicating successful shutdown of the server.

Power User Variants

Optimized versions

openstack server stop --all

Stop all active servers in the current project.

Troubleshooting

Common pitfalls

Server not found (HTTP 404)

Solution: Verify that the server ID or name entered is correct.

Conflict (HTTP 409)

Solution: Server may already be in the SHUTOFF state.

Unauthorized (HTTP 401)

Solution: Confirm that you have the appropriate permissions to stop the server.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.
<instance_id1 instance_id2 ...>
instance id1 instance id2 ...
The value supplied for instance id1 instance id2 ....

Alternative Approaches

Comparable commands in other tools

Alternative networking tools for the same job.