.. _neteye-upgrade-single:

Single Node Upgrade from 4.22 to 4.23
=====================================

This guide will lead you through the steps specific for upgrading from
a **NetEye Single Node** installation from version **4.22** to
**4.23**. You **must** have successfully completed the
:ref:`update-procedure` before attempting to start the upgrade
procedure.

.. warning:: Remember that you must upgrade sequentially without
   skipping versions, therefore an upgrade to **4.23** is possible only
   from **4.22**; for example, if you have version **4.14**, you
   must first upgrade to the **4.15**, then **4.16**, and so on.

Before starting an upgrade, you should very carefully read the latest
release notes on `NetEye's blog
<https://www.neteye-blog.com/category/neteye/release-notes-2/>`_ and
check the feature changes and deprecations specific to the version
being upgraded.  You should check also the whole section
:ref:`single-breaking` below.

The remainder of this section is organised as follows. Section
:ref:`single-breaking` introduces substantial changes that users must
be aware of before starting the upgrade procedure and may require to
carry out some tasks **before** starting the upgrade; section
:ref:`single-upgrade` presents the actual procedure, and finally
section :ref:`upgrade-additional-steps-single` shows which tasks must
be executed after the upgrade procedure has been successfully
executed.

.. _single-breaking:

Breaking Changes
----------------

.. include:: /includes/4.23_breaking_changes.rst

.. _single-upgrade:

NetEye Single Node Upgrade Procedure
------------------------------------

Prerequisites
~~~~~~~~~~~~~

.. include:: /includes/4.23_os_requirements.rst

Step 1: Conversion from CentOS 7 to RHEL 7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To perform the conversion to RHEL 7, run from the command line the command::

  # (nohup neteye node system-upgrade --org <organization_id> --key <activation_key> --name <name> &) && tail --retry -f nohup.out

This command takes care of checking the system status and performs
the conversion to **RHEL 7**.
We recall that the *organization ID* and the *activation key* can be obtained upon
request to our service desk.

In case of any errors, the command will show the reason of the
failure. After fixing the problem, please repeat Step 1 from the
beginning.

At the end of the conversion a success message is shown and you
will be prompted to restart the system.
To reboot the system run the following command::

  # reboot

Step 2: Upgrade from RHEL 7 to RHEL 8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

After the previous reboot, it is time to upgrade from **RHEL 7** to **RHEL 8** by running
command::

  # (nohup neteye node system-upgrade --org <organization_id> --key <activation_key> --name <name> &) && tail --retry -f nohup.out

During the upgrade the following kernel modules will be removed because they are not compatible
with RHEL 8:

* *pata_acpi*: pata_acpi is used for device configuration and power management of P-ATA storage devices
* *pam_pkcs11*: this Linux-PAM login module allows a X.509 certificate based user login

The command will perform a pre-upgrade in order to check the status of the system;
any of the following conditions may prompt a manual intervention:

* Since a newer kernel version is installed but currently not running, it is necessary
  to reboot the system, then execute the :command:`neteye node system-upgrade` command again
* Some packages not provided by NetEye have been installed and are not compatible with RHEL 8:
  packages that are not compatible with RHEL 8 must be removed or can be updated by
  saving a RHEL 8 compatible update package in the folder :file:`/var/www/html/rhel8-rpms-migration`.
  Alternatively, additional repositories to be used only during the upgrade can be added to file
  :file:`/etc/leapp/files/leapp_upgrade_repositories.repo`.
* Other system-specific cases: in this case a detailed report of the causes will be generated in
  :file:`/var/log/leapp/leapp-report.txt`

In case of any errors, the command will show the reason of the
failure. After fixing the problem, please repeat Step 2 from the
beginning.

At the end of the upgrade a success message is shown and you
will be informed to restart the system.
During the reboot further tasks will be performed in order to complete the upgrade to RHEL 8.

.. warning:: The whole reboot procedure will take at least **35-40 minutes**.

To reboot the system run the following command::

  # reboot

Step 3: Upgrade finalization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To complete the procedure and finalize the NetEye upgrade,
run from the command line the command::

  # (nohup neteye node system-upgrade --org <organization_id> --key <activation_key> --name <name> &) && tail --retry -f nohup.out

All the tasks carried out by the command are listed in section
:ref:`neteye-upgrade`; a :ref:`dedicated section
<update-ts>` provides directions in case the command
fails.


.. _upgrade-additional-steps-single:

Additional Tasks
~~~~~~~~~~~~~~~~

This section lists the tasks that must be carried out manually,
because they are not part of the :command:`neteye node system-upgrade` command.

In this release, no additional task is required.
