diff --git a/SDK_CHANGELOG.md b/SDK_CHANGELOG.md index 057c4ccce..ef0ddf6b0 100644 --- a/SDK_CHANGELOG.md +++ b/SDK_CHANGELOG.md @@ -2,6 +2,10 @@ ## Releases +### v0.178.0 - (02/27/2024) + +* Add new mode for rebalance request + ### v0.177.0 - (12/15/2023) * Add volume spec to drive resource diff --git a/api/api.pb.go b/api/api.pb.go index 500b1f929..635e3720d 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, } ) @@ -3215,7 +3219,7 @@ const ( // SDK version major value of this specification SdkVersion_Major SdkVersion_Version = 0 // SDK version minor value of this specification - SdkVersion_Minor SdkVersion_Version = 177 + SdkVersion_Minor SdkVersion_Version = 178 // SDK version patch value of this specification SdkVersion_Patch SdkVersion_Version = 0 ) @@ -3225,13 +3229,13 @@ var ( SdkVersion_Version_name = map[int32]string{ 0: "MUST_HAVE_ZERO_VALUE", // Duplicate value: 0: "Major", - 177: "Minor", + 178: "Minor", // Duplicate value: 0: "Patch", } SdkVersion_Version_value = map[string]int32{ "MUST_HAVE_ZERO_VALUE": 0, "Major": 0, - "Minor": 177, + "Minor": 178, "Patch": 0, } ) @@ -34169,7 +34173,7 @@ var file_api_api_proto_rawDesc = []byte{ 0x5f, 0x50, 0x45, 0x52, 0x43, 0x45, 0x4e, 0x54, 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, + 0x44, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 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, @@ -34202,10 +34206,11 @@ var file_api_api_proto_rawDesc = []byte{ 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, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x4f, 0x52, + 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, + 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x49, 0x58, 0x10, 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, @@ -35173,7 +35178,7 @@ var file_api_api_proto_rawDesc = []byte{ 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x14, 0x4d, 0x55, 0x53, 0x54, 0x5f, 0x48, 0x41, 0x56, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x0a, - 0x0a, 0x05, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x10, 0xb1, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x61, + 0x0a, 0x05, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x10, 0xb2, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x61, 0x74, 0x63, 0x68, 0x10, 0x00, 0x1a, 0x02, 0x10, 0x01, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, diff --git a/api/api.proto b/api/api.proto index 64cbe529d..fa1b0fdbf 100644 --- a/api/api.proto +++ b/api/api.proto @@ -4427,6 +4427,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; } } @@ -5663,7 +5665,7 @@ message SdkVersion { // SDK version major value of this specification Major = 0; // SDK version minor value of this specification - Minor = 177; + Minor = 178; // SDK version patch value of this specification Patch = 0; } diff --git a/api/server/sdk/api/api.swagger.json b/api/server/sdk/api/api.swagger.json index 8facaaad1..863164fbd 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" @@ -6393,7 +6394,7 @@ }, "info": { "title": "OpenStorage SDK", - "version": "0.177.0" + "version": "0.178.0" }, "openapi": "3.0.0", "paths": {