Project

General

Profile

Actions

Feature #21841

open

Test needed for: RGW ERROR: got unexpected error when trying to read object: -2

Added by Anonymous over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
QA Suite
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:

Description

Tamil 2017-09-25 15:44:35 EDT

Steps to reproduce:

set "rgw gc obj min wait = 120" in /etc/ceph/ceph.conf and restart rgw

run create_copy.py

wait for 5 mins

run gc process - "radosgw-admin gc process"

wait for 5 mins

run get.py

tail -f /var/log/ceph/ceph-rgw-magna021.log

watch for "404 Not found" in the logs

====

create_copy.py:
[root@magna021 ubuntu]# cat create_copy.py
import boto
import boto.s3.connection
access_key = 'Y3866CRAQ3WAY355GZ91'
secret_key = 'yv2ApprAcdd6yFNw7VW1ChkWcTCyB9ZdvLlbJT6v'

conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
host = 'magna021.ceph.redhat.com', port=8080,
is_secure=False, # uncomment if you are not using ssl
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)

bucket = conn.create_bucket('bla3')

for i in range(1000,5000):
keyname1 = 'testa%d' % i
keyname2 = 'copyb%d' % i
key = bucket.new_key(keyname1)
key.set_contents_from_string('Hello World!\n'*50000)

key2 = bucket.copy_key(keyname2, 'bla', keyname1)
key2.delete()
print 'done with %s' % keyname1

get.py:

import boto
import boto.s3.connection
access_key = 'Y3866CRAQ3WAY355GZ91'
secret_key = 'yv2ApprAcdd6yFNw7VW1ChkWcTCyB9ZdvLlbJT6v'

conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
host = 'magna021.ceph.redhat.com', port=8080,
is_secure=False, # uncomment if you are not using ssl
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)

bucket = conn.get_bucket('bla2')

for i in range(1000,5000):
keyname1 = 'testa%d' % i
key = bucket.new_key(keyname1)
key.get_contents_as_string()
print 'done with %s' % keyname1

No data to display

Actions

Also available in: Atom PDF