Project

General

Profile

Actions

Bug #53790

open

The storage class attr is not correct when the object is rewrited using radosgw-admin.

Added by zhiming zhang over 2 years ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
octopus pacific quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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"
}


Related issues 3 (1 open2 closed)

Copied to rgw - Backport #54227: quincy: The storage class attr is not correct when the object is rewrited using radosgw-admin.In ProgressKonstantin ShalyginActions
Copied to rgw - Backport #54228: octopus: The storage class attr is not correct when the object is rewrited using radosgw-admin.RejectedActions
Copied to rgw - Backport #54229: pacific: The storage class attr is not correct when the object is rewrited using radosgw-admin.RejectedActions
Actions #2

Updated by Konstantin Shalygin over 2 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 44492
Actions #3

Updated by Konstantin Shalygin over 2 years ago

  • Assignee set to zhiming zhang
Actions #4

Updated by Konstantin Shalygin over 2 years ago

  • Backport set to octopus pacific
Actions #5

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
Actions #6

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
Actions #7

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
Actions #8

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
Actions #9

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF