1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
|
%global _empty_manifest_terminate_build 0
Name: python-a10-neutron-lbaas
Version: 1.8.1
Release: 1
Summary: A10 Networks Openstack LBaaS Driver Middleware
License: Apache
URL: https://github.com/a10networks/a10-neutron-lbaas
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/67/8c5550db6543ef985ab4ae59cbdab312eadc27af27bb6639381ecde590cc/a10-neutron-lbaas-1.8.1.tar.gz
BuildArch: noarch
Requires: python3-acos-client
Requires: python3-a10-openstack-lib
%description
A10 Networks LBaaS Driver for Thunder, vThunder and AX Series Appliances
Supported releases:
* OpenStack: Liberty through current release.
* LBaaS versions: v2
* ACOS 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/master
Unsupported, but may work with minor tweaking:
* OpenStack: v1 on any release, v2 Havana through Kilo
## A10 github repos
- [a10-neutron-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/acos-client) - AxAPI client used by A10's OpenStack driver
- [a10-openstack-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/a10-openstack-lbaas/tree/havana) - OpenStack
LBaaS driver, for the Havana release. Pypi package 'a10-openstack-lbaas-havana'.
- [a10networks-ci/project-config](https://github.com/a10networks-ci/project-config) - A10 Networks OpenStack third-party CI setup scripts
## Implementation:

## 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 pypi
```sh
sudo pip install a10-neutron-lbaas
```
#### Installation from cloned git repository.
Download the driver from: <https://github.com/a10networks/a10-neutron-lbaas>

```sh
sudo pip install git+https://github.com/a10networks/a10-neutron-lbaas.git
```
```sh
git clone https://github.com/a10networks/a10-neutron-lbaas.git
cd a10-neutron-lbaas
sudo pip install -e .
```
## Configuration
Post-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 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaas` or `lbaasv2` is listed depending on your configuration.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCER:A10Networks:neutron_lbaas.services.loadbalancer.drivers.a10networks.driver_v1.ThunderDriver:default`
Save and close neutron.conf
### LBaaS v2 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaasv2` is listed.
Save and close neutron.conf.
Open `/etc/neutron/neutron_lbaas.conf` in your preferred text editor.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCERV2:A10Networks:neutron_lbaas.drivers.a10networks.driver_v2.ThunderDriver:default`
#### Extension configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `a10_neutron_lbaas.neutron_ext.services.a10_device_instance.plugin.A10DeviceInstancePlugin` is listed. The `service_plugins` are separated by `,`s.
Under the `api_extensions_path` setting, ensure the path to `a10_neutron_lbaas.neutron_ext.extensions` is listed. The `api_extensions_path`s are separated by `:`s. You can find the path of the installed extension by running `python -c "import os; import a10_neutron_lbaas.neutron_ext.extensions as m; print(os.path.dirname(os.path.abspath(m.__file__)))"`.
#### Device configuration
After 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:
```python
devices = {
"ax1": {
"name": "ax1",
"host": "10.10.100.20",
"port": 443,
"username": "admin",
"password": "a10",
"autosnat": True,
"api_version": "3.0",
}
}
```
#### vThunder Appliance Configuration
A10's LBaaS driver supports a default scheduling strategy of "one appliance per tenant". Below is a sample configuration (stored in `/etc/a10/config.py`):
```python
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.x
* CPU: 1 VCPU
* RAM: 2GB
* Storage: 12GB
###### 4.x.x
* CPU: 1 VCPU
* RAM: 4GB
* Storage: 12GB
##### `glance_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 the [sample config file](https://github.com/a10networks/a10-neutron-lbaas/blob/master/a10_neutron_lbaas/etc/config.py).
#### Essential device configuration
###### `host` (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` (default `443`)
Port that the AXAPI is exposed on
###### `username` and `password` (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 Configuration
The 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`):
```python
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 appliances
##### `instance-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 - Monthly
* 2 - Daily
* 3 - Hourly
##### `use-mgmt-port`
The 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 at `TODO(Add licensing info url)`.
## Install database migrations
If 'use_database' is enabled, after installing the package and after any
upgrades, run:
```
a10-manage upgrade
```
## Restart necessary services
Restart neutron after configuration updates (exact command may vary depending
on OpenStack packaging.)
```sh
service neutron-server restart
```
## Example architectures
You 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 configuration
See [name-based config example](https://github.com/a10networks/a10-neutron-lbaas/tree/master/a10_neutron_lbaas/etc) for details.
## Changes
See [CHANGELOG](https://github.com/a10networks/a10-neutron-lbaas/tree/master/CHANGELOG) for changes made. NOTE: We didn't have a changelog until 1.6.5
## A10 Community
Feel 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.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
%package -n python3-a10-neutron-lbaas
Summary: A10 Networks Openstack LBaaS Driver Middleware
Provides: python-a10-neutron-lbaas
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-a10-neutron-lbaas
A10 Networks LBaaS Driver for Thunder, vThunder and AX Series Appliances
Supported releases:
* OpenStack: Liberty through current release.
* LBaaS versions: v2
* ACOS 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/master
Unsupported, but may work with minor tweaking:
* OpenStack: v1 on any release, v2 Havana through Kilo
## A10 github repos
- [a10-neutron-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/acos-client) - AxAPI client used by A10's OpenStack driver
- [a10-openstack-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/a10-openstack-lbaas/tree/havana) - OpenStack
LBaaS driver, for the Havana release. Pypi package 'a10-openstack-lbaas-havana'.
- [a10networks-ci/project-config](https://github.com/a10networks-ci/project-config) - A10 Networks OpenStack third-party CI setup scripts
## Implementation:

## 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 pypi
```sh
sudo pip install a10-neutron-lbaas
```
#### Installation from cloned git repository.
Download the driver from: <https://github.com/a10networks/a10-neutron-lbaas>

```sh
sudo pip install git+https://github.com/a10networks/a10-neutron-lbaas.git
```
```sh
git clone https://github.com/a10networks/a10-neutron-lbaas.git
cd a10-neutron-lbaas
sudo pip install -e .
```
## Configuration
Post-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 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaas` or `lbaasv2` is listed depending on your configuration.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCER:A10Networks:neutron_lbaas.services.loadbalancer.drivers.a10networks.driver_v1.ThunderDriver:default`
Save and close neutron.conf
### LBaaS v2 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaasv2` is listed.
Save and close neutron.conf.
Open `/etc/neutron/neutron_lbaas.conf` in your preferred text editor.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCERV2:A10Networks:neutron_lbaas.drivers.a10networks.driver_v2.ThunderDriver:default`
#### Extension configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `a10_neutron_lbaas.neutron_ext.services.a10_device_instance.plugin.A10DeviceInstancePlugin` is listed. The `service_plugins` are separated by `,`s.
Under the `api_extensions_path` setting, ensure the path to `a10_neutron_lbaas.neutron_ext.extensions` is listed. The `api_extensions_path`s are separated by `:`s. You can find the path of the installed extension by running `python -c "import os; import a10_neutron_lbaas.neutron_ext.extensions as m; print(os.path.dirname(os.path.abspath(m.__file__)))"`.
#### Device configuration
After 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:
```python
devices = {
"ax1": {
"name": "ax1",
"host": "10.10.100.20",
"port": 443,
"username": "admin",
"password": "a10",
"autosnat": True,
"api_version": "3.0",
}
}
```
#### vThunder Appliance Configuration
A10's LBaaS driver supports a default scheduling strategy of "one appliance per tenant". Below is a sample configuration (stored in `/etc/a10/config.py`):
```python
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.x
* CPU: 1 VCPU
* RAM: 2GB
* Storage: 12GB
###### 4.x.x
* CPU: 1 VCPU
* RAM: 4GB
* Storage: 12GB
##### `glance_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 the [sample config file](https://github.com/a10networks/a10-neutron-lbaas/blob/master/a10_neutron_lbaas/etc/config.py).
#### Essential device configuration
###### `host` (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` (default `443`)
Port that the AXAPI is exposed on
###### `username` and `password` (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 Configuration
The 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`):
```python
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 appliances
##### `instance-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 - Monthly
* 2 - Daily
* 3 - Hourly
##### `use-mgmt-port`
The 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 at `TODO(Add licensing info url)`.
## Install database migrations
If 'use_database' is enabled, after installing the package and after any
upgrades, run:
```
a10-manage upgrade
```
## Restart necessary services
Restart neutron after configuration updates (exact command may vary depending
on OpenStack packaging.)
```sh
service neutron-server restart
```
## Example architectures
You 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 configuration
See [name-based config example](https://github.com/a10networks/a10-neutron-lbaas/tree/master/a10_neutron_lbaas/etc) for details.
## Changes
See [CHANGELOG](https://github.com/a10networks/a10-neutron-lbaas/tree/master/CHANGELOG) for changes made. NOTE: We didn't have a changelog until 1.6.5
## A10 Community
Feel 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.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
%package help
Summary: Development documents and examples for a10-neutron-lbaas
Provides: python3-a10-neutron-lbaas-doc
%description help
A10 Networks LBaaS Driver for Thunder, vThunder and AX Series Appliances
Supported releases:
* OpenStack: Liberty through current release.
* LBaaS versions: v2
* ACOS 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/master
Unsupported, but may work with minor tweaking:
* OpenStack: v1 on any release, v2 Havana through Kilo
## A10 github repos
- [a10-neutron-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/acos-client) - AxAPI client used by A10's OpenStack driver
- [a10-openstack-lbaas](https://github.com/a10networks/a10-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](https://github.com/a10networks/a10-openstack-lbaas/tree/havana) - OpenStack
LBaaS driver, for the Havana release. Pypi package 'a10-openstack-lbaas-havana'.
- [a10networks-ci/project-config](https://github.com/a10networks-ci/project-config) - A10 Networks OpenStack third-party CI setup scripts
## Implementation:

## 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 pypi
```sh
sudo pip install a10-neutron-lbaas
```
#### Installation from cloned git repository.
Download the driver from: <https://github.com/a10networks/a10-neutron-lbaas>

```sh
sudo pip install git+https://github.com/a10networks/a10-neutron-lbaas.git
```
```sh
git clone https://github.com/a10networks/a10-neutron-lbaas.git
cd a10-neutron-lbaas
sudo pip install -e .
```
## Configuration
Post-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 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaas` or `lbaasv2` is listed depending on your configuration.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCER:A10Networks:neutron_lbaas.services.loadbalancer.drivers.a10networks.driver_v1.ThunderDriver:default`
Save and close neutron.conf
### LBaaS v2 configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `lbaasv2` is listed.
Save and close neutron.conf.
Open `/etc/neutron/neutron_lbaas.conf` in your preferred text editor.
In the list of `service_provider` settings, add a service provider for A10
Networks:
`service_provider = LOADBALANCERV2:A10Networks:neutron_lbaas.drivers.a10networks.driver_v2.ThunderDriver:default`
#### Extension configuration
Open `/etc/neutron/neutron.conf` in your preferred text editor.
Under the `service_plugins` setting, ensure `a10_neutron_lbaas.neutron_ext.services.a10_device_instance.plugin.A10DeviceInstancePlugin` is listed. The `service_plugins` are separated by `,`s.
Under the `api_extensions_path` setting, ensure the path to `a10_neutron_lbaas.neutron_ext.extensions` is listed. The `api_extensions_path`s are separated by `:`s. You can find the path of the installed extension by running `python -c "import os; import a10_neutron_lbaas.neutron_ext.extensions as m; print(os.path.dirname(os.path.abspath(m.__file__)))"`.
#### Device configuration
After 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:
```python
devices = {
"ax1": {
"name": "ax1",
"host": "10.10.100.20",
"port": 443,
"username": "admin",
"password": "a10",
"autosnat": True,
"api_version": "3.0",
}
}
```
#### vThunder Appliance Configuration
A10's LBaaS driver supports a default scheduling strategy of "one appliance per tenant". Below is a sample configuration (stored in `/etc/a10/config.py`):
```python
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.x
* CPU: 1 VCPU
* RAM: 2GB
* Storage: 12GB
###### 4.x.x
* CPU: 1 VCPU
* RAM: 4GB
* Storage: 12GB
##### `glance_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 the [sample config file](https://github.com/a10networks/a10-neutron-lbaas/blob/master/a10_neutron_lbaas/etc/config.py).
#### Essential device configuration
###### `host` (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` (default `443`)
Port that the AXAPI is exposed on
###### `username` and `password` (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 Configuration
The 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`):
```python
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 appliances
##### `instance-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 - Monthly
* 2 - Daily
* 3 - Hourly
##### `use-mgmt-port`
The 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 at `TODO(Add licensing info url)`.
## Install database migrations
If 'use_database' is enabled, after installing the package and after any
upgrades, run:
```
a10-manage upgrade
```
## Restart necessary services
Restart neutron after configuration updates (exact command may vary depending
on OpenStack packaging.)
```sh
service neutron-server restart
```
## Example architectures
You 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 configuration
See [name-based config example](https://github.com/a10networks/a10-neutron-lbaas/tree/master/a10_neutron_lbaas/etc) for details.
## Changes
See [CHANGELOG](https://github.com/a10networks/a10-neutron-lbaas/tree/master/CHANGELOG) for changes made. NOTE: We didn't have a changelog until 1.6.5
## A10 Community
Feel 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.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
%prep
%autosetup -n a10-neutron-lbaas-1.8.1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-a10-neutron-lbaas -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.1-1
- Package Spec generated
|