Prepare Your Existing NetQ Appliances for a NetQ 3.3 Deployment
This topic describes how to prepare a NetQ 3.2.x or earlier NetQ Appliance before installing NetQ 3.3. The steps are the same for both the on-premises and cloud appliances. The only difference is the software you download for each platform. On completion of the steps included here, you will be ready to perform a fresh installation of NetQ 3.3.
The preparation workflow is summarized in this figure:
To prepare your appliance:
-
Verify that your appliance is a supported hardware model.
- NetQ On-premises Appliance: SuperMicro SYS-6019P-WTR (user manual, quick reference guide)
- NetQ Cloud Appliance: SuperMicro SYS-E300-9D (user manual)
-
For on-premises solutions using the NetQ On-premises Appliance, optionally back up your NetQ data.
-
Run the backup script to create a backup file in
/opt/<backup-directory>
.Be sure to replace the
backup-directory
option with the name of the directory you want to use for the backup file. This location must be somewhere that is off of the appliance to avoid it being overwritten during these preparation steps.cumulus@<hostname>:~$ ./backuprestore.sh --backup --localdir /opt/<backup-directory>
-
Verify the backup file has been created.
cumulus@<hostname>:~$ cd /opt/<backup-directory> cumulus@<hostname>:~/opt/<backup-directory># ls netq_master_snapshot_2021-01-13_07_24_50_UTC.tar.gz
-
-
Install Ubuntu 18.04 LTS
Follow the instructions here to install Ubuntu.
Note these tips when installing:
-
Ignore the instructions for MAAS.
-
Ubuntu OS should be installed on the SSD disk. Select Micron SSD with ~900 GB at step#9 in the aforementioned instructions.
-
Set the default username to cumulus and password to CumulusLinux!.
-
When prompted, select Install SSH server.
-
-
Configure networking.
Ubuntu uses Netplan for network configuration. You can give your appliance an IP address using DHCP or a static address.
-
Create and/or edit the /etc/netplan/01-ethernet.yaml Netplan configuration file.
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eno1: dhcp4: yes
-
Apply the settings.
$ sudo netplan apply
-
Create and/or edit the /etc/netplan/01-ethernet.yaml Netplan configuration file.
In this example the interface, eno1, is given a static IP address of 192.168.1.222 with a gateway at 192.168.1.1 and DNS server at 8.8.8.8 and 8.8.4.4.
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eno1: dhcp4: no addresses: [192.168.1.222/24] gateway4: 192.168.1.1 nameservers: addresses: [8.8.8.8,8.8.4.4]
-
Apply the settings.
$ sudo netplan apply
-
-
Update the Ubuntu repository.
-
Reference and update the local apt repository.
root@ubuntu:~# wget -O- https://apps3.cumulusnetworks.com/setup/cumulus-apps-deb.pubkey | apt-key add -
-
Add the Ubuntu 18.04 repository.
Create the file
/etc/apt/sources.list.d/cumulus-host-ubuntu-bionic.list
and add the following line:root@ubuntu:~# vi /etc/apt/sources.list.d/cumulus-apps-deb-bionic.list ... deb [arch=amd64] https://apps3.cumulusnetworks.com/repos/deb bionic netq-latest ...
The use of
netq-latest
in this example means that aget
to the repository always retrieves the latest version of NetQ, even in the case where a major version update has been made. If you want to keep the repository on a specific version - such asnetq-3.1
- use that instead.
-
-
Install Python.
Run the following commands:
root@ubuntu:~# apt-get update root@ubuntu:~# apt-get install python python2.7 python-apt python3-lib2to3 python3-distutils
-
Obtain the latest NetQ Agent and CLI package.
Run the following commands:
root@ubuntu:~# apt-get update root@ubuntu:~# apt-get install netq-agent netq-apps
-
Download the bootstrap and NetQ installation tarballs.
-
On the My Mellanox support page, log in to your account. If needed create a new account and then log in.
Your username is based on your Email address. For example, user1@domain.com.mlnx.
-
Open the Downloads menu.
-
Click Software.
-
Open the Cumulus Software option.
-
Click All downloads next to Cumulus NetQ.
-
Select 3.3.1 from the NetQ Version dropdown.
-
Select KVM from the Hypervisor dropdown.
-
Click Show Download.
-
Verify this is the correct image, then click Download.
-
Copy these two files, netq-bootstrap-3.3.1.tgz and either NetQ-3.3.1.tgz (on-premises) or NetQ-3.3.1-opta.tgz (cloud), to the /mnt/installables/ directory on the appliance.
-
Verify that the needed files are present and of the correct release. This example shows on-premises files. The only difference for cloud files is that it should list NetQ-3.3.1-opta.tgz instead of NetQ-3.3.1.tgz.
cumulus@<hostname>:~$ dpkg -l | grep netq ii netq-agent 3.3.1-ub18.04u33~1614767175.886b337_amd64 Cumulus NetQ Telemetry Agent for Ubuntu ii netq-apps 3.3.1-ub18.04u33~1614767175.886b337_amd64 Cumulus NetQ Fabric Validation Application for Ubuntu cumulus@<hostname>:~$ cd /mnt/installables/ cumulus@<hostname>:/mnt/installables$ ls NetQ-3.3.1.tgz netq-bootstrap-3.3.1.tgz
-
Run the following commands.
sudo systemctl disable apt-{daily,daily-upgrade}.{service,timer} sudo systemctl stop apt-{daily,daily-upgrade}.{service,timer} sudo systemctl disable motd-news.{service,timer} sudo systemctl stop motd-news.{service,timer}
-
-
Run the Bootstrap CLI.
Run the bootstrap CLI on your appliance. Be sure to replace the eth0 interface used in this example with the interface or IP address on the appliance used to listen for NetQ Agents.
If you are creating a server cluster, you need to prepare each of those appliances as well. Repeat these steps if you are using a previously deployed appliance or refer to Install the NetQ System for a new appliance.
You are now ready to install the NetQ Software. Refer to Install NetQ Using the Admin UI (recommended) or Install NetQ Using the CLI.