hystax / optscale

FinOps, MLOps and cloud cost optimization tool. Supports AWS, Azure, GCP, Alibaba Cloud and Kubernetes.
https://hystax.com
Apache License 2.0
1.18k stars 165 forks source link

Add account in logs #237

Closed tguisep closed 5 months ago

tguisep commented 5 months ago

Hello,

I have some access issues during the processing of recommandation.

Typical logs:

Recommendations module obsolete_images (organization_id xxxxxxxxxxxxxxxxxxxx) completed in 13.58 seconds
Error while processing obsolete_images (recommendations) for organization xxxxxxxxxxxxxxxxxxxx, failing back to previous result. Reason - An error occurred (AuthFailure) when calling the DescribeRegions operation: AWS was not able to validate the provided access credentials
Traceback (most recent call last):
  File "/usr/src/app/bumiworker/bumiworker/modules/base.py", line 366, in get
    module_res = self._get()

It would be helpful to also get the account with the issue, not just the organization.

Thomas.

nk-hystax commented 5 months ago

Hi! Thanks for issue, will work on it.

maxb-hystax commented 5 months ago

Hi Thomas! We've extended logs in bumi with https://github.com/hystax/optscale/commit/7be6aa65c1f13e0595428208b749da9f696c71c7 Thanks again for the request.