.. _update-ts:

Troubleshooting
===============

The Update and Upgrade procedures can stop for disparate reasons. This
section collects the most frequents cases and provide some guidelines
to resolve the issue and continue the procedures.

If you find a problem that is not covered in this page, please refer
to the official channels: sales, consultant or `support portal
<https://siwuerthphoenix.atlassian.net/servicedesk/customer/portals>`_
for help and directions on how to proceed.

Some check fails
----------------

In this case, an informative message will point out the check that
failed, allowing to inspect and fix the problem.

For example, if the exit message is similar to the following
one, you need to manually install the latest updates.

.. container:: codeblock

   .. code:: bash

      "Found updates not installed"
      "Example: icingacli, version 2.8.2_neteye1.82.1"

Then, after the updates are installed, you can run it again and the
command will start over the tasks.

.. _update-rpm-migration:

An :file:`.rpmnew` and/or :file:`.rpmsave` file is found
--------------------------------------------------------

This can happen in presence of a customisation in some of the
installed packages. Check section :ref:`rpm-migration` for directions
on how to proceed. Once done, remember to run :command:`neteye update`
again.

.. this does not apply to 4.22 --> 4-23 upgrade, uncomment it for 4.23
   --> 4.24

   The elected NetEye Master node is in standby mode
   -------------------------------------------------

   During a NetEye Cluster update or upgrade, exactly **one node must act**
   as a Master. Read more in section :ref:`ne-elected-master`.

A cluster resource has not been created
---------------------------------------

During a NetEye Cluster upgrade, it can happen that there is the need
of creating new cluster resources before running the `neteye_secure_install`
script. Creation of a resource must be done manually, and directions can
be found in section :ref:`upgrade-additional-steps-cluster` of the :doc:`Cluster-Upgrade`.

An health check is failing
--------------------------

..  include:: /includes/failing-health-checks.rst

.. _check-cluster-status:

How to check the NetEye Cluster status
--------------------------------------

.. include:: /includes/check-cluster-status.rst

How to check DRBD status
------------------------

.. include:: /includes/check-drbd-status.rst

.. _incompatible-kernel-modules-rhel-8:

Incompatible RHEL 8 kernel modules
----------------------------------

Some kernel modules are incompatible or unsupported on RHEL 8. For the LSI Logic SAS driver (**mptsas**)
and LSI Logic Parallel driver (**mptspi**) kernel modules,
please refer to the following procedure. In all other cases, please refer
to the official channels: sales, consultant
or `support portal <https://siwuerthphoenix.atlassian.net/servicedesk/customer/portals>`_ for directions on how to proceed.

If your VMware managed Virtual Machine uses either **mptsas** or **mptspi**, you will be
asked to migrate to the supported **VMware Paravirtual**
SCSI controller before proceeding with the OS upgrade. Otherwise, if such
drivers are detected on a physical machine or the VM is managed by a different hypervisor,
please refer to the official channels previously reported.

To perform this change, please follow this procedure:

#. Connect to the terminal of the VM that uses the unsupported driver
#. Execute the command:

   .. code:: bash

      # dracut -N -f

#. Shut down the VM
#. Edit the settings of the VM from the vCenter in the following way:

   #. Click **SCSI controller 0**
   #. Change the controller type to **VMware Paravirtual**
   #. Click **OK** to save the changes

#. Power on the VM
#. Once the VM finished booting, connect to the VM and execute the command:

   .. code:: bash

      # dracut -f --regenerate-all

Once this procedure is finished the VM will not use the unsupported SCSI drivers
anymore and you can proceed with the upgrade.

