Bug #53790
openThe storage class attr is not correct when the object is rewrited using radosgw-admin.
0%
Description
The bucket 'test-3' default storage class is STANDARD, PUT an object 'test_100M_3' using storage class IA,
then run
radosgw-admin object rewrite --bucket=test-3 --object=test_100M_3
The object will be rewrite using the default storage class of the bucket, STANDARD, but the object attr 'user.rgw.storage_class' is IA, inherited from old attr.
[
{
"name": "test_100M_3",
"instance": "",
"ver": {
"pool": 11,
"epoch": 2787
},
"locator": "",
"exists": "true",
"meta": {
"category": 1,
"size": 104857600,
"mtime": "2022-01-07 03:30:56.867119Z",
"etag": "2f282b84e7e608d5852449ed940bfc51",
"storage_class": "",
"owner": "test",
"owner_display_name": "test",
"content_type": "",
"accounted_size": 104857600,
"user_data": "",
"appendable": "false",
"is_multipart": "false"
},
"tag": "_E1-gzZFZhjtMJ7lThImj0LJFLetxN1g",
"flags": 0,
"pending_map": [],
"versioned_epoch": 0
}
]
But attrs are:
"attrs": {
"user.rgw.pg_ver": "郛",
"user.rgw.source_zone": "馃牞
"user.rgw.storage_class": "IA",
"user.rgw.tail_tag": "_E1-gzZFZhjtMJ7lThImj0LJFLetxN1g"
}