...
Sign in to OpenStack and compose the user data file for the Grid Master using the vi editor. You can also compose the data file locally and move it to the OpenStack node later.
For a sample of the Grid Master user data file, see the Sample User Data File for the Grid Mastersection.Run the
openstack port-create
command to create port IDs for the network interfaces (MGMT, LAN1, and/or HA).For the vNIOS appliance to run in OpenStack, you must specify at least two networks, MGMT and LAN1.
If you need to create a LAN2 port, then you must create an HA port.
To set up high availability (HA) with vNIOS, you must specify three network interfaces, MGMT, LAN1, and HA on each node of the HA pair.
Ensure that the LAN 1 and HA interfaces are in the same subnet.For HA pairs, you must also run the
allowed-address-pairs
option to define the VIP port for the HA configuration, using the VRRP MAC address and the Virtual Router ID.
Following is an example:$ openstack port-create VIP –-allowed-address-pairs list=true mac_address= 00:00:5e:00:01:c8 ip_address=10.0.0.22
Note that you can use thesecurity-group
option to associate the vNIOS instance with one or more security groups that you have created. For more information, see the Setting Up Security Groups section. Optionally, you can associate the vNIOS instance with a security group when you run theopenstack server create
command.
Example:$ openstack port-create --security-group <name of the security group>
For an HA pair configuration only: Ensure that you set
allow_duplicate_networks=true
in the nova.conf file to remove the restriction of allowing only one interface for each network in OpenStack.Run the
openstack port list
command to view the network and port IDs generated for all network interfaces. You can copy and paste the Port IDs into theopenstack server create
command.Run the
openstack server create
command in OpenStack to spin up the Grid Master VM.
Note: Use the custom name that you used when creating flavors.
Following is an example:For Red Hat OpenStack Platform, use the command:
openstack server create <instance_name> --config-drive=True --flavor=<flavor_name> --image=<image_name> --nic port-id=<mgmt_port_id> --nic port-id=<lan1_port_id> --nic port-id=<ha_port_id> --nic port-id=<lan2_port_id> --user-data <user_data_file_name>
For Ubuntu, use the command:
openstack server create <instance_name> --config-drive True --flavor <flavor_name> --image <image_name> --network <network_name_mgmt> --network <network_name_lan1> --network <network_name_ha> --network <network_name_lan2> --user-data <user_data_file_name>
For information about user data files, see the Defining User Data Settings for vNIOS Instances section.Parameter description:
config-drive
determines whether to use the virtual CD-ROM drive transport mechanism for the user data file. Set it toTrue
to enable the use of virtual drive.image
defines the name of the software package you downloaded. For information about supported vNIOS for OpenStack models, see vNIOS for OpenStack Virtual Appliance Models.flavor
specifies the flavors of the vNIOS for OpenStack instance. For information about how to define flavors, see Setting Up vNIOS for up the OpenStack Flavors for vNIOS.nic port-id
specifies the port ID of the MGMT, LAN1, LAN2, or HA interface.network
specifies the name of the network in which the port must reside.user-data
specifies the name of the user data file.
...
Sign in to OpenStack and compose a user data file for each Grid member you plan to join the Grid. For a sample Grid member user data file, see the the Sample User data Data File for Grid Members section.
Run the
openstack server create
command in OpenStack to spin up each Grid member VM, as follows:For Red Hat OpenStack Platform, use the command:
openstack server create <instance_name> --config-drive True --flavor=<flavor_name> --image=<image_name> --nic port-id=<mgmt_port_id> --nic port-id=<lan1_port_id> --nic port-id=<ha_port_id> --nic port-id=<lan2_port_id> --user-data <user_data_file_name>
For Ubuntu, use the command:
openstack server create <instance_name> --config-drive True --flavor <flavor_name> --image <image_name> --network <network_name_mgmt> --network <network_name_lan1> --network <network_name_ha> --network <network_name_lan2> --user-data <user_data_file_name>
For information about user data files, see the Defining User Data Settings for vNIOS Instances section.
Parameter description:config-drive
determines whether to use the virtual CD-ROM drive transport mechanism for the user data file. Set it toTrue
to enable the use of virtual drive.image
defines the name of the software package you downloaded. For information about supported vNIOS for OpenStack models, see vNIOS for OpenStack Virtual Appliance Models.flavor
specifies the flavors of the vNIOS for KVM instance. For information about how to define flavors, see Setting Up vNIOS up the OpenStack Flavors for vNIOS.nic port-id
specifies the port ID of the network interface.network
specifies the name of the network in which the port must reside.user-data
specifies the name of the user data file.
...