Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Conversation

@shraddhaghatol
Copy link

@shraddhaghatol shraddhaghatol commented Aug 25, 2022

Problem :
"NoSuchKey" error was returning when tried copyObject API after applying valid IAM policy on IAM user.

Solution :
Previously in copy object API it was considering owner of destination bucket as "user id" and not the actual owner of the bucket. Fixed that by changing owner as destination bucket owner.

Sample policy example with command is given in - https://jts.seagate.com/browse/CORTX-33109?focusedCommentId=2421624&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2421624

Signed-off-by: shraddhaghatol [email protected]

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions github-actions bot added the rgw label Aug 25, 2022
Signed-off-by: shraddhaghatol <[email protected]>
@shraddhaghatol shraddhaghatol marked this pull request as ready for review August 26, 2022 05:15
@shraddhaghatol shraddhaghatol self-assigned this Aug 26, 2022
@shraddhaghatol shraddhaghatol changed the title Fixed noSuchKey error rgw_sal_motr :[CORTX-33109] Fixed noSuchKey error in CopyObject API for IAM Policy Aug 26, 2022
Copy link

@priyanka25081999 priyanka25081999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link

@sachitanands sachitanands left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link

@cdeshmukh cdeshmukh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem :
"NoSuchKey" error was returning when tried copyObject API after applying valid IAM policy on IAM user.

Add exact policy with commands, that way anyone can try recreating it.

Am fine with changes otherwise.

@shraddhaghatol
Copy link
Author

retest this please

@shraddhaghatol
Copy link
Author

ran s3 ceph test suite. All tests are passed apart from known failures. Job link -
https://eos-jenkins.colo.seagate.com/job/Cortx-Automation/job/S3Server/job/S3-Compatibility-Test-Ceph-RGW/214/#showFailuresLink
image

@cdeshmukh cdeshmukh merged commit ec121d3 into main Aug 26, 2022
@sachitanands sachitanands deleted the sg/copy-iam branch August 29, 2022 05:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants