openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / Reboot Server Soft Or Hard

Reboot Server Soft Or Hard

Reboots a specified server instance with either soft or hard options.

$
Terminal
openstack server reboot --soft --wait <instance_id>

When To Use

After deployment changes requiring a refresh of the instance environment.

Pro Tip

Using `--soft` performs a graceful reboot; `--hard` risks data corruption if unsaved changes exist.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
openstack server reboot --soft --wait <instance_id>

Anatomy of Output

Understanding the result

Reboot request acknowledged for instance 1234-5678-90ab-cdef Request Status

Confirms that the reboot has been accepted.

Instance 1234-5678-90ab-cdef booting up... Reboot Progress

This shows the boot process of the instance.

Instance 1234-5678-90ab-cdef is now active and reachable. Active Status

Indicates the instance is back online.

Troubleshooting

Common pitfalls

Error: Instance not found: 1234-5678-90ab-cdef.

Solution: Verify the instance ID and try again.

Error: Unable to reboot instance: operation not allowed.

Solution: Check if the instance is in a state that allows reboots.

Error: Waiting for instance to reboot failed: timeout.

Solution: Increase timeout value or check instance health.

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.
--soft
soft| hard
The value supplied for soft| hard.
<instance_id>
instance id
The value supplied for instance id.
--soft
Command Option
Tool-specific option used by this command invocation.
--wait
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.