Project

General

Profile

Actions

Bug #21607

open

rgw: s3 v4 auth fails teuthology s3-tests: test_object_header_acl_grants test_bucket_header_acl_grants

Added by Marcus Watts over 6 years ago. Updated almost 3 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When running teuthology s3-tests with the environment variable "S3_USE_SIGV4=1", awsv4 signatures are enabled.

When this is done, these tests fail:
ERROR: s3tests.functional.test_s3.test_object_header_acl_grants
ERROR: s3tests.functional.test_s3.test_bucket_header_acl_grants

This fails doing awsv4 signatures, and the exact error appears to be in the sort order of "x-amz-grant-read-acp" vs. "x-amz-grant-read", "x-amz-grant-write-acp" vs. "x-amz-grant-write". It appears that the expected behavior is to sort the entire header line (which includes a ":" which sorts after "-", and not just the field name.

This behavior appers in both jewel and master.


Related issues 1 (0 open1 closed)

Related to rgw - Bug #21832: boto3 v4 SignatureDoesNotMatch failure due to sorting of sse-kms headersResolvedCasey Bodley10/18/2017

Actions
Actions #1

Updated by Casey Bodley over 6 years ago

  • Related to Bug #21832: boto3 v4 SignatureDoesNotMatch failure due to sorting of sse-kms headers added
Actions #2

Updated by Casey Bodley over 6 years ago

This appears to be a boto2 client bug, as reported in https://github.com/boto/boto/pull/3032.

Actions #3

Updated by Ken Dreyer over 6 years ago

  • Status changed from New to 15
  • Backport deleted (jewel, luminous)

Unmarking this for backporting.

To be clear: the original RGW commit at https://github.com/ceph/ceph/pull/18046 was wrong, and we reverted this in #21832 . Please don't cherry-pick this PR anywhere :)

Actions #4

Updated by Nathan Cutler over 6 years ago

Thanks, Ken!

Actions #5

Updated by Kefu Chai over 6 years ago

Ken, Nathan, i merged https://github.com/ceph/ceph/pull/18165 before i read this ticket. shall we backport the revert PR?

Actions #6

Updated by Matt Benjamin over 6 years ago

Kefu, https://github.com/ceph/ceph/pull/18165 is about xfs vs. btrfs in filestore?

Matt

Actions #7

Updated by Matt Benjamin over 6 years ago

kefu, if https://github.com/ceph/ceph/pull/18080 merged into Jewel, I think it needs a revert.

Matt

Actions #8

Updated by Kefu Chai over 6 years ago

  • Assignee set to Kefu Chai

@Matt Li sorry for the typo, it's https://github.com/ceph/ceph/pull/18080.

and ack. will backport the revert.

Actions #10

Updated by Kefu Chai over 6 years ago

  • Assignee deleted (Kefu Chai)
Actions #11

Updated by Patrick Donnelly over 4 years ago

  • Status changed from 15 to Fix Under Review
Actions #12

Updated by Sage Weil almost 3 years ago

  • Project changed from Ceph to rgw
Actions

Also available in: Atom PDF