Methods common to the controller work tasks.
TaskUtils
(**kwargs)[source]¶Bases: object
Class of helper/utility methods used by tasks.
get_current_loadbalancer_from_db
(loadbalancer_id)[source]¶Gets a Loadbalancer from db.
loadbalancer_id: Load balancer ID which to get from db
mark_amphora_status_error
(amphora_id)[source]¶Sets an amphora status to ERROR.
NOTE: This should only be called from revert methods.
amphora_id – Amphora ID to set the status to ERROR
mark_health_mon_prov_status_error
(health_mon_id)[source]¶Sets a health monitor provisioning status to ERROR.
NOTE: This should only be called from revert methods.
health_mon_id – Health Monitor ID to set prov status to ERROR
mark_l7policy_prov_status_active
(l7policy_id)[source]¶Sets a L7 policy provisioning status to ACTIVE.
NOTE: This should only be called from revert methods.
l7policy_id – L7 Policy ID to set provisioning status to ACTIVE
mark_l7policy_prov_status_error
(l7policy_id)[source]¶Sets a L7 policy provisioning status to ERROR.
NOTE: This should only be called from revert methods.
l7policy_id – L7 Policy ID to set provisioning status to ERROR
mark_l7rule_prov_status_error
(l7rule_id)[source]¶Sets a L7 rule provisioning status to ERROR.
NOTE: This should only be called from revert methods.
l7rule_id – L7 Rule ID to set provisioning status to ERROR
mark_listener_prov_status_active
(listener_id)[source]¶Sets a listener provisioning status to ACTIVE.
NOTE: This should only be called from revert methods.
listener_id – Listener ID to set provisioning status to ACTIVE
mark_listener_prov_status_error
(listener_id)[source]¶Sets a listener provisioning status to ERROR.
NOTE: This should only be called from revert methods.
listener_id – Listener ID to set provisioning status to ERROR
mark_loadbalancer_prov_status_active
(loadbalancer_id)[source]¶Sets a load balancer provisioning status to ACTIVE.
NOTE: This should only be called from revert methods.
loadbalancer_id – Load balancer ID to set provisioning status to ACTIVE
mark_loadbalancer_prov_status_error
(loadbalancer_id)[source]¶Sets a load balancer provisioning status to ERROR.
NOTE: This should only be called from revert methods.
loadbalancer_id – Load balancer ID to set provisioning status to ERROR
mark_member_prov_status_error
(member_id)[source]¶Sets a member provisioning status to ERROR.
NOTE: This should only be called from revert methods.
member_id – Member ID to set provisioning status to ERROR
mark_pool_prov_status_active
(pool_id)[source]¶Sets a pool provisioning status to ACTIVE.
NOTE: This should only be called from revert methods.
pool_id – Pool ID to set provisioning status to ACTIVE
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.