KeepalivedLvs[source]¶Bases: octavia.amphorae.backends.agent.api_server.udp_listener_base.UdpListenerApiServerBase
delete_udp_listener(listener_id)[source]¶Delete a UDP 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_udp_listeners_status()[source]¶Gets the status of all UDP listeners
Gets the status of all UDP listeners on the amphora.
get_udp_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
BaseOS(os_name)[source]¶Bases: object
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
ETH_IFDOWN_LOCAL_SCRIPT = 'rh_plug_port_eth_ifdown_local.conf.j2'¶ETH_IFUP_LOCAL_SCRIPT = 'rh_plug_port_eth_ifup_local.conf.j2'¶ETH_X_ALIAS_VIP_CONF = 'rh_plug_vip_ethX_alias.conf.j2'¶ETH_X_PORT_CONF = 'rh_plug_port_ethX.conf.j2'¶ETH_X_VIP_CONF = 'rh_plug_vip_ethX.conf.j2'¶ROUTE_ETH_X_CONF = 'rh_route_ethX.conf.j2'¶RULE_ETH_X_CONF = 'rh_rule_ethX.conf.j2'¶write_port_interface_file(netns_interface, fixed_ips, mtu, interface_file_path=None, template_port=None)[source]¶UdpListenerApiServerBase[source]¶Bases: object
Base UDP Listener Server API
SERVER_INSTANCE = None¶delete_udp_listener(listener_id)[source]¶Delete a UDP 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_udp_listeners_status()[source]¶Gets the status of all UDP Listeners
This method will not consult the stats socket so a listener might show as ACTIVE but still be in ERROR
a list of UDP Listener status
Exception – If the listener pid located directory is not exist
get_udp_listener_config(listener_id)[source]¶Gets the UDP Listener configuration details
listener_id – the id of the UDP Listener
HTTP response with status code.
Exception – If the listener is failed to find.
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
get_protocol_for_lb_object(object_id)[source]¶Returns the L4 protocol for a listener.
If the listener is a TCP based listener (haproxy) return TCP. If the listener is a UDP based listener (lvs) return UDP. If the listener is not identifiable, return None.
listener_id – The ID of the listener to identify.
TCP, UDP, or None
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.