aws / amazon-ecs-agent

Amazon Elastic Container Service Agent
http://aws.amazon.com/ecs/
Apache License 2.0
2.08k stars 613 forks source link

log the resources not consumable by a task #4328

Closed singholt closed 2 months ago

singholt commented 2 months ago

Summary

This PR adds a log statement to host resource manager, that logs the resources that are not consumable by an incoming task. This is a follow-up to #4269 (external contribution). I updated the unit tests to reflect the change.

Closes https://github.com/aws/amazon-ecs-agent/issues/4268

Implementation details

Adds the key of the resources that were unable to be consumed, to the log message.

Testing

New tests cover the changes: yes

Description for the changelog

Enhancement: Add resources to the log message "Resources not consumed, enough resources not available"

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

no **Does this PR include the addition of new environment variables in the README?**

no

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.