diff --git a/api/api.pb.go b/api/api.pb.go index 82e1995f0..0522bf147 100644 --- a/api/api.pb.go +++ b/api/api.pb.go @@ -2666,6 +2666,8 @@ const ( SdkStorageRebalanceRequest_STORAGE_REBALANCE SdkStorageRebalanceRequest_Mode = 0 // VolumePlacementFix mode: scan all volumes for incorrect placement and fix them SdkStorageRebalanceRequest_VOLUME_PLACEMENT_FIX SdkStorageRebalanceRequest_Mode = 1 + // PoolDrain mode: drain all volumes & snapshots on the source pools (optionally to target pools) + SdkStorageRebalanceRequest_POOL_DRAIN SdkStorageRebalanceRequest_Mode = 2 ) // Enum value maps for SdkStorageRebalanceRequest_Mode. @@ -2673,10 +2675,12 @@ var ( SdkStorageRebalanceRequest_Mode_name = map[int32]string{ 0: "STORAGE_REBALANCE", 1: "VOLUME_PLACEMENT_FIX", + 2: "POOL_DRAIN", } SdkStorageRebalanceRequest_Mode_value = map[string]int32{ "STORAGE_REBALANCE": 0, "VOLUME_PLACEMENT_FIX": 1, + "POOL_DRAIN": 2, } ) @@ -34147,7 +34151,7 @@ var file_api_api_proto_rawDesc = []byte{ 0x10, 0x01, 0x22, 0x2d, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x53, 0x45, 0x44, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, - 0x01, 0x22, 0xbd, 0x04, 0x0a, 0x1a, 0x53, 0x64, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x01, 0x22, 0xcd, 0x04, 0x0a, 0x1a, 0x53, 0x64, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x60, 0x0a, 0x12, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6f, @@ -34179,11 +34183,12 @@ var file_api_api_proto_rawDesc = []byte{ 0x32, 0x30, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x64, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x37, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, + 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x52, 0x45, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, 0x5f, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x49, 0x58, 0x10, - 0x01, 0x22, 0xdb, 0x01, 0x0a, 0x1b, 0x53, 0x64, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, 0x44, 0x52, 0x41, 0x49, 0x4e, 0x10, + 0x02, 0x22, 0xdb, 0x01, 0x0a, 0x1b, 0x53, 0x64, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x61, 0x70, 0x69, diff --git a/api/api.proto b/api/api.proto index 9ac37e873..2b2fce347 100644 --- a/api/api.proto +++ b/api/api.proto @@ -4423,6 +4423,8 @@ message SdkStorageRebalanceRequest { STORAGE_REBALANCE = 0; // VolumePlacementFix mode: scan all volumes for incorrect placement and fix them VOLUME_PLACEMENT_FIX = 1; + // PoolDrain mode: drain all volumes & snapshots on the source pools (optionally to target pools) + POOL_DRAIN = 2; } } diff --git a/api/server/sdk/api/api.swagger.json b/api/server/sdk/api/api.swagger.json index d2b4a58f8..7c92f3bbd 100644 --- a/api/server/sdk/api/api.swagger.json +++ b/api/server/sdk/api/api.swagger.json @@ -4115,10 +4115,11 @@ }, "apiSdkStorageRebalanceRequestMode": { "default": "STORAGE_REBALANCE", - "description": "- STORAGE_REBALANCE: StorageRebalance mode: rebalance pools based on provisioned/used space (the default mode)\n - VOLUME_PLACEMENT_FIX: VolumePlacementFix mode: scan all volumes for incorrect placement and fix them", + "description": "- STORAGE_REBALANCE: StorageRebalance mode: rebalance pools based on provisioned/used space (the default mode)\n - VOLUME_PLACEMENT_FIX: VolumePlacementFix mode: scan all volumes for incorrect placement and fix them\n - POOL_DRAIN: PoolDrain mode: drain all volumes \u0026 snapshots on the source pools (optionally to target pools)", "enum": [ "STORAGE_REBALANCE", - "VOLUME_PLACEMENT_FIX" + "VOLUME_PLACEMENT_FIX", + "POOL_DRAIN" ], "title": "Mode is an enum that defines the mode of the volume reorg job", "type": "string"