Bug #978
radosgw bucket creation should succeed on pre-existing bucket if the owner matches
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
s3 test:
def test_bucket_create_exists(): bucket = get_new_bucket() # REST idempotency means this should be a nop s3.main.create_bucket(bucket.name)
$ S3TEST_CONF=tv.conf ./virtualenv/bin/nosetests test_s3:test_bucket_create_exists E ====================================================================== ERROR: test_s3.test_bucket_create_exists ---------------------------------------------------------------------- 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 389, in test_bucket_create_exists s3.main.create_bucket(bucket.name) File "/home/tv/src/s3-tests.git/virtualenv/lib/python2.6/site-packages/boto/s3/connection.py", line 368, in create_bucket response.status, response.reason, body) S3CreateError: S3CreateError: 409 Conflict <?xml version="1.0" encoding="UTF-8"?><Error><Code>BucketAlreadyExists</Code></Error> -------------------- >> begin captured logging << -------------------- boto: DEBUG: path=/ boto: DEBUG: auth_path=/ boto: DEBUG: Canonical: GET Tue, 05 Apr 2011 00:12:47 GMT / boto: DEBUG: Method: GET boto: DEBUG: Path: / boto: DEBUG: Data: boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 00:12:47 GMT', 'Content-Length': '0', 'Authorization': 'AWS TKKZ1DX83O7ZCTWHE0YD:1KFminMF8bqLNotLEVMut89qAb4=', '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 00:12:47 GMT / boto: DEBUG: Method: GET boto: DEBUG: Path: / boto: DEBUG: Data: boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 00:12:47 GMT', 'Content-Length': '0', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:DZWNTTlJ0C+iQUmp79P3/swzelI=', 'User-Agent': 'Boto/2.0b4 (linux2)'} boto: DEBUG: Host: localhost:7280 boto: DEBUG: establishing HTTP connection boto: DEBUG: path=/test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: auth_path=/test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Canonical: PUT Tue, 05 Apr 2011 00:12:47 GMT /test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Data: boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 00:12:47 GMT', 'Content-Length': '0', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:XCovYujK+LX0e8mG2af7MhjVPPM=', 'User-Agent': 'Boto/2.0b4 (linux2)'} boto: DEBUG: Host: localhost:7280 boto: DEBUG: path=/test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: auth_path=/test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Canonical: PUT Tue, 05 Apr 2011 00:12:47 GMT /test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /test-tv-8xl72s48augj2wiq2ptxq-1/ boto: DEBUG: Data: boto: DEBUG: Headers: {'Date': 'Tue, 05 Apr 2011 00:12:47 GMT', 'Content-Length': '0', 'Authorization': 'AWS O54XVCC9MQ9Q72TWP5Y1:XCovYujK+LX0e8mG2af7MhjVPPM=', 'User-Agent': 'Boto/2.0b4 (linux2)'} boto: DEBUG: Host: localhost:7280 --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 1 test in 2.752s FAILED (errors=1)
Related issues
History
#1 Updated by Sage Weil almost 13 years ago
- Target version set to v0.28
#2 Updated by Sage Weil almost 13 years ago
- translation missing: en.field_position set to 1
#3 Updated by Yehuda Sadeh almost 13 years ago
- Status changed from New to Resolved
Fixed now, commit:59309b376c5356afd97a2e72f126159d2a4877ba.
#4 Updated by Sage Weil almost 13 years ago
- Target version changed from v0.28 to v0.27
#5 Updated by Sage Weil almost 13 years ago
- translation missing: en.field_story_points set to 1
- translation missing: en.field_position deleted (
3) - translation missing: en.field_position set to 2
#6 Updated by John Spray about 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.