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"
}
Updated by zhiming zhang over 2 years ago
Updated by Konstantin Shalygin over 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 44492
Updated by Casey Bodley about 2 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport changed from octopus pacific to octopus pacific quincy
Updated by Backport Bot about 2 years ago
- Copied to Backport #54227: quincy: The storage class attr is not correct when the object is rewrited using radosgw-admin. added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54228: octopus: The storage class attr is not correct when the object is rewrited using radosgw-admin. added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54229: pacific: The storage class attr is not correct when the object is rewrited using radosgw-admin. added