Project

General

Profile

Actions

Bug #981

closed

radosgw bucket.set_acl() seems to always fail with AccessDenied

Added by Anonymous about 13 years ago. Updated over 6 years ago.

Status:
Resolved
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

from s3-tests, several tests fail because of this:

def test_bucket_acl_canned_private_to_private():
    bucket = get_new_bucket()
    bucket.set_acl('private')

$ S3TEST_CONF=tv.conf ./virtualenv/bin/nosetests test_s3:test_bucket_acl_canned_private_to_private
E
======================================================================
ERROR: test_s3.test_bucket_acl_canned_private_to_private
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tv/src/s3-tests.git/virtualenv/lib/python2.6/site-packages/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/home/tv/src/s3-tests.git/test_s3.py", line 466, in test_bucket_acl_canned_private_to_private
    bucket.set_acl('private')
  File "/home/tv/src/s3-tests.git/virtualenv/lib/python2.6/site-packages/boto/s3/bucket.py", line 589, in set_acl
    headers, version_id)
  File "/home/tv/src/s3-tests.git/virtualenv/lib/python2.6/site-packages/boto/s3/bucket.py", line 555, in set_canned_acl
    response.status, response.reason, body)
S3ResponseError: S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code></Error>
-------------------- >> begin captured logging << --------------------
boto: DEBUG: path=/
boto: DEBUG: auth_path=/
boto: DEBUG: Canonical: GET

Tue, 05 Apr 2011 17:18:07 GMT
/
boto: DEBUG: Method: GET
boto: DEBUG: Path: /
boto: DEBUG: Data: 
boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 17:18:07 GMT', 'Content-Length': '0', 'Authorization': 'AWS TKKZ1DX83O7ZCTWHE0YD:+xrW1TPePInkJ9dg+B8vMD7mhDI=', 'User-Agent': 'Boto/2.0b4 (linux2)'}
boto: DEBUG: Host: localhost:7280
boto: DEBUG: establishing HTTP connection
boto: DEBUG: path=/
boto: DEBUG: auth_path=/
boto: DEBUG: Canonical: GET

Tue, 05 Apr 2011 17:18:07 GMT
/
boto: DEBUG: Method: GET
boto: DEBUG: Path: /
boto: DEBUG: Data: 
boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 17:18:07 GMT', 'Content-Length': '0', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:HL/wxvSR3YCG3avUKMwLqUoIrAk=', 'User-Agent': 'Boto/2.0b4 (linux2)'}
boto: DEBUG: Host: localhost:7280
boto: DEBUG: establishing HTTP connection
boto: DEBUG: path=/test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: auth_path=/test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: Canonical: PUT

Tue, 05 Apr 2011 17:18:07 GMT
/test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: Method: PUT
boto: DEBUG: Path: /test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: Data: 
boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 17:18:07 GMT', 'Content-Length': '0', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:7ipWGhWwddDQA4T0BPKbGPQf9j4=', 'User-Agent': 'Boto/2.0b4 (linux2)'}
boto: DEBUG: Host: localhost:7280
boto: DEBUG: path=/test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: auth_path=/test-tv-2voqw15owczhktv9qlot9-1/
boto: DEBUG: path=/test-tv-2voqw15owczhktv9qlot9-1/?acl
boto: DEBUG: auth_path=/test-tv-2voqw15owczhktv9qlot9-1/?acl
boto: DEBUG: Canonical: PUT

Tue, 05 Apr 2011 17:18:08 GMT
x-amz-acl:private
/test-tv-2voqw15owczhktv9qlot9-1/?acl
boto: DEBUG: Method: PUT
boto: DEBUG: Path: /test-tv-2voqw15owczhktv9qlot9-1/?acl
boto: DEBUG: Data: 
boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 17:18:08 GMT', 'Content-Length': '0', 'x-amz-acl': 'private', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:SY8kn/Zfj+PxtA0rtGNwVu9iaNc=', 'User-Agent': 'Boto/2.0b4 (linux2)'}
boto: DEBUG: Host: localhost:7280
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 3.524s

FAILED (errors=1)
Actions #1

Updated by Sage Weil about 13 years ago

  • Target version set to v0.28
Actions #2

Updated by Yehuda Sadeh about 13 years ago

  • Status changed from New to Resolved

Fixed at commit:6f730af1926f9d4fe5904ac10dbe019c0a6aef8d.

Actions #3

Updated by Sage Weil about 13 years ago

  • Target version changed from v0.28 to v0.27
Actions #4

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_story_points set to 1
  • Translation missing: en.field_position set to 1
  • Translation missing: en.field_position changed from 1 to 632
Actions #5

Updated by John Spray over 6 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
  • Target version deleted (v0.27)

Bulk reassign of radosgw category to RGW project.

Actions

Also available in: Atom PDF