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
2024-05-15 15:57:40,605: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1436, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1180, in rest_key_extractor
return working_data.get(key)
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/policy.py", line 330, in run
resources = self.policy.resource_manager.resources()
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/query.py", line 294, in resources
resources = self.filter_resources(resources)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/manager.py", line 112, in filter_resources
resources = f.process(resources, event)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 174, in process
processed = list(w.map(self.process_resource, resources))
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
yield _result_or_cancel(fs.pop())
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
return fut.result(timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
returnself.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 247, in process_resource
return resource if self.passes_op_filter(resource) else None
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 240, in passes_op_filter
m_data = self.get_metric_data(resource)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 182, in get_metric_data
metrics_data = self.client.metrics.list(
File "/home/krishna/.local/lib/python3.10/site-packages/azure/mgmt/monitor/v2018_01_01/operations/_metrics_operations.py", line 151, in list
error = self._deserialize(_models.ErrorResponse, response)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1376, in __call__
return self._deserialize(target_obj, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1454, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1436, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1180, in rest_key_extractor
return working_data.get(key)
azure.core.exceptions.DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))
2024-05-15 15:57:40,613: custodian.commands:ERROR Error while executing policy filter-vms-low-memory-utilization, continuing
Traceback (most recent call last):
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1436, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1180, in rest_key_extractor
return working_data.get(key)
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/commands.py", line 307, in run
policy()
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/policy.py", line 1357, in __call__
resources = mode.run()
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/policy.py", line 330, in run
resources = self.policy.resource_manager.resources()
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/query.py", line 294, in resources
resources = self.filter_resources(resources)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n/manager.py", line 112, in filter_resources
resources = f.process(resources, event)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 174, in process
processed = list(w.map(self.process_resource, resources))
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
yield _result_or_cancel(fs.pop())
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
return fut.result(timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
returnself.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 247, in process_resource
return resource if self.passes_op_filter(resource) else None
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 240, in passes_op_filter
m_data = self.get_metric_data(resource)
File "/home/krishna/.local/lib/python3.10/site-packages/c7n_azure/filters.py", line 182, in get_metric_data
metrics_data = self.client.metrics.list(
File "/home/krishna/.local/lib/python3.10/site-packages/azure/mgmt/monitor/v2018_01_01/operations/_metrics_operations.py", line 151, in list
error = self._deserialize(_models.ErrorResponse, response)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1376, in __call__
return self._deserialize(target_obj, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1454, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1436, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "/home/krishna/.local/lib/python3.10/site-packages/msrest/serialization.py", line 1180, in rest_key_extractor
return working_data.get(key)
azure.core.exceptions.DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))
2024-05-15 15:57:40,615: custodian.commands:ERROR The following policies had errors while executing
- filter-vms-low-memory-utilization
Extra information or context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Resources are not being filtered though the resources met the conditions given.
What did you expect to happen?
Resources need to get filtered based on the memory utilisation
Cloud Provider
Microsoft Azure
Cloud Custodian version and dependency information
Policy
Relevant log/traceback output
Extra information or context
No response
The text was updated successfully, but these errors were encountered: