-
Notifications
You must be signed in to change notification settings - Fork 342
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
amazon.aws.s3_object
copy mode repeatedly updates objects that were uploaded in multiple parts
#2016
Closed
1 task done
Comments
GomathiselviS
added
needs_verified
Some one might want to take a look at this and reproduce it to confirm
jira
and removed
needs_triage
labels
Mar 19, 2024
abikouo
added
WIP
Work in progress
verified
and removed
needs_verified
Some one might want to take a look at this and reproduce it to confirm
labels
Mar 21, 2024
Thank you for taking the time to work on this @abikouo. |
@colin-nolan could you please give a try using #2024? Thanks |
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Apr 11, 2024
…2024) s3_object - fix copy idempotency issue with multipart upload object SUMMARY Fixes #2016 To ensure the idempotency when copying objects created with multipart upload, the idempotency of the source object will be computed locally using object content as it differs from what is stored on AWS object header. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_object ADDITIONAL INFORMATION Reviewed-by: Colin Nolan Reviewed-by: Bikouo Aubin Reviewed-by: Helen Bailey <[email protected]>
patchback bot
pushed a commit
that referenced
this issue
Apr 11, 2024
…2024) s3_object - fix copy idempotency issue with multipart upload object SUMMARY Fixes #2016 To ensure the idempotency when copying objects created with multipart upload, the idempotency of the source object will be computed locally using object content as it differs from what is stored on AWS object header. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_object ADDITIONAL INFORMATION Reviewed-by: Colin Nolan Reviewed-by: Bikouo Aubin Reviewed-by: Helen Bailey <[email protected]> (cherry picked from commit 37804cc)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Apr 19, 2024
…2024) (#2053) [PR #2024/37804cc7 backport][stable-7] s3_object - fix copy idempotency issue with multipart upload object This is a backport of PR #2024 as merged into main (37804cc). SUMMARY Fixes #2016 To ensure the idempotency when copying objects created with multipart upload, the idempotency of the source object will be computed locally using object content as it differs from what is stored on AWS object header. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_object ADDITIONAL INFORMATION Reviewed-by: Helen Bailey <[email protected]> Reviewed-by: Mark Chappell
abikouo
added a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 15, 2024
…-collections#2150) SUMMARY Closes ansible-collections#2120 Closes ansible-collections#2019 Closes ansible-collections#2016 Prepare modules autoscaling_instance_refresh and autoscaling_instance_refresh_info for promotion: Refactor modules to use common code from ansible_collections.amazon.aws.plugins.module_utils.autoscaling Add type hinting Update integration tests ISSUE TYPE Feature Pull Request Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@d59fa93
abikouo
added a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 15, 2024
…-collections#2150) SUMMARY Closes ansible-collections#2120 Closes ansible-collections#2019 Closes ansible-collections#2016 Prepare modules autoscaling_instance_refresh and autoscaling_instance_refresh_info for promotion: Refactor modules to use common code from ansible_collections.amazon.aws.plugins.module_utils.autoscaling Add type hinting Update integration tests ISSUE TYPE Feature Pull Request Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@d59fa93
abikouo
added a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 15, 2024
…-collections#2150) SUMMARY Closes ansible-collections#2120 Closes ansible-collections#2019 Closes ansible-collections#2016 Prepare modules autoscaling_instance_refresh and autoscaling_instance_refresh_info for promotion: Refactor modules to use common code from ansible_collections.amazon.aws.plugins.module_utils.autoscaling Add type hinting Update integration tests ISSUE TYPE Feature Pull Request Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@d59fa93
abikouo
added a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 15, 2024
…-collections#2150) SUMMARY Closes ansible-collections#2120 Closes ansible-collections#2019 Closes ansible-collections#2016 Prepare modules autoscaling_instance_refresh and autoscaling_instance_refresh_info for promotion: Refactor modules to use common code from ansible_collections.amazon.aws.plugins.module_utils.autoscaling Add type hinting Update integration tests ISSUE TYPE Feature Pull Request Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@d59fa93
abikouo
added a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 16, 2024
…-collections#2150) SUMMARY Closes ansible-collections#2120 Closes ansible-collections#2019 Closes ansible-collections#2016 Prepare modules autoscaling_instance_refresh and autoscaling_instance_refresh_info for promotion: Refactor modules to use common code from ansible_collections.amazon.aws.plugins.module_utils.autoscaling Add type hinting Update integration tests ISSUE TYPE Feature Pull Request Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@d59fa93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Using
amazon.aws.s3_object
copy mode with objects that were uploaded in multiple parts (e.g. as happens with uploads via the web UI) results in the objects being copied every time the module is used - including when the corresponding objects exists in the source bucket with the same content.I suspect that the issue is due to how the Etag is generated for the source vs how it gets generated for the copy.
Issue Type
Bug Report
Component Name
s3_object
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
MacOS 14.3 (23D56)
Steps to Reproduce
size(file) < 5GB
(the copy limit), e.g.head -c 64MB < /dev/zero > 64MB-zero.bin
05c46bd967d2892191397a04e43821b9-4
. According to Amazon:amazon.aws.s3_object
to copy the file to another bucket.e78585b8bfda6036cfd818710a210f23
(MD5 of 64MB of zeros).Expected Results
Module is idempotent, and does not repeatidly copy identical files.
Actual Results
Copy operation performed on files uploaded in multipart, regardless of their state in the target bucket.
Code of Conduct
The text was updated successfully, but these errors were encountered: