Product Documentation

Pre-configuration Tasks in NetScaler MAS and OpenStack

Apr 24, 2017

Installing NetScaler Management and Analytics System

Install NetScaler MAS on a supported hypervisor. For more information on how to download and install NetScaler MAS, see NetScaler MAS Single Server Deployment.

Installing the NetScaler Driver Software and Registering NetScaler MAS on OpenStack

Download the NetScaler bundle for OpenStack from the NetScaler MAS Downloads page. 

To install NetScaler driver on OpenStack platform using NetScaler MAS GUI

  1. In NetScaler MAS, click Downloads. The Downloads page in NetScaler MAS, provides you links to download NetScaler bundle for OpenStack software required for Liberty, Mitaka, and Newton OpenStack versions.
  2. Download the latest NetScaler bundle tar file to a temporary directory (for example, /tmp) in OpenStack Controller.  This bundle includes the following drivers and plugins:
    • LBaaS V1 and LBaaS V2 drivers for OpenStack Liberty and Mitaka releases
    • LBaaS V2 driver for OpenStack Newton release
    • Heat plug-in for all OpenStack releases.
localized image

3.  Run the following command to extract the files from the NetScaler driver tar file:

     tar -xvzf <name_of_tar_file>

4.  If you have an OpenStack <Release Name> setup, at the prompt, type the following command:

     cd <Release Name>

      Example:

      cd Liberty

5.  Run the following command to install the driver and specify the NetScaler MAS IP address, the NetScaler driver password that you configured when you registered OpenStack with NetScaler MAS, and the protocol:

     ./install.sh --ip=<NetScaler_MAS_IP> --password=<password> --protocol=<protocol> --neutron-lbaas-path <neutron-lbaas-directory-path>

     Example for single node OpenStack setup:

     ./install.sh --ip=10.102.29.90 --password=xxxx --protocol=HTTP --neutron-lbaas-path=/opt/stack/neutron-lbaas

     Example for multinode OpenStack setup

     ./install.sh --ip=10.102.29.90 --password=xxxx --protocol=HTTP --neutron-lbaas-path=/usr/lib/python2.7/site-packages

Note

Providing the path of the neutron-lbaas directory of the system is optional. Providing the path might assist the script to find the drivers.

Note

After NetScaler MAS is registered successfully on OpenStack, you can log on to NetScaler MAS using your OpenStack user credentials also.

After NetScaler MAS is registered successfully on OpenStack, restart the OpenStack Neutron services.

Registering OpenStack with NetScaler MAS

To register OpenStack with NetScaler MAS using NetScaler MAS GUI

  1. In NetScaler MAS, navigate to Orchestration Cloud Orchestration > OpenStack.
  2. Click Configure OpenStack Settings.
  3. In Configure OpenStack Settings page, you can set the parameters to configure OpenStack in NetScaler MAS. You have two options here - Default and Customized.
  4. Select Default, if the OpenStack services are running on default ports. For example, the default portal for Neutron services is 9696, the default portal for Keystone services is 5000.
    1. OpenStack Controller IP Address - IP address of the OpenStack controller (both the KeyStone service and the Neutron service should be reachable on this IP address). For example, enter the IP address 10.102.205.23.
    2. OpenStack Admin Username - administrative user name of the OpenStack controller. For example, enter admin1.
    3. Password - password of the administrative user of the OpenStack controller.
    4. OpenStack Admin Tenant - name of the administrative tenant on OpenStack. For example, enter admin.
localized image

Select deployment type as Customized if the OpenStack services are running on ports different from the default ports. If these services are running on different ports, specify them here. 

  • Specify the port numbers for the various OpenStack services.
  • Specify the OpenStack Admin user name, password and OpenStack Admin Tenant user name as in Default settings.
localized image

       5.  In OpenStack Neutron LBaaS - Credentials Used by NetScaler Driver section, set the NetScaler Driver Password for the OpenStack NetScaler driver user account. NetScaler MAS authenticates the calls from the OpenStack NetScaler driver by using these credentials. You must specify the same password when you execute the NetScaler driver installation script in the OpenStack controller.

localized image

       6.  Click OK.

Creating a Tenant on OpenStack

Create a project or a tenant on OpenStack, add users to the project or tenant, and assign roles to all of the users. KeyStone, the Identity service in OpenStack provides authentication services for each OpenStack service. The authentication service uses a combination of domains, projects (tenants), users, and roles.

For more information on how to create a project, and to perform other tasks in OpenStack, see the OpenStack documentation at http://docs.openstack.org/.

Adding OpenStack Tenants

  1. In NetScaler MAS, navigate to Orchestration Cloud Orchestration > OpenStackOpenStack Tenants, and then click Add.
  2. In Add OpenStack Tenants page, click +Add, and then select the OpenStack tenant.
  3. Click OK.

Provisioning NetScaler Devices

Based on whether you are using pre-provisioned instance or auto-provisioning the instance when you are integrating the OpenStack, follow one of these two tasks:

Pre-provisioning NetScaler Devices

Install the NetScaler device on any of the hypervisor platforms like XenServer, KVM, or ESX, and add the instance to NetScaler MAS. NetScaler MAS then manages this device that load balances the traffic in the servers.

To add an existing NetScaler VPX instance in NetScaler MAS 

1.  In NetScaler MAS, navigate to Infrastructure Instances NetScaler VPX, and then click Add.

2.  On the Add NetScaler VPX page, specify the IP address of the NetScaler VPX instance and select an instance profile from the Profile Name list. The instance profile contains the credentials used to logon to the NetScaler VPX. You can also create a new instance profile by clicking the + icon. Click OK.  

localized image

Autoprovisioning NetScaler Devices

