-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecs_service cannot handle distinctInstance Placement Constraint #1058
Comments
Files identified in the description:
If these files are inaccurate, please update the |
@superwesman
But that's not valid. The parameter is set to A possible fix might be easy. All what's to do is to pop
@superwesman are you willing to provide a PR to fix this issue? |
hello @markuman - Unfortunately, I don't think I'm in a position to provide a PR. I've discovered this bug at work and the exact corporate policies related to open source development are many, and not clear to me. I hope that my input is at least helpful for anyone who does have capacity to implement. I'm sorry I can't do more at the moment. |
That would be awesome @novak-as
just a few days left until we're going to release 3.3.0. But I think we can made it. |
ecs_service - fix validation for `placementConstraints` SUMMARY Fixes #1058 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ecs_service Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Oleksandr Novak <[email protected]> Reviewed-by: Alina Buzachis <None>
ecs_service - fix validation for `placementConstraints` SUMMARY Fixes #1058 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ecs_service Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Oleksandr Novak <[email protected]> Reviewed-by: Alina Buzachis <None> (cherry picked from commit 688c7e8)
ecs_service - fix validation for `placementConstraints` SUMMARY Fixes #1058 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ecs_service Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Oleksandr Novak <[email protected]> Reviewed-by: Alina Buzachis <None> (cherry picked from commit 688c7e8)
[PR #1170/688c7e89 backport][stable-3] ecs_service - fix validation for `placementConstraints` This is a backport of PR #1170 as merged into main (688c7e8). SUMMARY Fixes #1058 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ecs_service Reviewed-by: Markus Bergholz <[email protected]>
[PR #1170/688c7e89 backport][stable-2] ecs_service - fix validation for `placementConstraints` This is a backport of PR #1170 as merged into main (688c7e8). SUMMARY Fixes #1058 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ecs_service Reviewed-by: Markus Bergholz <[email protected]>
…e_rds_subnet_group Migrate rds_subnet_group* modules and tests Depends-On: ansible/zuul-config#445 Migrate rds_subnet_group* modules and tests
Summary
Most Placement Constraint options have both a
type
and anexpression
. You can see this isecs_service.py
main()
...However, the
distinctInstance
Placement Constraint does not require anexpression.
The bug here is that the above code effectively mandates thatexpression
is required. If it is omitted from the playbook, we end up with the value beingNone
which I was able to capture by modifying the code ....The presence of
expression
here, even with the value ofNone
, yields the following error:I've confirmed that
boto
supports this just fine ...The bug appears to be in
ecs_service.py
during the create service path of execution.Issue Type
Bug Report
Component Name
ecs_service
Ansible Version
Collection Versions
AWS SDK versions
We do a lot of our ansible stuff from with virtual envs and docker containers. I don't happen to have
boto
installed, but don't let that be a distraction. The bug here is inecs_service.py
.Configuration
$ ansible-config dump --only-changed
I ran this and it produced no output
OS / Environment
Steps to Reproduce
Run
ansible-playbook ./this.yml
to reproduce the error.Notes:
distinctInstance
Placement Constraint, it will be retained.distinctInstance
Placement Constraint, it will not be added.Expected Results
distinctInstance
Placement Strategy in my Ansible playbook, regardless of the state of the ECS Service.distinctInstance
Placement Strategy defined in the playbok should be applied to the ECS Service in question.Actual Results
ansible-playbook
generates an error and fails. No ECS Service is created.distinctInstance
Placement Strategy, this Placement Strategy is retained.distinctInstance
Placement Strategy, this Placement Strategy (which is supplied in the playbook) is not applied to the ECS Service.Code of Conduct
The text was updated successfully, but these errors were encountered: