KeepalivedLvs
[source]¶Bases: octavia.amphorae.backends.agent.api_server.lvs_listener_base.LvsListenerApiServerBase
delete_lvs_listener
(listener_id)[source]¶Delete a LVS Listener from a amphora
listener_id – The id of the listener
HTTP response with status code.
Exception – If unsupport initial system of amphora.
get_all_lvs_listeners_status
()[source]¶Gets the status of all UDP listeners
Gets the status of all UDP listeners on the amphora.
get_lvs_listener_config
(listener_id)[source]¶Gets the keepalivedlvs config
listener_id – the id of the listener
Loadbalancer
[source]¶Bases: object
get_all_listeners_status
(other_listeners=None)[source]¶Gets the status of all listeners
This method will not consult the stats socket so a listener might show as ACTIVE but still be in ERROR
Currently type==SSL is also not detected
LvsListenerApiServerBase
[source]¶Bases: object
Base LVS Listener Server API
delete_lvs_listener
(listener_id)[source]¶Delete a LVS Listener from a amphora
listener_id – The id of the listener
HTTP response with status code.
Exception – If unsupport initial system of amphora.
get_all_lvs_listeners_status
()[source]¶Gets the status of all LVS Listeners
This method will not consult the stats socket so a listener might show as ACTIVE but still be in ERROR
a list of LVS Listener status
Exception – If the listener pid located directory is not exist
get_lvs_listener_config
(listener_id)[source]¶Gets the LVS Listener configuration details
listener_id – the id of the LVS Listener
HTTP response with status code.
Exception – If the listener is failed to find.
CentOS
(os_name)[source]¶Bases: octavia.amphorae.backends.agent.api_server.osutils.RH
RH
(os_name)[source]¶Bases: octavia.amphorae.backends.agent.api_server.osutils.BaseOS
get_backend_for_lb_object
(object_id)[source]¶Returns the backend for a listener.
If the listener is a TCP based listener return ‘HAPROXY’. If the listener is a UDP or SCTP based listener return ‘LVS’ If the listener is not identifiable, return None.
listener_id – The ID of the listener to identify.
HAPROXY_BACKEND, LVS_BACKEND or None
get_haproxy_vip_addresses
(lb_id)[source]¶Get the VIP addresses for a load balancer.
lb_id – The load balancer ID to get VIP addresses from.
List of VIP addresses (IPv4 and IPv6)
get_listeners
()[source]¶Get Listeners
An array with the ids of all listeners, e.g. [‘123’, ‘456’, …] or [] if no listeners exist
get_loadbalancers
()[source]¶Get Load balancers
An array with the uuids of all load balancers, e.g. [‘123’, ‘456’, …] or [] if no loadbalancers exist
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.