Juniper Upgrading Control Center from Version 2.34 User Manual

Upgrading Control Center from Version
Published
2021-03-09
2.34
RELEASE
3.0.0

Table of Contents

Scenario A: Upgrade of Ubuntu 16.04 to Ubuntu 18.04
Scenario B: Fresh Ubuntu 18.04 Installaon
Troubleshoong
ii
Introducon
This document concerns upgrading of Paragon Acve Assurance Control Center from version 2.34 to a later version.
The upgrade entails special procedures as it involves upgrading the Ubuntu OS from 16.04 to 18.04. The document covers two scenarios:
• Upgrade of Ubuntu 16.04 (with Control Center installed) to Ubuntu 18.04.
• Fresh installaon of Ubuntu 18.04 followed by installaon of Control Center and transfer of backup data from an old Control Center instance to the new instance.
For other upgrades, please refer to the Upgrade Guide.
1
Scenario A: Upgrade of Ubuntu 16.04 to Ubuntu
18.04
• Begin by disabling the apache2 and netrounds-callexecuter services:
sudo systemctl disable apache2 netrounds-callexecuter
• Stop all Paragon Acve Assurance services:
sudo systemctl stop "netrounds-*" apache2 openvpn@netrounds
• Take backups of Paragon Acve Assurance product data.
NOTE: This is the backup procedure described in the Lifecycle Management Guide, chapter
Backing Up Product Data, only more briey worded.
Run these commands:
# Back up the PostgreSQL database
pg_dump --help
pg_dump -h localhost -U netrounds netrounds > ncc_postgres.sql
# (Alternatively, to save in binary format:)
# pg_dump -h localhost -U netrounds -Fc netrounds > ncc_postgres.binary
# Back up OpenVPN keys
sudo tar -czf ncc_openvpn.tar.gz /var/lib/netrounds/openvpn
# Note: Be sure to store these in a safe place.
# Back up RRD files (metrics data)
# Check the file size before compressing the RRDs. Use of the tar command is
not
# recommended if the RRDs are larger than 50 GB; see note below.
du -hs /var/lib/netrounds/rrd
sudo tar -czf ncc_rrd.tar.gz /var/lib/netrounds/rrd
2
NOTE: The pg_dump command will ask for a password which can be found in /etc/ netrounds/netrounds.conf under "postgres database". The default password is "netrounds".
NOTE: For a large-scale setup (> 50 GB), making a tarball of the RRD les might take too long,
and taking a snapshot of the volume can be a beer idea. Possible soluons for doing this include: using a le system that supports snapshots, or taking a snapshot of the virtual volume if the server is running in a virtual environment.
• Check the integrity of the database using the supplied script netrounds_2.35_validate_db.sh.
WARNING: If this script outputs warnings, do not aempt the database migraon procedure described "below" on page 4. Contact Juniper support by ling a cket at
hps://support.juniper.net/support/requesng-support (supplying the output from the
script) to have the problems with the database resolved before you proceed with the upgrade.
• Take backups of the Control Center conguraon les:
/etc/apache2/sites-available/netrounds-ssl.conf
/etc/apache2/sites-available/netrounds.conf
/etc/netrounds/netrounds.conf
/etc/netrounds/probe-connect.conf
/etc/netrounds/restol.conf
/etc/netrounds/secret_key
/etc/netrounds/test-agent-gateway.yaml
/etc/openvpn/netrounds.conf
For example:
sudo cp /etc/apache2/sites-available/netrounds-ssl.conf /etc/apache2/sites-
available/netrounds-ssl.conf.old
• Upgrade Ubuntu to version 18.04. A typical upgrade procedure is as follows (adapted from hps://
wiki.ubuntu.com/BionicBeaver/ReleaseNotes):
3
• To upgrade on a server system:
• Install update-manager-core if it is not already installed.
• Make sure the Prompt line in /etc/update-manager/release-upgrades is set to 'lts' (to ensure that the OS is upgraded to the 18.04, the next LTS version aer 16.04).
• Launch the upgrade tool with the command sudo do-release-upgrade.
• Follow the on-screen instrucons. As far as Paragon Acve Assurance is concerned, you can keep the defaults throughout. (It may of course happen that you need to make dierent choices for reasons unrelated to Paragon Acve Assurance.)
• Once Ubuntu has been upgraded, reboot the system. Then perform the following steps:
• Upgrade PostgreSQL.
• Update PostgreSQL database les from version 9.5 to version 10:
sudo pg_dropcluster 10 main --stop # Shut down server and completely
delete cluster# "main" version 10 (this prepares for the upgrade# in the
next command)
sudo pg_upgradecluster 9.5 main # Upgrade cluster "main" version 9.5
to latest# available version (10)
sudo pg_dropcluster 9.5 main # Completely delete cluster "main"
version 9.5
• Remove the outdated version of PostgreSQL:
sudo apt purge postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5
• Update Paragon Acve Assurance packages.
• Compute the checksum for the tarball containing the new Control Center version and verify that it is equal to the SHA256 checksum provided on the download page:
sha256sum paa-control-center_${CC_VERSION}.tar.gz
• Unpack the Control Center tarball:
export CC_VERSION=<enter new version here>
tar -xzf netrounds-control-center_${CC_VERSION}.tar.gz
4
• Install new Control Center packages:
sudo apt update
sudo apt install ./netrounds-control-center_${CC_VERSION}/*.deb
• Remove the obsolete packages:
NOTE: It is vital to remove these packages.
# Test Agent Lite support
sudo apt purge netrounds-agent-login
# Unsupported jsonfield package
sudo apt remove python-django-jsonfield
• Run the database migraon:
Loading...
+ 14 hidden pages