Download the required NetScaler instance image from the Citrix download page, and upload it on Glance, the OpenStack Imaging service. Having an image available on Glance allows you to configure a NetScaler instance on-demand when assigning the instance to the tenant.

To auto-provision the NetScaler VPX devices on OpenStack

  1. In NetScaler MAS, navigate to Orchestration > Cloud Orchestration > OpenStack.
  2. Click Deployment Settings.
  3. Set the following parameters:
    1. Management Network - select the management network on OpenStack, to which the auto-provisioned NetScaler VPX is connected.
    2. Profile Name - select the profile from the drop-down list. The NetScaler MAS uses the password contained in this profile to configure new auto-provisioned NetScaler VPX instances.
    3. Licenses - provide the NetScaler MAS license activation codes (LAC) used to license new auto-provisioned NetScaler instances. NetScaler MAS provisions NetScaler instances on OpenStack compute in management network, then triggers license installation on them using the specified license code. The NetScaler instance then downloads the license files from Citrix website using the LAC specified here.
    4. NetScaler VPX Image in Glance - select the NetScaler VPX image available in the OpenStack Glance that is used to create a NetScaler VPX instance.
    5. Proxy Settings - provide details of NetScaler proxy server for installing licenses. This may be required when NetScaler does not have direct access to the Internet through the management network.
  4. Click OK.
localized image

Creating a Service Package in NetScaler MAS

To create service packages for a tenant in NetScaler MAS

  1. In NetScaler MAS, navigate to Orchestration > Cloud Orchestration > OpenStack > Service Packages, and then click Add.
  2. On the Service Package page specify the following parameters:
    1. Name - name for the service package. For example, enter SVC-PKG-GOLD.
    2. NetScaler Instance Allocation - the type of instance allocation defined in the service package based which NetScaler instance resources are allocated to a tenant. Select Dedicated. For more information on policies, see Service Package Isolation Policies.
    3. NetScaler Instance Provisioning - select Existing Instance to allocate an existing NetScaler instance to a tenant. If you want to create NetScaler instances during the configuration itself, select Create Instance OnDemand.
    4. NetScaler Instance Type - select NetScaler VPX

                    Note: Select NetScaler VPX to allocate pre-provisioned NetScaler instances hosted on SDX platform.

       3.  Click Continue to associate a tenant with a service package.

       Note: Enable Provision pair of NetScaler instances for high availability, if you are deploying the NetScaler instances in high availability mode.

       5.  In Assign Instances section, click Add, and then select the NetScaler instance that you want to assign to the tenant, and click Continue.

       6.  In Assign OpenStack Tenants/Placement Policies section, under OpenStack Tenants, click Add, and select the tenant.

       7.  Click Continue, and then click Done.

Note: If the policy is not found, the fallback mechanism is revived, and the NetScaler MAS assigns NetScaler instances based on tenants. If the tenant is not part of any service package, the NetScaler MAS displays an error message that says: "Tenant <admin> is not part of any Service Package and there is no default Service Package."

Creating Placement Policies (Optional)

Isolation Policies are not tenant-based only. You can create flexible placement policies, where the policies are not only based on tenant name or id, but on other custom attributes also.

To create placement policies for a tenant in NetScaler MAS

  1. In NetScaler MAS, navigate to Orchestration > Cloud Orchestration > OpenStack > Placement Policy, and then click Add.
  2. On the Add Placement Policy page, set the following parameters:
    1. Name - type a name for the placement policy
    2. Sample Expressions - select a sample expression from the list. These examples are helpful to construct the placement policy.
    3. Expression - a Boolean expression is populated in this field based on the sample expression that you have selected in the earlier field. Edit the field names as required.
  3. Click OK.
localized image

Auto-Provisioning NetScaler VPX Devices Deployed on NetScaler SDX Platform

Add the NetScaler SDX platform in NetScaler MAS, so that NetScaler MAS provisions the instances on this platform on-demand.

To Auto-provison NetScaler Instances Deployed on NetScaler SDX Platform

  1. In NetScaler MAS GUI, navigate to Networks Instances NetScaler SDX, and click Add to add a NetScaler SDX platform.
  2. Navigate to Orchestration Cloud Orchestration > OpenStack Deployment Settings
  3. In Management Network section, select the management network on OpenStack to which the auto-provisioned NetScaler SDX is connected.
    1. In Profile Name, select the profile from the drop-down list. The NetScaler MAS uses the password contained in this profile to configure new auto-provisioned NetScaler VPX instances.
    2. Click OK.
  4. To provision the NetScaler SDX platform in OpenStack, navigate to Orchestration Cloud Orchestration > OpenStack > Service Package.
    1. Click Add to create a new service package.
    2. Enter the name of the service package.
    3. In NetScaler Instance Allocation field, select Dedicated.
    4. In NetScaler Instance Provisioning field, select Create Instance OnDemand, and in Auto Provision Platform field, select NetScaler SDX.
    5. By default, only NetScaler VPX instances are provisioned on NetScaler SDX platform.
    6. Click Continue.
    7. In Auto Provision Settings section, set the Resources properties.
      1. Throughput field. Enter 1000 Mbps.
      2. NetScaler Version field. From the drop-down field, select the right version of the NetScaler VPX image present on the NetScaler SDX platform.
    8. In NetScaler SDX Platforms section, click Add to add the SDX platform to the service package.
    9. Click Continue.
    10. In Configure OpenStack Tenants section, click Add to add the  tenants. You can also add new tenants by clicking New.
    11. Click Done.
  5. LBaaS V2 API implementations are performed through Neutron LBaaS commands. Connect to any Neutron  client and execute the configuration tasks. For more information on how to execute configuration commands, see Configuring LBaaS V2 using Command Line.