actionLoad Balancer

remove_fault_injection_traffic_policy

Remove any fault injection policy from url map on a given path

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosgcp.lb.actions
Nameremove_fault_injection_traffic_policy
Returnmapping

Usage

JSON

{
  "name": "remove-fault-injection-traffic-policy",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.lb.actions",
    "func": "remove_fault_injection_traffic_policy",
    "arguments": {
      "url_map": "",
      "target_name": "",
      "target_path": ""
    }
  }
}

YAML

name: remove-fault-injection-traffic-policy
provider:
  arguments:
    target_name: ''
    target_path: ''
    url_map: ''
  func: remove_fault_injection_traffic_policy
  module: chaosgcp.lb.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
url_mapstringYesURL Map NameName of the URL map to remove the fault from
target_namestringYesPath Matcher NameName of the patch matcher to remove the fault from
target_pathstringYesPathPath impacted with the fault

This does not work with classic load balancer. Note also the fault may take a couple of minutes to propagated through GCP infrastructure and may not be immediatly on.

See: https://cloud.google.com/load-balancing/docs/l7-internal/setting-up-traffic-management#configure_fault_injection

Signature

def remove_fault_injection_traffic_policy(
        url_map: str,
        target_name: str,
        target_path: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass