]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: [RGW] - Target Storage Class in s3 tiering config 65020/head
authorDnyaneshwari <dnyaneshwari@li-9c9fbecc-2d5c-11b2-a85c-e2a7cc8a424f.ibm.com>
Thu, 14 Aug 2025 05:15:52 +0000 (10:45 +0530)
committerDnyaneshwari <dnyaneshwari@li-9c9fbecc-2d5c-11b2-a85c-e2a7cc8a424f.ibm.com>
Thu, 14 Aug 2025 05:19:40 +0000 (10:49 +0530)
Fixes: https://tracker.ceph.com/issues/72583
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-storage-class.model.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts

index d23f79678953a3f1fbf46d45276dc6a87b360320..5fd5ffe34b1387f298acc4ab7d48c9c70d796a5f 100644 (file)
@@ -98,6 +98,7 @@ export interface PlacementTarget {
     glacier_restore_tier_type?: string;
     restore_storage_class?: string;
     read_through_restore_days?: number;
+    target_storage_class?: string;
   };
   storage_class?: string;
   name?: string;
@@ -170,6 +171,8 @@ export const TIER_TYPE_DISPLAY = {
   GLACIER: 'Cloud S3 Glacier'
 };
 
+export const GLACIER_TARGET_STORAGE_CLASS = 'GLACIER';
+
 export const ALLOW_READ_THROUGH_TEXT =
   'Enables fetching objects from remote cloud S3 if not found locally.';
 
index 8f66deb5d8fa41dfa151cb0e98341ab6d0150063..4a1c7589ca568cd7f0da0d066bba0b31c44fafc3 100644 (file)
@@ -43,7 +43,8 @@ import {
   EXPEDITED_TIER_TYPE_TEXT,
   TextLabels,
   CLOUD_TIER_REQUIRED_FIELDS,
-  GLACIER_REQUIRED_FIELDS
+  GLACIER_REQUIRED_FIELDS,
+  GLACIER_TARGET_STORAGE_CLASS
 } from '../models/rgw-storage-class.model';
 import { NotificationType } from '~/app/shared/enum/notification-type.enum';
 import { NotificationService } from '~/app/shared/services/notification.service';
@@ -500,7 +501,8 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
             tier_config: {
               ...tierConfig,
               glacier_restore_days: rawFormValue.glacier_restore_days,
-              glacier_restore_tier_type: rawFormValue.glacier_restore_tier_type
+              glacier_restore_tier_type: rawFormValue.glacier_restore_tier_type,
+              target_storage_class: GLACIER_TARGET_STORAGE_CLASS
             }
           }
         ]