Skip to content

Commit

Permalink
Add Subscription page (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
  • Loading branch information
DavidePrincipi and gsanchietti authored Jan 24, 2024
1 parent a729c70 commit 1b66290
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ NethServer 8 administrator manual

* Help on `Community <http://community.nethserver.org>`_

* :ref:`Subscription plans <subscription-section>`

.. toctree::
:maxdepth: 1
:caption: About

introduction
release_notes
modules
subscription

.. toctree::
:maxdepth: 2
Expand Down
3 changes: 2 additions & 1 deletion introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Get support
===========

You want to know more or look for some help?
Check out our great `community <https://community.nethserver.org>`_!
Check out our great `community <https://community.nethserver.org>`_,
or :ref:`subscription plans<subscription-section>`!

If you are looking for more technical details, take a look to the `developer manual <https://nethserver.github.io/ns8-core/>`_.

Expand Down
112 changes: 112 additions & 0 deletions subscription.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.. _subscription-section:

============
Subscription
============

.. highlight:: bash

.. note::

Available only on Rocky Linux based systems

A NethServer 8 cluster can be registered to a web portal to enable
additional services.

When a cluster has an active subscription, the following services are
enabled:

- Remote support by Nethesis
- Resources monitoring and alerting
- Upload of leader node inventory
- Automatic updates of core and applications
- Upload of cluster backup (Enterprise only)


Register the cluster
====================

Depending on your subscription type, log in to `my.nethserver.com
<https://my.nethserver.com>`_ or `my.nethesis.it
<https://my.nethesis.it>`_ and obtain a unique subscription token for the
cluster. Follow the portal-documented procedures to obtain it.

.. warning::

The subscription token is a secret: never communicate or share it with
someone else

Once you have copied the token to the clipboard, go to the ``Settings``
page and click the ``Subscription`` card. Paste the token in the
``Authentication token`` field, then click the :guilabel:`Register`
button.

If the procedure is successful the Subscription page displays the ``System
ID``, ``Plan`` type and ``Expiration`` date.


Remove the subscription
=======================

Go to the ``Settings`` page and click the ``Subscription`` card.
Alternatively, go to the cluster dashboard page and click the ``Go to
Subscription`` link.

In the ``Subscription`` page, click the :guilabel:`Remove subscription`
button. The action must be confirmed.

Remote support
==============

.. note::

Available in Nethesis Enterprise only

Depending on the subscription type and plan, the ``Subscription`` page can
allow starting and controlling a remote support session:

- Click :guilabel:`Start session` to activate a special access for the
Nethesis support team. Both SSH and cluster-admin administrative access
are granted to the support team. Support connections are routed in a
private VPN tunnel.

When the access is granted, a unique ``Session ID`` secret is displayed:
copy and paste it in your support request.

- To end the support session, close the VPN tunnel and revoke any granted
access, click :guilabel:`End session`.

The support session is valid only to reach the leader node. The support
team can access worker nodes by starting individual support sessions in
the worker nodes. For example, if node 2 is a worker node, this is a
command to start a support session for it: ::

api-cli run node/2/start-support-session

The Session ID is printed to the standard output. To stop the session: ::

api-cli run node/2/stop-support-session

Check the support session status for any node with: ::

api-cli run node/2/get-support-session

If a worker node (e.g., node 2) becomes unreachable from the leader node,
you can manually start a support session for it with the following
procedure:

1. Log in on the worker node, using the console or SSH access.

2. Run the following command to start the support session: ::

systemctl start support

3. Obtain the session ID with: ::

systemctl status support

The Session ID is always recorded in the system journal and node log.

4. To end the support session: ::

systemctl stop support

0 comments on commit 1b66290

Please sign in to comment.