Package: a10-neutron-lbaas
A10 Networks Openstack LBaaS v1/v2 Driver===========================================A10 Networks LBaaS Driver for Thunder, vThunder and AX Series AppliancesSupported releases:OpenStack: Liberty through current release.LBaaS versions: v2ACOS versions: ACOS 2/AxAPI 2.1 (ACOS 2.7.2+), ACOS 4/AxAPI 3.0 (ACOS 4.0.1-GA +)Working but not available for support:OpenStack: git/masterUnsupported, but may work with minor tweaking:OpenStack: v1 on any release, v2 Havana through KiloA10 github reposa10-neutron-lbaas- Main A10 LBaaS driver repo. Middleware sitting between the
openstack driver and our API client, mapping openstack constructs to A10's AxAPI.acos-client- AxAPI client used by A10's OpenStack drivera10-openstack-lbaas- OpenStack LBaaS driver,
identical to the files that are currently merged into neutron-lbaas.  Pypi package
'a10-openstack-lbaas'.a10-openstack-lbaas, havana branch- OpenStack
LBaaS driver, for the Havana release.  Pypi package 'a10-openstack-lbaas-havana'.a10networks-ci/project-config- A10 Networks OpenStack third-party CI setup scriptsImplementation:Installation steps:Step 1:Make sure you have neutron installed, and neutron-lbaas if applicable. This
driver will need to be installed on all of your neutron controller nodes
(anywhere that neutron-server is running.)Step 2:The latest supported version of a10-neutron-lbaas is available via standard pypi repositories and the current development version is available on github.Installation from pypisudopipinstalla10-neutron-lbaasInstallation from cloned git repository.Download the driver from:https://github.com/a10networks/a10-neutron-lbaassudopipinstallgit+https://github.com/a10networks/a10-neutron-lbaas.gitgitclonehttps://github.com/a10networks/a10-neutron-lbaas.gitcda10-neutron-lbaas
sudopipinstall-e.ConfigurationPost-installation configuration requires modification of your neutron.conf or neutron_lbaas.conf (neutron_lbaas.conf is only present in LBaaSv2) typically located in/etc/neutron.LBaaS v1 configurationOpen/etc/neutron/neutron.confin your preferred text editor.
Under theservice_pluginssetting, ensurelbaasorlbaasv2is listed depending on your configuration.In the list ofservice_providersettings, add a service provider for A10
Networks:service_provider = LOADBALANCER:A10Networks:neutron_lbaas.services.loadbalancer.drivers.a10networks.driver_v1.ThunderDriver:defaultSave and close neutron.confLBaaS v2 configurationOpen/etc/neutron/neutron.confin your preferred text editor.
Under theservice_pluginssetting, ensurelbaasv2is listed.
Save and close neutron.conf.Open/etc/neutron/neutron_lbaas.confin your preferred text editor.In the list ofservice_providersettings, add a service provider for A10
Networks:service_provider = LOADBALANCERV2:A10Networks:neutron_lbaas.drivers.a10networks.driver_v2.ThunderDriver:defaultExtension configurationOpen/etc/neutron/neutron.confin your preferred text editor.
Under theservice_pluginssetting, ensurea10_neutron_lbaas.neutron_ext.services.a10_device_instance.plugin.A10DeviceInstancePluginis listed. Theservice_pluginsare separated by,s.Under theapi_extensions_pathsetting, ensure the path toa10_neutron_lbaas.neutron_ext.extensionsis listed. Theapi_extensions_paths are separated by:s. You can find the path of the installed extension by runningpython -c "import os; import a10_neutron_lbaas.neutron_ext.extensions as m; print(os.path.dirname(os.path.abspath(m.__file__)))".Device configurationAfter installation, you will need to provide configuration for the driver so the driver is aware of the appliances you have configured.  The configuration is a python file stored in/etc/a10/config.py.  Below is a sample to show options and formatting, though any legal python can be used to calculate values or define classes:devices={"ax1":{"name":"ax1","host":"10.10.100.20","port":443,"username":"admin","password":"a10","autosnat":True,"api_version":"3.0",}}vThunder Appliance ConfigurationA10's LBaaS driver supports a default scheduling strategy of "one appliance per tenant".  Below is a sample configuration (stored in/etc/a10/config.py):vthunder={'username':'admin','password':'a10','api_version':'3.0','nova_flavor':'acos.min','glance_image':'c2722746-0c06-48b1-93c3-a9dbc2f6e628','vthunder_tenant_name':'admina','vthunder_tenant_username':'admina','vthunder_tenant_password':'password','vthunder_management_network':'private','vthunder_data_networks':['vipnet','membernet']}username(required)The administrator username on your vThunder appliance image.password(required)The administrator password on your vThunder appliance image.api_version(required)The AXAPI version utilized to access vThunder appliances.  This is dependent on your vThunder appliance image version:2.7.x -"2.1"4.x.x -"3.0"nova_flavor(required)The name of the nova flavor used to construct vThunder device instances.  The minimum requirements are dependent on your vThunder appliance image version:2.7.xCPU: 1 VCPURAM: 2GBStorage: 12GB4.x.xCPU: 1 VCPURAM: 4GBStorage: 12GBglance_image(required)The Glance or Nova image ID of your vThunder appliance image.  This can be obtained through Horizon or the Openstack CLI.vthunder_tenant_name(required)The name of the service tenant where vThunder appliance instances will be created.vthunder_tenant_username(required)The Openstack user login name which has access to the above-named service tenant.vthunder_tenant_passsword(required)The Openstack password of the above-mentioned login.vthunder_management_networks(required)The Openstack network name or ID that the vThunder management interface will be connected to.vthunder_data_networks(required)A list of Openstack network names or IDs that the vThunder data interfaces will be connected to.  A minimum of one is required.For complete documentation of the a10 config.py file, please refer to thesample config file.Essential device configurationhost(required)The ip address or host name of the A10 appliance. For a virtual chassis configuration, this should be the floating host or ip address of the master.port(default443)Port that the AXAPI is exposed onusernameandpassword(required)Authentication credentials to control the A10 appliance via the AXAPI.api_version(default"2.1")Version of the A10 appliance's AXAPI."2.1"for 2.X series ACOS versions,"3.0"for 4.X versions.vThunder License Manager ConfigurationThe A10 vThunder virtual load balancing appliance has a flexible system for licensing.  Below is a sample configuration for license management (stored in/etc/a10/config.py):license_manager={"hosts":[{"ip":"pdx.a10cloud.com","port":443},{"ip":"sfo.a10cloud.com","port":443},{"ip":"iad.a10cloud.com","port":443}],"serial":"SN0123456789ABCDEF","instance-name":"SCALING_INSTANCE","bandwidth-base":100,"interval":3,"use-mgmt-port":True}hosts(required)A list of host entries specifying the IP address or hostname and TCP port of licensing servers.serial(required)The serial number used for your vThunder appliancesinstance-name(required)The instance name attached to the license.bandwidth-base(required for Pay-As-You-Go licensing)The feature's bandwidth base measured in megabytes.interval(required for Pay-As-You-Go licensing)The feature's bandwidth allowance interval.1 - Monthly2 - Daily3 - Hourlyuse-mgmt-portThe appliance will use the management port for communicating with the licensing server if set to True.  By default, the appliance will use the use the first available interface for license server operations.More details about A10 Licensing can be found atTODO(Add licensing info url).Install database migrationsIf 'use_database' is enabled, after installing the package and after any
upgrades, run:a10-manage upgradeRestart necessary servicesRestart neutron after configuration updates (exact command may vary depending
on OpenStack packaging.)serviceneutron-serverrestartExample architecturesYou must configure the network elements of the Thunder appliance for OpenStack.SNAT:VLAN:Verifying installation (lbaas v1)Step 1:Login to the OpenStack dashboard.Step 2:Under the “Network” menu, go to the “Load Balancers” tab and select “Add Pool”:Once you have added a pool, a success message should appear.Step 3:Login to the GUI on your Thunder or AX device, and validate which configuration was applied if the ADPs are set. The ADP name is the first 13 characters of the tenant ID.Repeat this for all configuration steps, then delete all resources if ADPs are configured. They should be deleted when the tenant has no more resources configured.Default and Name-based configurationSeename-based config examplefor details.ChangesSeeCHANGELOGfor changes made. NOTE: We didn't have a changelog until 1.6.5A10 CommunityFeel free to fork, submit pull requests, or join us on freenode IRC, channel #a10-openstack. Serious support escalations and formal feature requests must
still go through standard A10 processes.ContributingFork itCreate your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create new Pull Request