NoopAmphoraLoadBalancerDriver
[source]¶Bases: octavia.amphorae.drivers.driver_base.AmphoraLoadBalancerDriver
, octavia.amphorae.drivers.driver_base.VRRPDriverMixin
delete
(listener, vip)[source]¶Delete the listener on the vip.
Parameters: |
|
---|---|
Returns: | return a value list (listener, vip, status flag–delete) |
At this moment, we just build the basic structure for testing, will add more function along with the development.
finalize_amphora
(amphora)[source]¶Finalize the amphora before any listeners are configured.
Parameters: | amphora (object) – amphora object, need to use its id property |
---|---|
Returns: | None |
At this moment, we just build the basic structure for testing, will add more function along with the development. This is a hook for drivers who need to do additional work before an amphora becomes ready to accept listeners. Please keep in mind that amphora might be kept in an offline pool after this call.
get_diagnostics
(amphora)[source]¶Return ceilometer ready diagnostic data.
Parameters: | amphora (object) – amphora object, need to use its id property |
---|---|
Returns: | return a value list (amphora.id, status flag–’ge t_diagnostics’) |
At this moment, we just build the basic structure for testing, will add more function along with the development, eventually, we want it run some expensive self tests to determine if the amphora and the lbs are healthy the idea is that those tests are triggered more infrequent than the health gathering.
get_info
(amphora)[source]¶Returns information about the amphora.
Parameters: | amphora (object) – amphora object, need to use its id property |
---|---|
Returns: | return a value list (amphora.id, status flag–’info’) |
At this moment, we just build the basic structure for testing, will add more function along with the development, eventually, we want it to return information as: {“Rest Interface”: “1.0”, “Amphorae”: “1.0”, “packages”:{“ha proxy”:”1.5”}} some information might come from querying the amphora
get_vrrp_interface
(amphora)[source]¶Get the VRRP interface object for a specific amphora
Parameters: | amphora – amphora object |
---|
post_network_plug
(amphora, port)[source]¶Called after amphora added to network
Parameters: |
|
---|
This method is optional to implement. After adding an amphora to a network, there may be steps necessary on the amphora to allow it to access said network. Ex: creating an interface on an amphora for a neutron network to utilize.
post_vip_plug
(amphora, load_balancer, amphorae_network_config)[source]¶Called after network driver has allocated and plugged the VIP
Parameters: |
|
---|---|
Returns: | None |
This is to do any additional work needed on the amphorae to plug the vip, such as bring up interfaces.
reload_vrrp_service
(loadbalancer)[source]¶Reload the VRRP services of all amphorae of the loadbalancer
Parameters: | loadbalancer – loadbalancer object |
---|
start
(listener, vip)[source]¶Start the listener on the vip.
Parameters: |
|
---|---|
Returns: | return a value list (listener, vip, status flag–enable) |
At this moment, we just build the basic structure for testing, will add more function along with the development.
start_vrrp_service
(loadbalancer)[source]¶Start the VRRP services of all amphorae of the loadbalancer
Parameters: | loadbalancer – loadbalancer object |
---|
stop
(listener, vip)[source]¶Stop the listener on the vip.
Parameters: |
|
---|---|
Returns: | return a value list (listener, vip, status flag–suspend) |
At this moment, we just build the basic structure for testing, will add more function along with the development.
stop_vrrp_service
(loadbalancer)[source]¶Stop the vrrp services running on the loadbalancer’s amphorae
Parameters: | loadbalancer – loadbalancer object |
---|
update
(listener, vip)[source]¶Update the amphora with a new configuration.
Parameters: |
|
---|---|
Returns: | None |
At this moment, we just build the basic structure for testing, will add more function along with the development.
update_amphora_listeners
(listeners, amphora_id, timeout_dict)[source]¶Update the amphora with a new configuration.
Parameters: |
|
---|---|
Returns: | None |
Builds a new configuration, pushes it to the amphora, and reloads the listener on one amphora.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.