Integrate with OpenStack Heat services
Heat Orchestration Service
NetScaler StyleBooks
Workflow to Configure NetScaler Instances using Heat
-
Download NetScaler bundles for OpenStackInstall the NetScaler bundles in OpenStack. In NetScaler ADM, navigate to Downloads and download the NetScaler driver bundles, untar the bundles, and copy the contents of the Heat folder in the bundle to the Heat engine resources directory in OpenStack. The directory path is as follows: /opt/stack/heat/heat/engine/resources/netscaler_resources
-
Create a section "netscaler_plugin" in the heat.conf file, and update the following parameters in that section:
-
When the communication is HTTP, the parameters are updated as follows:NMAS_BASE_URI=<
http://10.146.103.45:80>NMAS\_USERNAME=<openstack_driver_username>NMAS\_PASSWORD=<openstack_driver_password> -
When the communication is https, the parameters are updated as follows:NMAS_BASE_URI=
https://common_name_used_in_certificateNMAS\_USERNAME=\<openstack\_driver\_usernameNMAS\_PASSWORD=\<openstack\_driver\_password\>SSL\_CERT\_VERIFY=\<True\_or\_False\>CERT\_FILE\_PATH=\<path\_of\_the\_certificate\_file\>If user sets ssl\_cert\_verify to be "False," NetScaler ADM sends verify=False in the request calls, which disables the SSL certificate validation. If ssl\_cert\_verify is set to "True" and cert\_file\_path entry is present, NetScaler ADM sends this path in the verify parameter of request, otherwise NetScaler ADM sends verify=True.NoteFor deploying NetScaler ADM in "High Availability" mode, update the following parameters in heat.conf file:NMAS\_BASE\_URI=\<IP address of the front-end virtual server\>
-
-
Restart the Heat service in OpenStack.When you restart the NetScaler Heat services in OpenStack, all the defined NetScaler ADM StyleBooks are imported into Heat as resources. Also, the NetScaler network resource and the certificate resource are imported into OpenStack as NetScaler Heat resources.
-
Register NetScaler® ADM with OpenStack.
-
In NetScaler ADM, navigate to Orchestration \> Cloud Orchestration \> OpenStack, and click Configure OpenStack Settings.
-
In Configure OpenStack Settings page, you can set the parameters to configure OpenStack. You have two options here: Default and Customized.
-
Select Default if the OpenStack services are running on default ports. Enter the following parameters:
-
OpenStack Controller IP Address
-
Admin user name
-
Password
-
OpenStack Admin Tenant
-
NetScaler Driver and Heat password
NoteThis is the same password (NMAS\_PASSWORD) that you entered in the heat.conf file. -
-
-
Create service packages and define the SLAs with your tenant.A tenant is created in NetScaler ADM for each user during OpenStack registration, and the tenant information is used by both the LBaaS driver and the Heat plug-in. The Heat plug-in uses this information to contact NetScaler ADM to import StyleBooks as Heat resources in OpenStack.NoteFor more information about creating service packages and other pre-configuration tasks in NetScaler ADM and OpenStack, see Integrating NetScaler ADM with OpenStack Platform.
-
Observe that all the relevant StyleBooks in NetScaler ADM are imported into OpenStack Heat as resources. Also, observe that the NetScaler network resource and NetScaler certificate resource are imported into OpenStack Heat as resources.NoteCurrently, you can use only the StyleBooks that are shipped with NetScaler ADM.Your tenant can now create the Heat template in OpenStack, enter the values of the required Heat parameters, and deploy the Heat stack. When the Heat stack is deployed, the configuration is pushed to NetScaler ADM, and the required NetScaler instances are configured.
-
In OpenStack, the tenant can create a Heat orchestration template (HOT) by using the Heat resources.
-
In OpenStack Horizon, the tenant admin can navigate to Project \> Orchestration \> Stacks to create the Heat template and launch the Heat Stack. There are two ways to create HOT:
-
File - Select the updated template from the local directory
-
Direct input - Copy and paste the YAML contents from the template in the window
NoteAfter successfully deploying the stack, the tenant can update the stack by using the Change Stack Template. But the subnet information and the virtual IP address (VIP) that was provided initially during creation of stack cannot be modified.After the tenant deploys the stack, navigate to Orchestration \> Cloud Orchestration \> OpenStack \> Requests in NetScaler ADM to observe the lists of tasks. Also, navigate to Applications \> Configuration in NetScaler ADM to observe that the NetScaler instances are successfully configured in the form of StyleBooks configuration packs. -