-
Notifications
You must be signed in to change notification settings - Fork 396
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
ec2_placement_group: Add partition strategy and partition count #872
ec2_placement_group: Add partition strategy and partition count #872
Conversation
Build failed.
|
Build succeeded.
|
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mandar242 Thank you for working on this. Could you also add some integration tests for this parameter? Thanks.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mandar242 This looks great but we'll need some integration tests for this parameter.
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
0342db6
to
1bb84e1
Compare
This comment has been minimized.
This comment has been minimized.
Build succeeded.
|
tests/integration/targets/ec2_placement_group/defaults/main.yml
Outdated
Show resolved
Hide resolved
- pg_2_create is changed | ||
- pg_2_create.placement_group.name == '{{ resource_prefix }}-pg2' | ||
- pg_2_create.placement_group.state == "available" | ||
- '"ec2:CreatePlacementGroup" in pg_2_create.resource_actions' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I n my opinion, you can remove all the statements similar to this - '"ec2:CreatePlacementGroup" in pg_2_create.resource_actions'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alinabuzachis I think it can be a decent additional check to make sure resource action took place. But if it could cause any unnecessary issues in future that I might be missing, I'd be fine with removing them as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's keep then.
Build succeeded (third-party-check pipeline).
|
Build succeeded (third-party-check pipeline).
|
Build succeeded.
|
- pg_2_create is changed | ||
- pg_2_create.placement_group.name == '{{ resource_prefix }}-pg2' | ||
- pg_2_create.placement_group.state == "available" | ||
- '"ec2:CreatePlacementGroup" in pg_2_create.resource_actions' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's keep then.
Build succeeded (gate pipeline).
|
Backport to stable-3: 💚 backport PR created✅ Backport PR branch: Backported as #928 🤖 @patchback |
ec2_placement_group: Add partition strategy and partition count SUMMARY Add partition as a strategy and an option, partition_count to choose the actual number of partitions for the community.aws.ec2_placement_group module. Fixes #808 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_placement_group ADDITIONAL INFO Tested locally with - name: Create a partition placement group with partition count 4. ec2_placement_group: name: my-cluster state: present strategy: partition partition_count: 4 Reviewed-by: Alina Buzachis <None> Reviewed-by: Mandar Kulkarni <mandar242@gmail.com> Reviewed-by: Mark Woolley <mw@marknet15.com> (cherry picked from commit 716ae77)
#928) [PR #872/716ae77f backport][stable-3] ec2_placement_group: Add partition strategy and partition count This is a backport of PR #872 as merged into main (716ae77). SUMMARY Add partition as a strategy and an option, partition_count to choose the actual number of partitions for the community.aws.ec2_placement_group module. Fixes #808 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_placement_group ADDITIONAL INFO Tested locally with - name: Create a partition placement group with partition count 4. ec2_placement_group: name: my-cluster state: present strategy: partition partition_count: 4
SUMMARY
Add
partition
as a strategy and an option,partition_count
to choose the actual number of partitions for the community.aws.ec2_placement_group module.Fixes #808
ISSUE TYPE
COMPONENT NAME
ec2_placement_group
ADDITIONAL INFO
Tested locally with