You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to use gcp.loadbalancer-address as one of my rule, it is bringing list of all ip's dnsfwrd, private, public etc.
And when I tried to run delete action against this rule using c7n-org, it is showing error "“A DNS_FORWARDING address must be deleted through Cloud DNS.">"
What did you expect to happen?
I expected it should be deleted if reported, else it should not be listed.
Cloud Provider
Google Cloud (GCP)
Cloud Custodian version and dependency information
policies:
- name: gcp-delete-noncompliant-ipaddress
resource: gcp.loadbalancer-address
mode:
type: gcp-periodic
schedule: "0 5/12 * * *"# Every twelve hours starting from 5 AM
service-account: "xx"
target-type: pubsub
pubsub_topic: xx
filters:
- or:
- "tag:owner": absent
- "tag:project": absent
- "tag:expiration": absent
- "tag:costcenter": absent
actions:
- type: delete
- type: notify
subject: "DRY-RUN: Policy Report: Delete GCP IP address with missing tags on {{ account }} ({{ account_id }}) - {{ region }}"
to:
- xx.com
transport:
type: pubsub
topic: "{pubsub_topic}"
Relevant log/traceback output
Error while executing policy Traceback (most recent call last): File "/workspace/c7n/policy.py", line 317, in run results = a.process(resources) File "/workspace/c7n_gcp/actions/core.py", line 65, in process self.process_resource_set(client, model, resource_set) File "/workspace/c7n_gcp/actions/core.py", line 73, in process_resource_set result = self.invoke_api(client, op_name, params) File "/workspace/c7n_gcp/actions/core.py", line 79, in invoke_api return client.execute_command(op_name, params) File "/workspace/c7n_gcp/client.py", line 400, in execute_command return self._execute(request) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/retrying.py", line 49, in wrapped_f return Retrying(*dargs, **dkw).call(f, *args, **kw) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/retrying.py", line 206, in call return attempt.get(self._wrap_exception) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/retrying.py", line 247, in get six.reraise(self.value[0], self.value[1], self.value[2]) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/six.py", line 719, in reraise raise value File "/layers/google.python.pip/pip/lib/python3.7/site-packages/retrying.py", line 200, in call attempt = Attempt(fn(*args, **kwargs), attempt_number, False) File "/workspace/c7n_gcp/client.py", line 490, in _execute num_retries=self._num_retries) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper return wrapped(*args, **kwargs) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/googleapiclient/http.py", line 915, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://compute.googleapis.com/compute/v1/projects/xx/regions/us-central1/addresses/dns-forwardingxx?alt=json returned "A DNS_FORWARDING address must be deleted through Cloud DNS.". Details: "A DNS_FORWARDING address must be deleted through Cloud DNS.">
Extra information or context
Command running:
c7n-org run -c config.yaml -u rules/delete-noncompliant-ipaddress.yaml -s output
The text was updated successfully, but these errors were encountered:
Describe the bug
When I tried to use gcp.loadbalancer-address as one of my rule, it is bringing list of all ip's dnsfwrd, private, public etc.
And when I tried to run delete action against this rule using c7n-org, it is showing error "“A DNS_FORWARDING address must be deleted through Cloud DNS.">"
What did you expect to happen?
I expected it should be deleted if reported, else it should not be listed.
Cloud Provider
Google Cloud (GCP)
Cloud Custodian version and dependency information
Policy
Relevant log/traceback output
Extra information or context
Command running:
c7n-org run -c config.yaml -u rules/delete-noncompliant-ipaddress.yaml -s output
The text was updated successfully, but these errors were encountered: