Commit b1ddd68
committed
rgw/cloud-restore: Add new tier-type & options related to S3 Glacier
Unlike regular S3 cloud services, restoring objects from S3/Tape
or AWS Glacier services would require special handling. We need to
first restore the object using Glacier `RestoreObject` API and then
download it using `GET`.
https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
A new cloud tier-type `s3-glacier` is added to handle S3 Glacier
endpoints along with below tier-config options -
`glacier_restore_days` - lifetime of the restored copy on the Glacier
endpoint ; default: 1 day
`glacier_restore_tier_type` - Retrieval tier at which the restore will be processed.
Only "Standard" (default) and "Expedited" options
are supported.
In addition, a new option `restore_storage_class` is added to configure
the storage class the objects need to be restored to. Default value:
STANDARD
Design doc: https://docs.google.com/document/d/1rzLJAzHK6cLuzJswgoplgugNOFCKi8NrjPOGfgVrIFg/edit?tab=t.0#heading=h.sgrmb31roboc
Signed-off-by: Soumya Koduri <[email protected]>1 parent ad8a617 commit b1ddd68
File tree
19 files changed
+204
-34
lines changed- src/rgw
- driver
- daos
- motr
- rados
- radosgw-admin
19 files changed
+204
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
380 | 381 | | |
381 | 382 | | |
| 383 | + | |
| 384 | + | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
| 425 | + | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
474 | 482 | | |
475 | | - | |
476 | | - | |
| 483 | + | |
| 484 | + | |
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
480 | 488 | | |
481 | 489 | | |
482 | | - | |
483 | | - | |
| 490 | + | |
| 491 | + | |
484 | 492 | | |
485 | 493 | | |
486 | 494 | | |
| |||
489 | 497 | | |
490 | 498 | | |
491 | 499 | | |
492 | | - | |
| 500 | + | |
493 | 501 | | |
494 | 502 | | |
495 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5287 | 5287 | | |
5288 | 5288 | | |
5289 | 5289 | | |
| 5290 | + | |
5290 | 5291 | | |
5291 | 5292 | | |
5292 | | - | |
| 5293 | + | |
5293 | 5294 | | |
5294 | 5295 | | |
5295 | 5296 | | |
5296 | 5297 | | |
5297 | 5298 | | |
5298 | | - | |
| 5299 | + | |
5299 | 5300 | | |
5300 | 5301 | | |
5301 | 5302 | | |
| |||
5420 | 5421 | | |
5421 | 5422 | | |
5422 | 5423 | | |
5423 | | - | |
| 5424 | + | |
5424 | 5425 | | |
5425 | 5426 | | |
5426 | 5427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2916 | 2916 | | |
2917 | 2917 | | |
2918 | 2918 | | |
| 2919 | + | |
| 2920 | + | |
2919 | 2921 | | |
2920 | 2922 | | |
2921 | 2923 | | |
| |||
2933 | 2935 | | |
2934 | 2936 | | |
2935 | 2937 | | |
| 2938 | + | |
| 2939 | + | |
2936 | 2940 | | |
2937 | 2941 | | |
2938 | 2942 | | |
| |||
3242 | 3246 | | |
3243 | 3247 | | |
3244 | 3248 | | |
3245 | | - | |
| 3249 | + | |
3246 | 3250 | | |
3247 | 3251 | | |
3248 | 3252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments