For some code blocks, we have a superfluous 2-space indentation. For this reason, the generated docs are quite inconsistent. This change fixes this issue. Change-Id: Ib37906f61875c17d32635f3b11937f429a7027fc
84 lines
2.2 KiB
ReStructuredText
84 lines
2.2 KiB
ReStructuredText
.. _troubleshooting:
|
|
|
|
=====================
|
|
Troubleshooting guide
|
|
=====================
|
|
|
|
This section contains a few tips and tricks which can help you troubleshoot
|
|
and solve your Hyper-V compute node's potential issues.
|
|
|
|
|
|
OpenStack Services not running
|
|
------------------------------
|
|
|
|
You can check if the OpenStack services are up by running:
|
|
|
|
.. code-block:: powershell
|
|
|
|
Get-Service nova-compute
|
|
Get-Service neutron-*
|
|
|
|
All the listed services must have the ``Running`` status. If not, check their
|
|
logs, which can typically be found in ``C:\OpenStack\Log\``. If there are no
|
|
logs, try to run the services manually. To see how to run ``nova-compute``
|
|
manually, run the following command:
|
|
|
|
.. code-block:: powershell
|
|
|
|
sc.exe qc nova-compute
|
|
|
|
The output will contain the ``BINARY_PATH_NAME`` with the service's command.
|
|
The command will contain the path to the ``nova-compute.exe`` executable and
|
|
its configuration file path. Edit the configuration file and add the
|
|
following:
|
|
|
|
.. code-block:: ini
|
|
|
|
[DEFAULT]
|
|
debug = True
|
|
use_stderr = True
|
|
|
|
This will help troubleshoot the service's issues. Next, run ``nova-compute``
|
|
in PowerShell manually:
|
|
|
|
.. code-block:: powershell
|
|
|
|
&"C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\Scripts\nova-compute.exe" `
|
|
--config-file "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\nova.conf"
|
|
|
|
The reason why the service could not be started should be visible in the
|
|
output.
|
|
|
|
|
|
Live migration
|
|
--------------
|
|
|
|
`This guide`__ offers a few tips for troubleshooting live migration issues.
|
|
|
|
If live migration fails because the nodes have incompatible hardware, refer to
|
|
refer to :ref:`config_index`.
|
|
|
|
__ https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/Use-live-migration-without-Failover-Clustering-to-move-a-virtual-machine
|
|
|
|
|
|
How to restart a service on Hyper-V
|
|
-----------------------------------
|
|
|
|
Restarting a service on OpenStack can easily be done through Powershell:
|
|
|
|
.. code-block:: powershell
|
|
|
|
Restart-Service service-name
|
|
|
|
or through cmd:
|
|
|
|
.. code-block:: bat
|
|
|
|
net stop service_name && net start service_name
|
|
|
|
For example, the following command will restart the iSCSI initiator service:
|
|
|
|
.. code-block:: powershell
|
|
|
|
Restart-Service msiscsi
|