Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Installing the NorthStar Controller 3.1.0

 

You can use the procedures described in the following sections if you are performing a fresh install of NorthStar Controller Release 3.1.0, or upgrading from a 2.x or 3.0.x release.

If you are configuring a high availability (HA) cluster, ensure that:

  • You configure each server individually using these instructions before proceeding to HA setup.

  • The database and rabbitmq passwords are the same for all servers that will be in the cluster.

  • All server time is synchronized by NTP using the following procedure:

    1. Install NTP.
      yum -u install ntp
    2. Specify the preferred NTP server in ntp.conf.
    3. Verify the configuration.
      ntpq -p
Note

The NorthStar Controller software includes a number of third-party packages. To avoid possible conflict, we recommend that you only install these packages as part of the NorthStar Controller RPM bundle installation rather than installing them manually.

The following sections describe the download, installation, and initial configuration of the NorthStar Controller. For HA setup after all the servers that will be in the cluster have been configured, see Configuring a NorthStar Cluster for High Availability.

Download the Software

The NorthStar Controller software download page is available at http://www.juniper.net/support/downloads/?p=northstar#sw.

  1. From the Version drop-down list, select 3.1.
  2. Click the NorthStar Application (which includes the RPM bundle) and the NorthStar JunosVM to download them.

If Upgrading, Back Up Your JunosVM Configuration and iptables

If you are doing an upgrade from Release 2.x, back up your JunosVM configuration before installing the new software. Restoration of the JunosVM configuration is performed automatically after the upgrade is complete as long as you use the net_setup.py utility to save your backup.

  1. Launch the net_setup.py script:
    [root@hostname~]# /opt/northstar/utils/net_setup.py
  2. Type D and press Enter to select Maintenance and Troubleshooting.
  3. Type 1 and press Enter to select Backup JunosVM Configuration.
  4. Confirm the backup JunosVM configuration is stored at '/opt/northstar/data/junosvm/junosvm.conf'.
  5. Save the iptables.
    iptables-save > /opt/northstar/data/iptables.conf

Install NorthStar Controller

You can either install the RPM bundle on a physical server or use a two-VM installation method in an OpenStack environment, in which the JunosVM is not bundled with the NorthStar Controller software.

The following optional parameters are available for use with the install.sh command:

- -vmSame as ./install-vm.sh, creates a two-VM installation.
- -setup-fwFor either physical server installation or two-VM installation, reinitializes the firewall using the NorthStar Controller recommended rules. Without this option, the firewall is not changed.
- -skip-bridgeFor a physical server installation, skips checking if the external0 and mgmt0 bridges exist.

The default bridges are external0 and mgmt0. If you have two interfaces such as eth0 and eth1 in the physical setup, you must configure the bridges to those interfaces. However, you can also define any bridge names relevant to your deployment.

Note

We recommend that you configure the bridges before running install.sh.

  • For a physical server installation, execute the following commands to install NorthStar Controller:

    [root@hostname~]# rpm -Uvh <rpm-filename>
    [root@hostname~]# cd /opt/northstar/northstar_bundle_3.1.0/
    [root@hostname~]# ./install.sh
    Note

    -Uvh works for both upgrade and fresh installation.

  • For a two-VM installation, execute the following commands to install NorthStar Controller:

    [root@hostname~]# rpm -Uvh <rpm-filename>
    [root@hostname~]# cd /opt/northstar/northstar_bundle_3.1.0/
    [root@hostname~]# ./install-vm.sh
    Note

    -Uvh works for both upgrade and fresh installation.

    The script offers the opportunity to change the JunosVM IP address from the system default of 172.16.16.2.

    Checking current disk space
    INFO: Current available disk space for /opt/northstar is 34G. Will proceed with installation.
    System currently using 172.16.16.2 as NTAD/junosvm ip
    Do you wish to change NTAD/junosvm ip (Y/N)? y
    Please specify junosvm ip:

Configure Support for Older JunosVM Versions

If you are using a two-VM installation, in which the JunosVM is not bundled with the NorthStar Controller, and if your external JunosVM is older than Release 17.2, you must edit the northstar.cfg file to make the NorthStar Controller compatible with the external VM.

Note

If you edit the northstar.cfg file to make the NorthStar Controller compatible with an older external VM, segment routing on the NorthStar Controller will no longer be supported.

Perform the following steps:

  1. SSH to the NorthStar server.
  2. Using a text editor such as vi, edit the following statement in the opt/northstar/data/northstar.cfg file from the default of use_sr=1 to use_sr=0:
    use_sr=0
  3. Restart the toposerver process:
    supervisorctl restart northstar:toposerver

Create Passwords

When prompted, enter new database/rabbitmq and web UI Admin passwords.

  1. Create an initial database/rabbitmq password by typing the password at the following prompts:
  2. Create an initial Admin password for the web UI by typing the password at the following prompts:

Enable the NorthStar License

