Migrate "reboot an instance" user guide docs

This imports the cli-reboot-an-instance end user guide docs from
the openstack-manuals repo [1]. As part of the docs migration
in Pike, these were forgotten. The copied contents come from
the stable/ocata branch of openstack-manuals [2].

There are two minor content changes from the original:

1. The "shutdown_timeout" config option is linked to the docs.

2. The "nova rescue" command usage is replaced with
   "openstack server rescue".

[1] https://docs.openstack.org/ocata/user-guide/cli-reboot-an-instance.html
[2] https://github.com/openstack/openstack-manuals/blob/stable/ocata/doc/user-guide/source/cli-reboot-an-instance.rst

Change-Id: I6701e43fd80fb17df5cc703df766390ab838289a
Partial-Bug: #1714017
This commit is contained in:
Matt Riedemann 2018-10-23 11:25:36 -04:00 committed by Stephen Finucane
parent 297de7fb9f
commit 9de70aed23
2 changed files with 74 additions and 0 deletions

View File

@ -13,6 +13,7 @@ End user guide
metadata-service
certificate-validation
resize
reboot
.. todo:: The rest of this document should probably move to the admin guide.

View File

@ -0,0 +1,73 @@
==================
Reboot an instance
==================
You can soft or hard reboot a running instance. A soft reboot attempts a
graceful shut down and restart of the instance. A hard reboot power
cycles the instance.
To reboot a server, use the :command:`openstack server reboot` command:
.. code-block:: console
$ openstack server reboot SERVER
By default, when you reboot an instance it is a soft reboot.
To perform a hard reboot, pass the ``--hard`` parameter as follows:
.. code-block:: console
$ openstack server reboot --hard SERVER
It is also possible to reboot a running instance into rescue mode. For example,
this operation may be required if a filesystem of an instance becomes
corrupted with prolonged use.
.. note::
Pause, suspend, and stop operations are not allowed when an instance
is running in rescue mode, as triggering these actions causes the
loss of the original instance state and makes it impossible to
unrescue the instance.
Rescue mode provides a mechanism for access, even if an image renders
the instance inaccessible. By default, it starts an instance from the
initial image attaching the current boot disk as a secondary one.
To perform an instance reboot into rescue mode, use the :command:`openstack
server rescue` command:
.. code-block:: console
$ openstack server rescue SERVER
.. note::
On running the :command:`openstack server rescue` command,
an instance performs a soft shutdown first. This means that
the guest operating system has a chance to perform
a controlled shutdown before the instance is powered off.
The shutdown behavior is configured by the
:oslo.config:option:`shutdown_timeout` parameter that can be set in the
``nova.conf`` file.
Its value stands for the overall period (in seconds)
a guest operating system is allowed to complete the shutdown.
The timeout value can be overridden on a per image basis
by means of ``os_shutdown_timeout`` that is an image metadata
setting allowing different types of operating systems to specify
how much time they need to shut down cleanly.
To restart the instance from the normal boot disk, run the following
command:
.. code-block:: console
$ openstack server unrescue SERVER
If you want to rescue an instance with a specific image, rather than the
default one, use the ``--image`` parameter:
.. code-block:: console
$ openstack server rescue --image IMAGE_ID SERVER