How to Autoprovision a NetScaler VPX Instance on OpenStack Nova

How to Autoprovision a NetScaler VPX Instance on OpenStack Nova

book

Article ID: CTX219934

calendar_today

Updated On:

Description

Introduction

The on-demand consumption model has become a de facto standard in cloud computing. To support this model in the OpenStack cloud environment, NetScaler MAS supports on-demand autoprovisioning of NetScaler VPX instances on OpenStack Nova. The provisioned instances are used to load balance (including SSL and content switching functionality) the applications that are deployed in OpenStack clouds or outside OpenStack Cloud.

For an example, if a cloud service provider has built a cloud using OpenStack and providing customers with on-demand computing, storage, and networking services, the networking services can include on-demand allocation of NetScaler instances to customers who are deploying applications in or outside the OpenStack Cloud. Using NetScalers VPX instances that are provisioned on OpenStack Nova leverages the existing OpenStack infrastructure.


Instructions

Preconfiguration

Before autoprovisioning a NetScaler VPX instance on OpenStack Nova, verify that the following prerequisites have been met:

NetScaler LBaaS v2 drivers are installed in OpenStack.

NetScaler MAS is installed and registered with OpenStack.

The VPX image has been uploaded to OpenStack Glance.

User-added image

In MAS, navigate to Orchestration > OpenStack > Deployment and select the management network of the OpenStack stack. Enter the license activation code and select the VPX image that was uploaded to OpenStack Glance to be used for autoprovisioning.

User-added image

Configuration

  1. Log on to MAS, Go to Orchestration, Cloud Orchestration, Service Packages, and click Add to create a new service package.

    User-added image

  2. Enter the name of the package, set NetScaler Instance Allocation to either Dedicated or Partition, and set NetScaler Instance Provisioning to Create Instance OnDemand. Also set Auto Provision Platform to OpenStack Compute.

    User-added image

  3. Enter the Maximum number of instances to Auto-provision, and select the flavour and capacity of the instances from the Flavor drop-down list. If the autoprovisioned VPX instances are to be a high availability pair, select the High Availability option. Click Continue, and select the install license option if LAC code is available.

    User-added image

  4. Under Assign placement policies/OpenStack Tenants, select OpenStack Tenants and click Add to populate the list of tenants.

    User-added image

  5. For each tenant, click the plus (+) icon and assign the tenant to a service package. Click Continue, and then Done to finish the creation of a service package.

    User-added image

    User-added image

    User-added image

  6. The tenants assigned to the service package will try to consume NetScaler load balancing as a service from OpenStack. Before any LBaaS commands can be executed, you have to set the environment variables. For each tenant, open an SSH session and enter the following commands:
    export OS_USERNAME=<username>
    export OS_PASSWORD=<password>
    export OS_TENANT_NAME=<projectName>
    export OS_AUTH_URL=https://<KeystoneIP:portNumber>/v2.0

    User-added image

  7. Enter the following command to create a load balancer:
    $neutron lbaas-loadbalancer-create --name <loadbalancer-name> <subnet-name> --provider netscaler

    User-added image

  8. Enter the following command to check the provisioning status of the newly created load balancer
    $neutron  lbaas-loadbalancer-list

    User-added image

    Note: You can verify the status of the load balancer at each stage, after the creation of listener, pool, or members.

  9. Enter the following command to create a listener:
    $neutron lbaas-listener-create -loadbalancer <loadbalancer-name> --name <listener-name> -- protocol  <protocol_type>  -protocol-port  <port_number>

    User-added image

  10. Enter the following command to create a pool:
    $neutron lbaas-pool-create --lb-algorithm <algorithm_type> --listener <listener-name> -- protocol <protocol_type> --name <pool-name>

    User-added image

  11. Add members to the pool. To add a member, enter the following command:
    $neutron lbaas-member-create --subnet <subnet-name> --address <ip-address of the web server> --protocol-port <port_number> <pool-name>

    User-added image

    User-added image

  12. Log on to the NetScaler GUI and go to Infrastructure > Instances > NetScaler VPX to see the newly created VPX instance and the service package to which it is bound.

    User-added image

  13. Scroll bar to left to see the service package information.

    User-added image

  14. Go to Applications > Load Balancing and verify the newly created virtual servers, service groups, and content switching virtual servers on the VPX instance.

    User-added image

    User-added image

    User-added image

Once the NetScaler VPX is created and completely configured, it is ready to serve the traffic.

Issue/Introduction

The on-demand consumption model has become a de facto standard in cloud computing. To support this model in the OpenStack cloud environment, NetScaler MAS supports on-demand autoprovisioning of NetScaler VPX instances on OpenStack Nova.