You must enable the NorthStar license as follows, unless you are upgrading from Release 2.x and you have an activated license.

  1. Copy or move the license file.
  2. Set the license file owner to the PCS user.
  3. Restart all the NorthStar Controller processes.
  4. Check the status of the NorthStar Controller processes until they are all up and running.

Renew the SSL Certificate

For NorthStar standalone mode (as opposed to a cluster configuration), the installation script automatically renews the SSL certificate.

Note

For both standalone and cluster configurations, the certificate renewal is only applicable if the certificate owner is NorthStar.

  1. Check the certificate expiration date using the following command:

    If the certificate is set to expire in more than one year, you can stop here.

  2. Source the environment variable.
  3. Obtain the current certificate and keystore password.
  4. Verify the existing certificate.
  5. For a cluster configuration, run the ha_update_ssl_cert.py (located in the /opt/northstar/utils directory) in a maintenance window on any cluster member to renew the certificate. If you run the script when the current certificate is set to expire in more than one year, a new certificate is not generated.

    Running the script on one cluster member restarts the infra:Cassandra process and renews the certificate on all cluster members, but only if all cluster members can communicate with one another. Before running the script, ensure that they can.

  6. Obtain the new certificate and keystore password.
  7. Verify the new certificate. You should see a new expiration date on the “Valid from” line. All cluster members should have the same SSL certificate and password.

Adjust Firewall Policies

The iptables default rules could interfere with NorthStar-related traffic. If necessary, adjust the firewall policies.

Refer to NorthStar Controller System Requirements for a list of ports that must be allowed by iptables and firewalls.

A sample set of iptables rules is available in the /opt/northstar/utils/firewall.sh directory.

Launch the Net Setup Utility

Launch the Net Setup utility to perform host server configuration.

Configure the Host Server

  1. From the NorthStar Controller setup Main Menu, type A and press Enter to display the Host Configuration menu:

    To interact with this menu, type the number or letter corresponding to the item you want to add or change, and press Enter.

  2. Type 1 and press Enter to configure the hostname. The existing hostname is displayed. Type the new hostname and press Enter.
  3. Type 2 and press Enter to configure the host default gateway. The existing host default gateway IP address (if any) is displayed. Type the new gateway IP address and press Enter.
  4. Type 3A and press Enter to configure the host interface #1 (external_interface). The first item of existing host interface #1 information is displayed. Type each item of new information (interface name, IPv4 address, netmask, type), and press Enter to proceed to the next.Note

    The designation of network or management for the type of interface is a label only, for your convenience. NorthStar Controller does not use this information.

  5. Type A and press Enter to add a host candidate static route. The existing route, if any, is displayed. Type the new route and press Enter.
  6. If you have more than one static route, type A and press Enter again to add each additional route.
  7. Type Z and press Enter to save your changes to the host configuration.Note

    If the host has been configured using the CLI, the Z option is not required.

    The following example shows saving the host configuration.

  8. Press Enter to return to the Main Menu.

Configure the JunosVM and its Interfaces

From the Setup Main Menu, configure the JunosVM and its interfaces. Ping the JunosVM to ensure that it is up before attempting to configure it. The net_setup script uses IP 172.16.16.2 to access the JunosVM using the login name northstar.

  1. From the Main Menu, type B and press Enter to display the JunosVM Configuration menu:

    To interact with this menu, type the number or letter corresponding to the item you want to add or change, and press Enter.

  2. Type 1 and press Enter to configure the JunosVM hostname. The existing JunosVM hostname is displayed. Type the new hostname and press Enter.
  3. Type 2 and press Enter to configure the JunosVM default gateway. The existing JunosVM default gateway IP address is displayed. Type the new IP address and press Enter.
  4. Type 3 and press Enter to configure the JunosVM BGP AS number. The existing JunosVM BGP AS number is displayed. Type the new BGP AS number and press Enter.
  5. Type 4A and press Enter to configure the JunosVM interface #1 (external_interface). The first item of existing JunosVM interface #1 information is displayed. Type each item of new information (interface name, IPv4 address, netmask, type), and press Enter to proceed to the next.Note

    The designation of network or management for the type of interface is a label only, for your convenience. NorthStar Controller does not use this information.

  6. Type B and press Enter to add a JunosVM candidate static route. The existing JunosVM candidate static route (if any) is displayed. Type the new candidate static route and press Enter.
  7. If you have more than one static route, type B and press Enter again to add each additional route.
  8. Type Z and press Enter to save your changes to the JunosVM configuration.

    The following example shows saving the JunosVM configuration.

  9. Press Enter to return to the Main Menu.
  10. If you are doing an upgrade from a 2.x release, use the following command to restore the iptables that you previously saved:
    iptables-restore < /opt/northstar/data/iptables.conf

Set Up the SSH Key for External JunosVM

For a two-VM installation, you must set up the SSH key for the external JunosVM.

  1. From the Main Menu, type H and press Enter.

    Follow the prompts to provide your JunosVM username and router login class (super-user, for example). The script verifies your login credentials, downloads the JunosVM SSH key file, and returns you to the main menu.

    For example: