From 37c3802b251081e6d561dfefb1ef9f2fae0315e0 Mon Sep 17 00:00:00 2001 From: Tom Nabarro Date: Sat, 30 Aug 2025 03:57:12 +0100 Subject: [PATCH 1/2] DAOS-17831 control: Add dmg pool rebuild start|stop cmds Features: control Signed-off-by: Tom Nabarro --- src/control/cmd/dmg/command_test.go | 6 + src/control/cmd/dmg/json_test.go | 3 +- src/control/cmd/dmg/pool.go | 51 + src/control/cmd/dmg/pool_test.go | 84 +- src/control/common/proto/mgmt/addons.go | 20 + src/control/common/proto/mgmt/mgmt.pb.go | 506 +-- src/control/common/proto/mgmt/mgmt_grpc.pb.go | 162 +- src/control/common/proto/mgmt/pool.pb.go | 332 +- src/control/lib/control/pool.go | 70 + src/control/lib/control/pool_test.go | 109 + src/control/lib/daos/drpc.go | 6 + src/control/security/grpc_authorization.go | 5 +- .../security/grpc_authorization_test.go | 5 +- src/control/server/mgmt_pool.go | 38 + src/include/daos/drpc_modules.h | 2 + src/mgmt/drpc_internal.h | 8 + src/mgmt/pool.pb-c.c | 3726 +++++++---------- src/mgmt/pool.pb-c.h | 163 +- src/mgmt/srv.c | 6 + src/mgmt/srv_drpc.c | 106 + src/mgmt/tests/mocks.c | 24 + src/mgmt/tests/mocks.h | 9 + src/mgmt/tests/srv_drpc_tests.c | 201 + src/proto/mgmt/mgmt.proto | 10 +- src/proto/mgmt/pool.proto | 31 + 25 files changed, 3192 insertions(+), 2491 deletions(-) diff --git a/src/control/cmd/dmg/command_test.go b/src/control/cmd/dmg/command_test.go index 39ad5da6fe9..f5ca3b76b11 100644 --- a/src/control/cmd/dmg/command_test.go +++ b/src/control/cmd/dmg/command_test.go @@ -180,6 +180,12 @@ func (bci *bridgeConnInvoker) InvokeUnaryRPC(ctx context.Context, uReq control.U resp = control.MockMSResponse("", nil, &mgmtpb.PoolRanksResp{}) case *control.PoolExtendReq: resp = control.MockMSResponse("", nil, &mgmtpb.PoolExtendResp{}) + case *control.PoolRebuildReq: + if req.Op == control.PoolRebuildOpCodeStart { + resp = control.MockMSResponse("", nil, &mgmtpb.PoolRebuildStartResp{}) + } else if req.Op == control.PoolRebuildOpCodeStop { + resp = control.MockMSResponse("", nil, &mgmtpb.PoolRebuildStopResp{}) + } case *control.SystemCheckEnableReq: resp = control.MockMSResponse("", nil, &mgmtpb.DaosResp{}) case *control.SystemCheckDisableReq: diff --git a/src/control/cmd/dmg/json_test.go b/src/control/cmd/dmg/json_test.go index 81d47c8716d..b3993c309bc 100644 --- a/src/control/cmd/dmg/json_test.go +++ b/src/control/cmd/dmg/json_test.go @@ -86,7 +86,8 @@ func TestDmg_JsonOutput(t *testing.T) { testArgs = append(testArgs, test.MockUUID()) case "pool create": testArgs = append(testArgs, "-s", "1TB", "label") - case "pool destroy", "pool evict", "pool query", "pool get-acl", "pool upgrade": + case "pool destroy", "pool evict", "pool query", "pool get-acl", "pool upgrade", + "pool rebuild start", "pool rebuild stop": testArgs = append(testArgs, test.MockUUID()) case "pool overwrite-acl", "pool update-acl": testArgs = append(testArgs, test.MockUUID(), "-a", aclPath) diff --git a/src/control/cmd/dmg/pool.go b/src/control/cmd/dmg/pool.go index c98a054ebdd..a8261861a2a 100644 --- a/src/control/cmd/dmg/pool.go +++ b/src/control/cmd/dmg/pool.go @@ -49,6 +49,7 @@ type PoolCmd struct { SetProp poolSetPropCmd `command:"set-prop" description:"Set pool property"` GetProp poolGetPropCmd `command:"get-prop" description:"Get pool properties"` Upgrade poolUpgradeCmd `command:"upgrade" description:"Upgrade pool to latest format"` + Rebuild poolRebuildCmd `command:"rebuild" description:"Interactive rebuild commands"` } var ( @@ -1054,3 +1055,53 @@ func (cmd *poolDeleteACLCmd) Execute(args []string) error { return nil } + +// poolRebuildCmd represents the pool rebuild subcommand. +type poolRebuildCmd struct { + Start poolRebuildStartCmd `command:"start" description:"Rebuild start request submitted to pool"` + Stop poolRebuildStopCmd `command:"stop" description:"Rebuild stop request submitted to pool"` +} + +type poolRebuildOpCmd struct { + poolCmd +} + +func (cmd *poolRebuildOpCmd) execute(opCode control.PoolRebuildOpCode, force bool) (errOut error) { + req := &control.PoolRebuildReq{ + ID: cmd.PoolID().String(), + Op: opCode, + Force: force, + } + + err := control.PoolRebuild(cmd.MustLogCtx(), cmd.ctlInvoker, req) + if err != nil || cmd.JSONOutputEnabled() { + if err != nil { + cmd.ctlInvoker.Debug(err.Error()) + } + + return err + } + + msg := fmt.Sprintf("Pool-rebuild %s request succeeded", opCode.String()) + cmd.ctlInvoker.Debug(msg) + cmd.Info(msg) + + return nil +} + +type poolRebuildStartCmd struct { + poolRebuildOpCmd +} + +func (cmd *poolRebuildStartCmd) Execute(_ []string) error { + return cmd.execute(control.PoolRebuildOpCodeStart, false) +} + +type poolRebuildStopCmd struct { + poolRebuildOpCmd + Force bool `short:"f" long:"force" description:"Forcibly stop interactive rebuild"` +} + +func (cmd *poolRebuildStopCmd) Execute(_ []string) error { + return cmd.execute(control.PoolRebuildOpCodeStop, cmd.Force) +} diff --git a/src/control/cmd/dmg/pool_test.go b/src/control/cmd/dmg/pool_test.go index 4b22584a9e3..49ebb03ad58 100644 --- a/src/control/cmd/dmg/pool_test.go +++ b/src/control/cmd/dmg/pool_test.go @@ -1173,7 +1173,7 @@ func TestPoolCommands(t *testing.T) { "Query pool with empty ID", "pool query \"\"", "", - fmt.Errorf("invalid label"), + errors.New("invalid label"), }, { "Upgrade pool with pool ID", @@ -1185,11 +1185,91 @@ func TestPoolCommands(t *testing.T) { }, " "), nil, }, + { + "Interactive rebuild with no operation specified", + "pool rebuild", + "", + errors.New("specify one command"), + }, + { + "Interactive rebuild with no operation specified but label", + "pool rebuild test_label", + "", + errors.New("specify one command"), + }, + { + "Start interactive rebuild on pool with no ID or label", + "pool rebuild start", + "", + errors.New("not provided"), + }, + { + "Start interactive rebuild on pool with empty ID or label", + "pool rebuild start \"\"", + "", + errors.New("invalid label"), + }, + { + "Start interactive rebuild on pool with ID", + "pool rebuild start 031bcaf8-f0f5-42ef-b3c5-ee048676dceb", + strings.Join([]string{ + printRequest(t, &control.PoolRebuildReq{ + ID: "031bcaf8-f0f5-42ef-b3c5-ee048676dceb", + Op: control.PoolRebuildOpCodeStart, + }), + }, " "), + nil, + }, + { + "Start interactive rebuild on pool with label", + "pool rebuild start test_label", + strings.Join([]string{ + printRequest(t, &control.PoolRebuildReq{ + ID: "test_label", + Op: control.PoolRebuildOpCodeStart, + }), + }, " "), + nil, + }, + { + "Stop interactive rebuild on pool with no ID or label", + "pool rebuild stop", + "", + errors.New("not provided"), + }, + { + "Stop interactive rebuild on pool with empty ID or label", + "pool rebuild stop \"\"", + "", + errors.New("invalid label"), + }, + { + "Stop interactive rebuild on pool with ID", + "pool rebuild stop 031bcaf8-f0f5-42ef-b3c5-ee048676dceb", + strings.Join([]string{ + printRequest(t, &control.PoolRebuildReq{ + ID: "031bcaf8-f0f5-42ef-b3c5-ee048676dceb", + Op: control.PoolRebuildOpCodeStop, + }), + }, " "), + nil, + }, + { + "Stop interactive rebuild on pool with label", + "pool rebuild stop test_label", + strings.Join([]string{ + printRequest(t, &control.PoolRebuildReq{ + ID: "test_label", + Op: control.PoolRebuildOpCodeStop, + }), + }, " "), + nil, + }, { "Nonexistent subcommand", "pool quack", "", - fmt.Errorf("Unknown command"), + errors.New("Unknown command"), }, }) } diff --git a/src/control/common/proto/mgmt/addons.go b/src/control/common/proto/mgmt/addons.go index 5f8be80bb81..996187473a6 100644 --- a/src/control/common/proto/mgmt/addons.go +++ b/src/control/common/proto/mgmt/addons.go @@ -161,6 +161,26 @@ func (r *PoolQueryTargetReq) SetUUID(id uuid.UUID) { r.Id = id.String() } +// SetUUID sets the request's ID to a UUID. +func (r *PoolRebuildStartReq) SetUUID(id uuid.UUID) { + r.Id = id.String() +} + +// SetSvcRanks sets the request's Pool Service Ranks. +func (r *PoolRebuildStartReq) SetSvcRanks(rl []uint32) { + r.SvcRanks = rl +} + +// SetUUID sets the request's ID to a UUID. +func (r *PoolRebuildStopReq) SetUUID(id uuid.UUID) { + r.Id = id.String() +} + +// SetSvcRanks sets the request's Pool Service Ranks. +func (r *PoolRebuildStopReq) SetSvcRanks(rl []uint32) { + r.SvcRanks = rl +} + // SetSvcRanks sets the request's Pool Service Ranks. func (r *GetACLReq) SetSvcRanks(rl []uint32) { r.SvcRanks = rl diff --git a/src/control/common/proto/mgmt/mgmt.pb.go b/src/control/common/proto/mgmt/mgmt.pb.go index da237023e13..29a438db9d0 100644 --- a/src/control/common/proto/mgmt/mgmt.pb.go +++ b/src/control/common/proto/mgmt/mgmt.pb.go @@ -8,7 +8,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.1 -// protoc v3.5.0 +// protoc v3.14.0 // source: mgmt/mgmt.proto package mgmt @@ -42,7 +42,7 @@ var file_mgmt_mgmt_proto_rawDesc = []byte{ 0x11, 0x6d, 0x67, 0x6d, 0x74, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x63, 0x68, 0x6b, 0x2f, 0x63, 0x68, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x63, 0x68, 0x6b, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x32, 0xc2, 0x15, 0x0a, 0x07, 0x4d, 0x67, 0x6d, 0x74, 0x53, 0x76, 0x63, 0x12, + 0x6f, 0x74, 0x6f, 0x32, 0xd9, 0x16, 0x0a, 0x07, 0x4d, 0x67, 0x6d, 0x74, 0x53, 0x76, 0x63, 0x12, 0x27, 0x0a, 0x04, 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x0d, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0c, 0x43, 0x6c, 0x75, 0x73, @@ -108,117 +108,127 @@ var file_mgmt_mgmt_proto_rawDesc = []byte{ 0x43, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x0d, 0x50, 0x6f, 0x6f, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4c, 0x12, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, - 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x00, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x12, - 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, - 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, - 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0e, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x11, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, - 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x53, 0x65, 0x74, - 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, - 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x41, 0x43, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, + 0x0a, 0x0b, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x12, 0x14, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x55, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x10, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x12, 0x19, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x18, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, + 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, + 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, + 0x39, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x73, 0x12, 0x11, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0c, 0x43, 0x6f, + 0x6e, 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, + 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x12, + 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, + 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, + 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, - 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, - 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, - 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, - 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, - 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, - 0x6e, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x11, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x12, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x14, + 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, + 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, + 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, + 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3b, + 0x0a, 0x11, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, + 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x12, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0f, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, + 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0f, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x12, + 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, + 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, + 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x14, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, - 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x14, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x61, 0x69, 0x72, 0x12, 0x11, 0x2e, 0x6d, 0x67, 0x6d, - 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, - 0x64, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, - 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, - 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, - 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, - 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, - 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, - 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, - 0x37, 0x0a, 0x11, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x12, 0x10, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, - 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, - 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, - 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x38, - 0x0a, 0x18, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x67, 0x6d, - 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, - 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, - 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2d, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x14, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, + 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, + 0x14, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, + 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x11, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x61, 0x69, 0x72, 0x12, + 0x11, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, + 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, + 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, + 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, + 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, + 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x11, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, + 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x10, 0x2e, 0x63, 0x68, + 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x0e, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, + 0x34, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, + 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, + 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x18, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, + 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x67, 0x6d, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, + 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, + 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, + 0x6f, 0x73, 0x2d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, + 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var file_mgmt_mgmt_proto_goTypes = []interface{}{ @@ -239,66 +249,70 @@ var file_mgmt_mgmt_proto_goTypes = []interface{}{ (*GetACLReq)(nil), // 14: mgmt.GetACLReq (*ModifyACLReq)(nil), // 15: mgmt.ModifyACLReq (*DeleteACLReq)(nil), // 16: mgmt.DeleteACLReq - (*GetAttachInfoReq)(nil), // 17: mgmt.GetAttachInfoReq - (*ListPoolsReq)(nil), // 18: mgmt.ListPoolsReq - (*ListContReq)(nil), // 19: mgmt.ListContReq - (*ContSetOwnerReq)(nil), // 20: mgmt.ContSetOwnerReq - (*SystemQueryReq)(nil), // 21: mgmt.SystemQueryReq - (*SystemStopReq)(nil), // 22: mgmt.SystemStopReq - (*SystemStartReq)(nil), // 23: mgmt.SystemStartReq - (*SystemExcludeReq)(nil), // 24: mgmt.SystemExcludeReq - (*SystemDrainReq)(nil), // 25: mgmt.SystemDrainReq - (*SystemEraseReq)(nil), // 26: mgmt.SystemEraseReq - (*SystemCleanupReq)(nil), // 27: mgmt.SystemCleanupReq - (*CheckEnableReq)(nil), // 28: mgmt.CheckEnableReq - (*CheckDisableReq)(nil), // 29: mgmt.CheckDisableReq - (*CheckStartReq)(nil), // 30: mgmt.CheckStartReq - (*CheckStopReq)(nil), // 31: mgmt.CheckStopReq - (*CheckQueryReq)(nil), // 32: mgmt.CheckQueryReq - (*CheckSetPolicyReq)(nil), // 33: mgmt.CheckSetPolicyReq - (*CheckGetPolicyReq)(nil), // 34: mgmt.CheckGetPolicyReq - (*CheckActReq)(nil), // 35: mgmt.CheckActReq - (*PoolUpgradeReq)(nil), // 36: mgmt.PoolUpgradeReq - (*SystemSetAttrReq)(nil), // 37: mgmt.SystemSetAttrReq - (*SystemGetAttrReq)(nil), // 38: mgmt.SystemGetAttrReq - (*SystemSetPropReq)(nil), // 39: mgmt.SystemSetPropReq - (*SystemGetPropReq)(nil), // 40: mgmt.SystemGetPropReq - (*chk.CheckReport)(nil), // 41: chk.CheckReport - (*chk.Fault)(nil), // 42: chk.Fault - (*JoinResp)(nil), // 43: mgmt.JoinResp - (*shared.ClusterEventResp)(nil), // 44: shared.ClusterEventResp - (*LeaderQueryResp)(nil), // 45: mgmt.LeaderQueryResp - (*PoolCreateResp)(nil), // 46: mgmt.PoolCreateResp - (*PoolDestroyResp)(nil), // 47: mgmt.PoolDestroyResp - (*PoolEvictResp)(nil), // 48: mgmt.PoolEvictResp - (*PoolExcludeResp)(nil), // 49: mgmt.PoolExcludeResp - (*PoolDrainResp)(nil), // 50: mgmt.PoolDrainResp - (*PoolExtendResp)(nil), // 51: mgmt.PoolExtendResp - (*PoolReintResp)(nil), // 52: mgmt.PoolReintResp - (*PoolQueryResp)(nil), // 53: mgmt.PoolQueryResp - (*PoolQueryTargetResp)(nil), // 54: mgmt.PoolQueryTargetResp - (*PoolSetPropResp)(nil), // 55: mgmt.PoolSetPropResp - (*PoolGetPropResp)(nil), // 56: mgmt.PoolGetPropResp - (*ACLResp)(nil), // 57: mgmt.ACLResp - (*GetAttachInfoResp)(nil), // 58: mgmt.GetAttachInfoResp - (*ListPoolsResp)(nil), // 59: mgmt.ListPoolsResp - (*ListContResp)(nil), // 60: mgmt.ListContResp - (*DaosResp)(nil), // 61: mgmt.DaosResp - (*SystemQueryResp)(nil), // 62: mgmt.SystemQueryResp - (*SystemStopResp)(nil), // 63: mgmt.SystemStopResp - (*SystemStartResp)(nil), // 64: mgmt.SystemStartResp - (*SystemExcludeResp)(nil), // 65: mgmt.SystemExcludeResp - (*SystemDrainResp)(nil), // 66: mgmt.SystemDrainResp - (*SystemEraseResp)(nil), // 67: mgmt.SystemEraseResp - (*SystemCleanupResp)(nil), // 68: mgmt.SystemCleanupResp - (*CheckStartResp)(nil), // 69: mgmt.CheckStartResp - (*CheckStopResp)(nil), // 70: mgmt.CheckStopResp - (*CheckQueryResp)(nil), // 71: mgmt.CheckQueryResp - (*CheckGetPolicyResp)(nil), // 72: mgmt.CheckGetPolicyResp - (*CheckActResp)(nil), // 73: mgmt.CheckActResp - (*PoolUpgradeResp)(nil), // 74: mgmt.PoolUpgradeResp - (*SystemGetAttrResp)(nil), // 75: mgmt.SystemGetAttrResp - (*SystemGetPropResp)(nil), // 76: mgmt.SystemGetPropResp + (*PoolUpgradeReq)(nil), // 17: mgmt.PoolUpgradeReq + (*PoolRebuildStartReq)(nil), // 18: mgmt.PoolRebuildStartReq + (*PoolRebuildStopReq)(nil), // 19: mgmt.PoolRebuildStopReq + (*GetAttachInfoReq)(nil), // 20: mgmt.GetAttachInfoReq + (*ListPoolsReq)(nil), // 21: mgmt.ListPoolsReq + (*ListContReq)(nil), // 22: mgmt.ListContReq + (*ContSetOwnerReq)(nil), // 23: mgmt.ContSetOwnerReq + (*SystemQueryReq)(nil), // 24: mgmt.SystemQueryReq + (*SystemStopReq)(nil), // 25: mgmt.SystemStopReq + (*SystemStartReq)(nil), // 26: mgmt.SystemStartReq + (*SystemExcludeReq)(nil), // 27: mgmt.SystemExcludeReq + (*SystemDrainReq)(nil), // 28: mgmt.SystemDrainReq + (*SystemEraseReq)(nil), // 29: mgmt.SystemEraseReq + (*SystemCleanupReq)(nil), // 30: mgmt.SystemCleanupReq + (*CheckEnableReq)(nil), // 31: mgmt.CheckEnableReq + (*CheckDisableReq)(nil), // 32: mgmt.CheckDisableReq + (*CheckStartReq)(nil), // 33: mgmt.CheckStartReq + (*CheckStopReq)(nil), // 34: mgmt.CheckStopReq + (*CheckQueryReq)(nil), // 35: mgmt.CheckQueryReq + (*CheckSetPolicyReq)(nil), // 36: mgmt.CheckSetPolicyReq + (*CheckGetPolicyReq)(nil), // 37: mgmt.CheckGetPolicyReq + (*CheckActReq)(nil), // 38: mgmt.CheckActReq + (*SystemSetAttrReq)(nil), // 39: mgmt.SystemSetAttrReq + (*SystemGetAttrReq)(nil), // 40: mgmt.SystemGetAttrReq + (*SystemSetPropReq)(nil), // 41: mgmt.SystemSetPropReq + (*SystemGetPropReq)(nil), // 42: mgmt.SystemGetPropReq + (*chk.CheckReport)(nil), // 43: chk.CheckReport + (*chk.Fault)(nil), // 44: chk.Fault + (*JoinResp)(nil), // 45: mgmt.JoinResp + (*shared.ClusterEventResp)(nil), // 46: shared.ClusterEventResp + (*LeaderQueryResp)(nil), // 47: mgmt.LeaderQueryResp + (*PoolCreateResp)(nil), // 48: mgmt.PoolCreateResp + (*PoolDestroyResp)(nil), // 49: mgmt.PoolDestroyResp + (*PoolEvictResp)(nil), // 50: mgmt.PoolEvictResp + (*PoolExcludeResp)(nil), // 51: mgmt.PoolExcludeResp + (*PoolDrainResp)(nil), // 52: mgmt.PoolDrainResp + (*PoolExtendResp)(nil), // 53: mgmt.PoolExtendResp + (*PoolReintResp)(nil), // 54: mgmt.PoolReintResp + (*PoolQueryResp)(nil), // 55: mgmt.PoolQueryResp + (*PoolQueryTargetResp)(nil), // 56: mgmt.PoolQueryTargetResp + (*PoolSetPropResp)(nil), // 57: mgmt.PoolSetPropResp + (*PoolGetPropResp)(nil), // 58: mgmt.PoolGetPropResp + (*ACLResp)(nil), // 59: mgmt.ACLResp + (*PoolUpgradeResp)(nil), // 60: mgmt.PoolUpgradeResp + (*PoolRebuildStartResp)(nil), // 61: mgmt.PoolRebuildStartResp + (*PoolRebuildStopResp)(nil), // 62: mgmt.PoolRebuildStopResp + (*GetAttachInfoResp)(nil), // 63: mgmt.GetAttachInfoResp + (*ListPoolsResp)(nil), // 64: mgmt.ListPoolsResp + (*ListContResp)(nil), // 65: mgmt.ListContResp + (*DaosResp)(nil), // 66: mgmt.DaosResp + (*SystemQueryResp)(nil), // 67: mgmt.SystemQueryResp + (*SystemStopResp)(nil), // 68: mgmt.SystemStopResp + (*SystemStartResp)(nil), // 69: mgmt.SystemStartResp + (*SystemExcludeResp)(nil), // 70: mgmt.SystemExcludeResp + (*SystemDrainResp)(nil), // 71: mgmt.SystemDrainResp + (*SystemEraseResp)(nil), // 72: mgmt.SystemEraseResp + (*SystemCleanupResp)(nil), // 73: mgmt.SystemCleanupResp + (*CheckStartResp)(nil), // 74: mgmt.CheckStartResp + (*CheckStopResp)(nil), // 75: mgmt.CheckStopResp + (*CheckQueryResp)(nil), // 76: mgmt.CheckQueryResp + (*CheckGetPolicyResp)(nil), // 77: mgmt.CheckGetPolicyResp + (*CheckActResp)(nil), // 78: mgmt.CheckActResp + (*SystemGetAttrResp)(nil), // 79: mgmt.SystemGetAttrResp + (*SystemGetPropResp)(nil), // 80: mgmt.SystemGetPropResp } var file_mgmt_mgmt_proto_depIdxs = []int32{ 0, // 0: mgmt.MgmtSvc.Join:input_type -> mgmt.JoinReq @@ -319,80 +333,84 @@ var file_mgmt_mgmt_proto_depIdxs = []int32{ 15, // 15: mgmt.MgmtSvc.PoolOverwriteACL:input_type -> mgmt.ModifyACLReq 15, // 16: mgmt.MgmtSvc.PoolUpdateACL:input_type -> mgmt.ModifyACLReq 16, // 17: mgmt.MgmtSvc.PoolDeleteACL:input_type -> mgmt.DeleteACLReq - 17, // 18: mgmt.MgmtSvc.GetAttachInfo:input_type -> mgmt.GetAttachInfoReq - 18, // 19: mgmt.MgmtSvc.ListPools:input_type -> mgmt.ListPoolsReq - 19, // 20: mgmt.MgmtSvc.ListContainers:input_type -> mgmt.ListContReq - 20, // 21: mgmt.MgmtSvc.ContSetOwner:input_type -> mgmt.ContSetOwnerReq - 21, // 22: mgmt.MgmtSvc.SystemQuery:input_type -> mgmt.SystemQueryReq - 22, // 23: mgmt.MgmtSvc.SystemStop:input_type -> mgmt.SystemStopReq - 23, // 24: mgmt.MgmtSvc.SystemStart:input_type -> mgmt.SystemStartReq - 24, // 25: mgmt.MgmtSvc.SystemExclude:input_type -> mgmt.SystemExcludeReq - 25, // 26: mgmt.MgmtSvc.SystemDrain:input_type -> mgmt.SystemDrainReq - 26, // 27: mgmt.MgmtSvc.SystemErase:input_type -> mgmt.SystemEraseReq - 27, // 28: mgmt.MgmtSvc.SystemCleanup:input_type -> mgmt.SystemCleanupReq - 28, // 29: mgmt.MgmtSvc.SystemCheckEnable:input_type -> mgmt.CheckEnableReq - 29, // 30: mgmt.MgmtSvc.SystemCheckDisable:input_type -> mgmt.CheckDisableReq - 30, // 31: mgmt.MgmtSvc.SystemCheckStart:input_type -> mgmt.CheckStartReq - 31, // 32: mgmt.MgmtSvc.SystemCheckStop:input_type -> mgmt.CheckStopReq - 32, // 33: mgmt.MgmtSvc.SystemCheckQuery:input_type -> mgmt.CheckQueryReq - 33, // 34: mgmt.MgmtSvc.SystemCheckSetPolicy:input_type -> mgmt.CheckSetPolicyReq - 34, // 35: mgmt.MgmtSvc.SystemCheckGetPolicy:input_type -> mgmt.CheckGetPolicyReq - 35, // 36: mgmt.MgmtSvc.SystemCheckRepair:input_type -> mgmt.CheckActReq - 36, // 37: mgmt.MgmtSvc.PoolUpgrade:input_type -> mgmt.PoolUpgradeReq - 37, // 38: mgmt.MgmtSvc.SystemSetAttr:input_type -> mgmt.SystemSetAttrReq - 38, // 39: mgmt.MgmtSvc.SystemGetAttr:input_type -> mgmt.SystemGetAttrReq - 39, // 40: mgmt.MgmtSvc.SystemSetProp:input_type -> mgmt.SystemSetPropReq - 40, // 41: mgmt.MgmtSvc.SystemGetProp:input_type -> mgmt.SystemGetPropReq - 41, // 42: mgmt.MgmtSvc.FaultInjectReport:input_type -> chk.CheckReport - 42, // 43: mgmt.MgmtSvc.FaultInjectPoolFault:input_type -> chk.Fault - 42, // 44: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:input_type -> chk.Fault - 43, // 45: mgmt.MgmtSvc.Join:output_type -> mgmt.JoinResp - 44, // 46: mgmt.MgmtSvc.ClusterEvent:output_type -> shared.ClusterEventResp - 45, // 47: mgmt.MgmtSvc.LeaderQuery:output_type -> mgmt.LeaderQueryResp - 46, // 48: mgmt.MgmtSvc.PoolCreate:output_type -> mgmt.PoolCreateResp - 47, // 49: mgmt.MgmtSvc.PoolDestroy:output_type -> mgmt.PoolDestroyResp - 48, // 50: mgmt.MgmtSvc.PoolEvict:output_type -> mgmt.PoolEvictResp - 49, // 51: mgmt.MgmtSvc.PoolExclude:output_type -> mgmt.PoolExcludeResp - 50, // 52: mgmt.MgmtSvc.PoolDrain:output_type -> mgmt.PoolDrainResp - 51, // 53: mgmt.MgmtSvc.PoolExtend:output_type -> mgmt.PoolExtendResp - 52, // 54: mgmt.MgmtSvc.PoolReintegrate:output_type -> mgmt.PoolReintResp - 53, // 55: mgmt.MgmtSvc.PoolQuery:output_type -> mgmt.PoolQueryResp - 54, // 56: mgmt.MgmtSvc.PoolQueryTarget:output_type -> mgmt.PoolQueryTargetResp - 55, // 57: mgmt.MgmtSvc.PoolSetProp:output_type -> mgmt.PoolSetPropResp - 56, // 58: mgmt.MgmtSvc.PoolGetProp:output_type -> mgmt.PoolGetPropResp - 57, // 59: mgmt.MgmtSvc.PoolGetACL:output_type -> mgmt.ACLResp - 57, // 60: mgmt.MgmtSvc.PoolOverwriteACL:output_type -> mgmt.ACLResp - 57, // 61: mgmt.MgmtSvc.PoolUpdateACL:output_type -> mgmt.ACLResp - 57, // 62: mgmt.MgmtSvc.PoolDeleteACL:output_type -> mgmt.ACLResp - 58, // 63: mgmt.MgmtSvc.GetAttachInfo:output_type -> mgmt.GetAttachInfoResp - 59, // 64: mgmt.MgmtSvc.ListPools:output_type -> mgmt.ListPoolsResp - 60, // 65: mgmt.MgmtSvc.ListContainers:output_type -> mgmt.ListContResp - 61, // 66: mgmt.MgmtSvc.ContSetOwner:output_type -> mgmt.DaosResp - 62, // 67: mgmt.MgmtSvc.SystemQuery:output_type -> mgmt.SystemQueryResp - 63, // 68: mgmt.MgmtSvc.SystemStop:output_type -> mgmt.SystemStopResp - 64, // 69: mgmt.MgmtSvc.SystemStart:output_type -> mgmt.SystemStartResp - 65, // 70: mgmt.MgmtSvc.SystemExclude:output_type -> mgmt.SystemExcludeResp - 66, // 71: mgmt.MgmtSvc.SystemDrain:output_type -> mgmt.SystemDrainResp - 67, // 72: mgmt.MgmtSvc.SystemErase:output_type -> mgmt.SystemEraseResp - 68, // 73: mgmt.MgmtSvc.SystemCleanup:output_type -> mgmt.SystemCleanupResp - 61, // 74: mgmt.MgmtSvc.SystemCheckEnable:output_type -> mgmt.DaosResp - 61, // 75: mgmt.MgmtSvc.SystemCheckDisable:output_type -> mgmt.DaosResp - 69, // 76: mgmt.MgmtSvc.SystemCheckStart:output_type -> mgmt.CheckStartResp - 70, // 77: mgmt.MgmtSvc.SystemCheckStop:output_type -> mgmt.CheckStopResp - 71, // 78: mgmt.MgmtSvc.SystemCheckQuery:output_type -> mgmt.CheckQueryResp - 61, // 79: mgmt.MgmtSvc.SystemCheckSetPolicy:output_type -> mgmt.DaosResp - 72, // 80: mgmt.MgmtSvc.SystemCheckGetPolicy:output_type -> mgmt.CheckGetPolicyResp - 73, // 81: mgmt.MgmtSvc.SystemCheckRepair:output_type -> mgmt.CheckActResp - 74, // 82: mgmt.MgmtSvc.PoolUpgrade:output_type -> mgmt.PoolUpgradeResp - 61, // 83: mgmt.MgmtSvc.SystemSetAttr:output_type -> mgmt.DaosResp - 75, // 84: mgmt.MgmtSvc.SystemGetAttr:output_type -> mgmt.SystemGetAttrResp - 61, // 85: mgmt.MgmtSvc.SystemSetProp:output_type -> mgmt.DaosResp - 76, // 86: mgmt.MgmtSvc.SystemGetProp:output_type -> mgmt.SystemGetPropResp - 61, // 87: mgmt.MgmtSvc.FaultInjectReport:output_type -> mgmt.DaosResp - 61, // 88: mgmt.MgmtSvc.FaultInjectPoolFault:output_type -> mgmt.DaosResp - 61, // 89: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:output_type -> mgmt.DaosResp - 45, // [45:90] is the sub-list for method output_type - 0, // [0:45] is the sub-list for method input_type + 17, // 18: mgmt.MgmtSvc.PoolUpgrade:input_type -> mgmt.PoolUpgradeReq + 18, // 19: mgmt.MgmtSvc.PoolRebuildStart:input_type -> mgmt.PoolRebuildStartReq + 19, // 20: mgmt.MgmtSvc.PoolRebuildStop:input_type -> mgmt.PoolRebuildStopReq + 20, // 21: mgmt.MgmtSvc.GetAttachInfo:input_type -> mgmt.GetAttachInfoReq + 21, // 22: mgmt.MgmtSvc.ListPools:input_type -> mgmt.ListPoolsReq + 22, // 23: mgmt.MgmtSvc.ListContainers:input_type -> mgmt.ListContReq + 23, // 24: mgmt.MgmtSvc.ContSetOwner:input_type -> mgmt.ContSetOwnerReq + 24, // 25: mgmt.MgmtSvc.SystemQuery:input_type -> mgmt.SystemQueryReq + 25, // 26: mgmt.MgmtSvc.SystemStop:input_type -> mgmt.SystemStopReq + 26, // 27: mgmt.MgmtSvc.SystemStart:input_type -> mgmt.SystemStartReq + 27, // 28: mgmt.MgmtSvc.SystemExclude:input_type -> mgmt.SystemExcludeReq + 28, // 29: mgmt.MgmtSvc.SystemDrain:input_type -> mgmt.SystemDrainReq + 29, // 30: mgmt.MgmtSvc.SystemErase:input_type -> mgmt.SystemEraseReq + 30, // 31: mgmt.MgmtSvc.SystemCleanup:input_type -> mgmt.SystemCleanupReq + 31, // 32: mgmt.MgmtSvc.SystemCheckEnable:input_type -> mgmt.CheckEnableReq + 32, // 33: mgmt.MgmtSvc.SystemCheckDisable:input_type -> mgmt.CheckDisableReq + 33, // 34: mgmt.MgmtSvc.SystemCheckStart:input_type -> mgmt.CheckStartReq + 34, // 35: mgmt.MgmtSvc.SystemCheckStop:input_type -> mgmt.CheckStopReq + 35, // 36: mgmt.MgmtSvc.SystemCheckQuery:input_type -> mgmt.CheckQueryReq + 36, // 37: mgmt.MgmtSvc.SystemCheckSetPolicy:input_type -> mgmt.CheckSetPolicyReq + 37, // 38: mgmt.MgmtSvc.SystemCheckGetPolicy:input_type -> mgmt.CheckGetPolicyReq + 38, // 39: mgmt.MgmtSvc.SystemCheckRepair:input_type -> mgmt.CheckActReq + 39, // 40: mgmt.MgmtSvc.SystemSetAttr:input_type -> mgmt.SystemSetAttrReq + 40, // 41: mgmt.MgmtSvc.SystemGetAttr:input_type -> mgmt.SystemGetAttrReq + 41, // 42: mgmt.MgmtSvc.SystemSetProp:input_type -> mgmt.SystemSetPropReq + 42, // 43: mgmt.MgmtSvc.SystemGetProp:input_type -> mgmt.SystemGetPropReq + 43, // 44: mgmt.MgmtSvc.FaultInjectReport:input_type -> chk.CheckReport + 44, // 45: mgmt.MgmtSvc.FaultInjectPoolFault:input_type -> chk.Fault + 44, // 46: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:input_type -> chk.Fault + 45, // 47: mgmt.MgmtSvc.Join:output_type -> mgmt.JoinResp + 46, // 48: mgmt.MgmtSvc.ClusterEvent:output_type -> shared.ClusterEventResp + 47, // 49: mgmt.MgmtSvc.LeaderQuery:output_type -> mgmt.LeaderQueryResp + 48, // 50: mgmt.MgmtSvc.PoolCreate:output_type -> mgmt.PoolCreateResp + 49, // 51: mgmt.MgmtSvc.PoolDestroy:output_type -> mgmt.PoolDestroyResp + 50, // 52: mgmt.MgmtSvc.PoolEvict:output_type -> mgmt.PoolEvictResp + 51, // 53: mgmt.MgmtSvc.PoolExclude:output_type -> mgmt.PoolExcludeResp + 52, // 54: mgmt.MgmtSvc.PoolDrain:output_type -> mgmt.PoolDrainResp + 53, // 55: mgmt.MgmtSvc.PoolExtend:output_type -> mgmt.PoolExtendResp + 54, // 56: mgmt.MgmtSvc.PoolReintegrate:output_type -> mgmt.PoolReintResp + 55, // 57: mgmt.MgmtSvc.PoolQuery:output_type -> mgmt.PoolQueryResp + 56, // 58: mgmt.MgmtSvc.PoolQueryTarget:output_type -> mgmt.PoolQueryTargetResp + 57, // 59: mgmt.MgmtSvc.PoolSetProp:output_type -> mgmt.PoolSetPropResp + 58, // 60: mgmt.MgmtSvc.PoolGetProp:output_type -> mgmt.PoolGetPropResp + 59, // 61: mgmt.MgmtSvc.PoolGetACL:output_type -> mgmt.ACLResp + 59, // 62: mgmt.MgmtSvc.PoolOverwriteACL:output_type -> mgmt.ACLResp + 59, // 63: mgmt.MgmtSvc.PoolUpdateACL:output_type -> mgmt.ACLResp + 59, // 64: mgmt.MgmtSvc.PoolDeleteACL:output_type -> mgmt.ACLResp + 60, // 65: mgmt.MgmtSvc.PoolUpgrade:output_type -> mgmt.PoolUpgradeResp + 61, // 66: mgmt.MgmtSvc.PoolRebuildStart:output_type -> mgmt.PoolRebuildStartResp + 62, // 67: mgmt.MgmtSvc.PoolRebuildStop:output_type -> mgmt.PoolRebuildStopResp + 63, // 68: mgmt.MgmtSvc.GetAttachInfo:output_type -> mgmt.GetAttachInfoResp + 64, // 69: mgmt.MgmtSvc.ListPools:output_type -> mgmt.ListPoolsResp + 65, // 70: mgmt.MgmtSvc.ListContainers:output_type -> mgmt.ListContResp + 66, // 71: mgmt.MgmtSvc.ContSetOwner:output_type -> mgmt.DaosResp + 67, // 72: mgmt.MgmtSvc.SystemQuery:output_type -> mgmt.SystemQueryResp + 68, // 73: mgmt.MgmtSvc.SystemStop:output_type -> mgmt.SystemStopResp + 69, // 74: mgmt.MgmtSvc.SystemStart:output_type -> mgmt.SystemStartResp + 70, // 75: mgmt.MgmtSvc.SystemExclude:output_type -> mgmt.SystemExcludeResp + 71, // 76: mgmt.MgmtSvc.SystemDrain:output_type -> mgmt.SystemDrainResp + 72, // 77: mgmt.MgmtSvc.SystemErase:output_type -> mgmt.SystemEraseResp + 73, // 78: mgmt.MgmtSvc.SystemCleanup:output_type -> mgmt.SystemCleanupResp + 66, // 79: mgmt.MgmtSvc.SystemCheckEnable:output_type -> mgmt.DaosResp + 66, // 80: mgmt.MgmtSvc.SystemCheckDisable:output_type -> mgmt.DaosResp + 74, // 81: mgmt.MgmtSvc.SystemCheckStart:output_type -> mgmt.CheckStartResp + 75, // 82: mgmt.MgmtSvc.SystemCheckStop:output_type -> mgmt.CheckStopResp + 76, // 83: mgmt.MgmtSvc.SystemCheckQuery:output_type -> mgmt.CheckQueryResp + 66, // 84: mgmt.MgmtSvc.SystemCheckSetPolicy:output_type -> mgmt.DaosResp + 77, // 85: mgmt.MgmtSvc.SystemCheckGetPolicy:output_type -> mgmt.CheckGetPolicyResp + 78, // 86: mgmt.MgmtSvc.SystemCheckRepair:output_type -> mgmt.CheckActResp + 66, // 87: mgmt.MgmtSvc.SystemSetAttr:output_type -> mgmt.DaosResp + 79, // 88: mgmt.MgmtSvc.SystemGetAttr:output_type -> mgmt.SystemGetAttrResp + 66, // 89: mgmt.MgmtSvc.SystemSetProp:output_type -> mgmt.DaosResp + 80, // 90: mgmt.MgmtSvc.SystemGetProp:output_type -> mgmt.SystemGetPropResp + 66, // 91: mgmt.MgmtSvc.FaultInjectReport:output_type -> mgmt.DaosResp + 66, // 92: mgmt.MgmtSvc.FaultInjectPoolFault:output_type -> mgmt.DaosResp + 66, // 93: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:output_type -> mgmt.DaosResp + 47, // [47:94] is the sub-list for method output_type + 0, // [0:47] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/src/control/common/proto/mgmt/mgmt_grpc.pb.go b/src/control/common/proto/mgmt/mgmt_grpc.pb.go index 08ad022dcb3..f3cf1d6279e 100644 --- a/src/control/common/proto/mgmt/mgmt_grpc.pb.go +++ b/src/control/common/proto/mgmt/mgmt_grpc.pb.go @@ -8,7 +8,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v3.5.0 +// - protoc v3.14.0 // source: mgmt/mgmt.proto package mgmt @@ -46,6 +46,9 @@ const ( MgmtSvc_PoolOverwriteACL_FullMethodName = "/mgmt.MgmtSvc/PoolOverwriteACL" MgmtSvc_PoolUpdateACL_FullMethodName = "/mgmt.MgmtSvc/PoolUpdateACL" MgmtSvc_PoolDeleteACL_FullMethodName = "/mgmt.MgmtSvc/PoolDeleteACL" + MgmtSvc_PoolUpgrade_FullMethodName = "/mgmt.MgmtSvc/PoolUpgrade" + MgmtSvc_PoolRebuildStart_FullMethodName = "/mgmt.MgmtSvc/PoolRebuildStart" + MgmtSvc_PoolRebuildStop_FullMethodName = "/mgmt.MgmtSvc/PoolRebuildStop" MgmtSvc_GetAttachInfo_FullMethodName = "/mgmt.MgmtSvc/GetAttachInfo" MgmtSvc_ListPools_FullMethodName = "/mgmt.MgmtSvc/ListPools" MgmtSvc_ListContainers_FullMethodName = "/mgmt.MgmtSvc/ListContainers" @@ -65,7 +68,6 @@ const ( MgmtSvc_SystemCheckSetPolicy_FullMethodName = "/mgmt.MgmtSvc/SystemCheckSetPolicy" MgmtSvc_SystemCheckGetPolicy_FullMethodName = "/mgmt.MgmtSvc/SystemCheckGetPolicy" MgmtSvc_SystemCheckRepair_FullMethodName = "/mgmt.MgmtSvc/SystemCheckRepair" - MgmtSvc_PoolUpgrade_FullMethodName = "/mgmt.MgmtSvc/PoolUpgrade" MgmtSvc_SystemSetAttr_FullMethodName = "/mgmt.MgmtSvc/SystemSetAttr" MgmtSvc_SystemGetAttr_FullMethodName = "/mgmt.MgmtSvc/SystemGetAttr" MgmtSvc_SystemSetProp_FullMethodName = "/mgmt.MgmtSvc/SystemSetProp" @@ -123,6 +125,12 @@ type MgmtSvcClient interface { PoolUpdateACL(ctx context.Context, in *ModifyACLReq, opts ...grpc.CallOption) (*ACLResp, error) // Delete an entry from a DAOS pool's Access Control List. PoolDeleteACL(ctx context.Context, in *DeleteACLReq, opts ...grpc.CallOption) (*ACLResp, error) + // PoolUpgrade upgrades a DAOS pool. + PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opts ...grpc.CallOption) (*PoolUpgradeResp, error) + // PoolRebuildStart starts an interactive rebuild on a DAOS pool. + PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*PoolRebuildStartResp, error) + // PoolRebuildStop stops an interactive rebuild on a DAOS pool. + PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*PoolRebuildStopResp, error) // Get the information required by libdaos to attach to the system. GetAttachInfo(ctx context.Context, in *GetAttachInfoReq, opts ...grpc.CallOption) (*GetAttachInfoResp, error) // List all pools in a DAOS system: basic info: UUIDs, service ranks. @@ -161,8 +169,6 @@ type MgmtSvcClient interface { SystemCheckGetPolicy(ctx context.Context, in *CheckGetPolicyReq, opts ...grpc.CallOption) (*CheckGetPolicyResp, error) // Send the desired action to repair an inconsistency. SystemCheckRepair(ctx context.Context, in *CheckActReq, opts ...grpc.CallOption) (*CheckActResp, error) - // PoolUpgrade queries a DAOS pool. - PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opts ...grpc.CallOption) (*PoolUpgradeResp, error) // Set a system attribute or attributes. SystemSetAttr(ctx context.Context, in *SystemSetAttrReq, opts ...grpc.CallOption) (*DaosResp, error) // Get a system attribute or attributes. @@ -367,6 +373,36 @@ func (c *mgmtSvcClient) PoolDeleteACL(ctx context.Context, in *DeleteACLReq, opt return out, nil } +func (c *mgmtSvcClient) PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opts ...grpc.CallOption) (*PoolUpgradeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PoolUpgradeResp) + err := c.cc.Invoke(ctx, MgmtSvc_PoolUpgrade_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mgmtSvcClient) PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*PoolRebuildStartResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PoolRebuildStartResp) + err := c.cc.Invoke(ctx, MgmtSvc_PoolRebuildStart_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mgmtSvcClient) PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*PoolRebuildStopResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PoolRebuildStopResp) + err := c.cc.Invoke(ctx, MgmtSvc_PoolRebuildStop_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *mgmtSvcClient) GetAttachInfo(ctx context.Context, in *GetAttachInfoReq, opts ...grpc.CallOption) (*GetAttachInfoResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAttachInfoResp) @@ -557,16 +593,6 @@ func (c *mgmtSvcClient) SystemCheckRepair(ctx context.Context, in *CheckActReq, return out, nil } -func (c *mgmtSvcClient) PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opts ...grpc.CallOption) (*PoolUpgradeResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PoolUpgradeResp) - err := c.cc.Invoke(ctx, MgmtSvc_PoolUpgrade_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *mgmtSvcClient) SystemSetAttr(ctx context.Context, in *SystemSetAttrReq, opts ...grpc.CallOption) (*DaosResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DaosResp) @@ -685,6 +711,12 @@ type MgmtSvcServer interface { PoolUpdateACL(context.Context, *ModifyACLReq) (*ACLResp, error) // Delete an entry from a DAOS pool's Access Control List. PoolDeleteACL(context.Context, *DeleteACLReq) (*ACLResp, error) + // PoolUpgrade upgrades a DAOS pool. + PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) + // PoolRebuildStart starts an interactive rebuild on a DAOS pool. + PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*PoolRebuildStartResp, error) + // PoolRebuildStop stops an interactive rebuild on a DAOS pool. + PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*PoolRebuildStopResp, error) // Get the information required by libdaos to attach to the system. GetAttachInfo(context.Context, *GetAttachInfoReq) (*GetAttachInfoResp, error) // List all pools in a DAOS system: basic info: UUIDs, service ranks. @@ -723,8 +755,6 @@ type MgmtSvcServer interface { SystemCheckGetPolicy(context.Context, *CheckGetPolicyReq) (*CheckGetPolicyResp, error) // Send the desired action to repair an inconsistency. SystemCheckRepair(context.Context, *CheckActReq) (*CheckActResp, error) - // PoolUpgrade queries a DAOS pool. - PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) // Set a system attribute or attributes. SystemSetAttr(context.Context, *SystemSetAttrReq) (*DaosResp, error) // Get a system attribute or attributes. @@ -803,6 +833,15 @@ func (UnimplementedMgmtSvcServer) PoolUpdateACL(context.Context, *ModifyACLReq) func (UnimplementedMgmtSvcServer) PoolDeleteACL(context.Context, *DeleteACLReq) (*ACLResp, error) { return nil, status.Errorf(codes.Unimplemented, "method PoolDeleteACL not implemented") } +func (UnimplementedMgmtSvcServer) PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolUpgrade not implemented") +} +func (UnimplementedMgmtSvcServer) PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*PoolRebuildStartResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolRebuildStart not implemented") +} +func (UnimplementedMgmtSvcServer) PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*PoolRebuildStopResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolRebuildStop not implemented") +} func (UnimplementedMgmtSvcServer) GetAttachInfo(context.Context, *GetAttachInfoReq) (*GetAttachInfoResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAttachInfo not implemented") } @@ -860,9 +899,6 @@ func (UnimplementedMgmtSvcServer) SystemCheckGetPolicy(context.Context, *CheckGe func (UnimplementedMgmtSvcServer) SystemCheckRepair(context.Context, *CheckActReq) (*CheckActResp, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemCheckRepair not implemented") } -func (UnimplementedMgmtSvcServer) PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PoolUpgrade not implemented") -} func (UnimplementedMgmtSvcServer) SystemSetAttr(context.Context, *SystemSetAttrReq) (*DaosResp, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemSetAttr not implemented") } @@ -1229,6 +1265,60 @@ func _MgmtSvc_PoolDeleteACL_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _MgmtSvc_PoolUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PoolUpgradeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MgmtSvcServer).PoolUpgrade(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MgmtSvc_PoolUpgrade_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MgmtSvcServer).PoolUpgrade(ctx, req.(*PoolUpgradeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _MgmtSvc_PoolRebuildStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PoolRebuildStartReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MgmtSvcServer).PoolRebuildStart(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MgmtSvc_PoolRebuildStart_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MgmtSvcServer).PoolRebuildStart(ctx, req.(*PoolRebuildStartReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _MgmtSvc_PoolRebuildStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PoolRebuildStopReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MgmtSvcServer).PoolRebuildStop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MgmtSvc_PoolRebuildStop_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MgmtSvcServer).PoolRebuildStop(ctx, req.(*PoolRebuildStopReq)) + } + return interceptor(ctx, in, info, handler) +} + func _MgmtSvc_GetAttachInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAttachInfoReq) if err := dec(in); err != nil { @@ -1571,24 +1661,6 @@ func _MgmtSvc_SystemCheckRepair_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _MgmtSvc_PoolUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PoolUpgradeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MgmtSvcServer).PoolUpgrade(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: MgmtSvc_PoolUpgrade_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MgmtSvcServer).PoolUpgrade(ctx, req.(*PoolUpgradeReq)) - } - return interceptor(ctx, in, info, handler) -} - func _MgmtSvc_SystemSetAttr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SystemSetAttrReq) if err := dec(in); err != nil { @@ -1794,6 +1866,18 @@ var MgmtSvc_ServiceDesc = grpc.ServiceDesc{ MethodName: "PoolDeleteACL", Handler: _MgmtSvc_PoolDeleteACL_Handler, }, + { + MethodName: "PoolUpgrade", + Handler: _MgmtSvc_PoolUpgrade_Handler, + }, + { + MethodName: "PoolRebuildStart", + Handler: _MgmtSvc_PoolRebuildStart_Handler, + }, + { + MethodName: "PoolRebuildStop", + Handler: _MgmtSvc_PoolRebuildStop_Handler, + }, { MethodName: "GetAttachInfo", Handler: _MgmtSvc_GetAttachInfo_Handler, @@ -1870,10 +1954,6 @@ var MgmtSvc_ServiceDesc = grpc.ServiceDesc{ MethodName: "SystemCheckRepair", Handler: _MgmtSvc_SystemCheckRepair_Handler, }, - { - MethodName: "PoolUpgrade", - Handler: _MgmtSvc_PoolUpgrade_Handler, - }, { MethodName: "SystemSetAttr", Handler: _MgmtSvc_SystemSetAttr_Handler, diff --git a/src/control/common/proto/mgmt/pool.pb.go b/src/control/common/proto/mgmt/pool.pb.go index 69dd456bc89..502b1d2eb44 100644 --- a/src/control/common/proto/mgmt/pool.pb.go +++ b/src/control/common/proto/mgmt/pool.pb.go @@ -7,8 +7,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.5.0 +// protoc-gen-go v1.34.1 +// protoc v3.14.0 // source: mgmt/pool.proto package mgmt @@ -2798,6 +2798,240 @@ func (x *PoolQueryTargetResp) GetInfos() []*PoolQueryTargetInfo { return nil } +// PoolRebuildStartReq contains information about a request to start an interactive rebuild on a +// given pool. +type PoolRebuildStartReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sys string `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty"` // DAOS system identifier + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // DAOS pool identifier + SvcRanks []uint32 `protobuf:"varint,3,rep,packed,name=svc_ranks,json=svcRanks,proto3" json:"svc_ranks,omitempty"` // List of pool service ranks +} + +func (x *PoolRebuildStartReq) Reset() { + *x = PoolRebuildStartReq{} + if protoimpl.UnsafeEnabled { + mi := &file_mgmt_pool_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoolRebuildStartReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoolRebuildStartReq) ProtoMessage() {} + +func (x *PoolRebuildStartReq) ProtoReflect() protoreflect.Message { + mi := &file_mgmt_pool_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoolRebuildStartReq.ProtoReflect.Descriptor instead. +func (*PoolRebuildStartReq) Descriptor() ([]byte, []int) { + return file_mgmt_pool_proto_rawDescGZIP(), []int{33} +} + +func (x *PoolRebuildStartReq) GetSys() string { + if x != nil { + return x.Sys + } + return "" +} + +func (x *PoolRebuildStartReq) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PoolRebuildStartReq) GetSvcRanks() []uint32 { + if x != nil { + return x.SvcRanks + } + return nil +} + +// PoolRebuildStartResp returns state which indicates whether request was accepted successfully. +type PoolRebuildStartResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // DAOS error code +} + +func (x *PoolRebuildStartResp) Reset() { + *x = PoolRebuildStartResp{} + if protoimpl.UnsafeEnabled { + mi := &file_mgmt_pool_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoolRebuildStartResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoolRebuildStartResp) ProtoMessage() {} + +func (x *PoolRebuildStartResp) ProtoReflect() protoreflect.Message { + mi := &file_mgmt_pool_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoolRebuildStartResp.ProtoReflect.Descriptor instead. +func (*PoolRebuildStartResp) Descriptor() ([]byte, []int) { + return file_mgmt_pool_proto_rawDescGZIP(), []int{34} +} + +func (x *PoolRebuildStartResp) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +// PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a +// given pool. +type PoolRebuildStopReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sys string `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty"` // DAOS system identifier + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // DAOS pool identifier + Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` // Force interactive rebuild stop + SvcRanks []uint32 `protobuf:"varint,4,rep,packed,name=svc_ranks,json=svcRanks,proto3" json:"svc_ranks,omitempty"` // List of pool service ranks +} + +func (x *PoolRebuildStopReq) Reset() { + *x = PoolRebuildStopReq{} + if protoimpl.UnsafeEnabled { + mi := &file_mgmt_pool_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoolRebuildStopReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoolRebuildStopReq) ProtoMessage() {} + +func (x *PoolRebuildStopReq) ProtoReflect() protoreflect.Message { + mi := &file_mgmt_pool_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoolRebuildStopReq.ProtoReflect.Descriptor instead. +func (*PoolRebuildStopReq) Descriptor() ([]byte, []int) { + return file_mgmt_pool_proto_rawDescGZIP(), []int{35} +} + +func (x *PoolRebuildStopReq) GetSys() string { + if x != nil { + return x.Sys + } + return "" +} + +func (x *PoolRebuildStopReq) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PoolRebuildStopReq) GetForce() bool { + if x != nil { + return x.Force + } + return false +} + +func (x *PoolRebuildStopReq) GetSvcRanks() []uint32 { + if x != nil { + return x.SvcRanks + } + return nil +} + +// PoolRebuildStopResp returns state which indicates whether request was accepted successfully. +type PoolRebuildStopResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // DAOS error code +} + +func (x *PoolRebuildStopResp) Reset() { + *x = PoolRebuildStopResp{} + if protoimpl.UnsafeEnabled { + mi := &file_mgmt_pool_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoolRebuildStopResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoolRebuildStopResp) ProtoMessage() {} + +func (x *PoolRebuildStopResp) ProtoReflect() protoreflect.Message { + mi := &file_mgmt_pool_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoolRebuildStopResp.ProtoReflect.Descriptor instead. +func (*PoolRebuildStopResp) Descriptor() ([]byte, []int) { + return file_mgmt_pool_proto_rawDescGZIP(), []int{36} +} + +func (x *PoolRebuildStopResp) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + type ListPoolsResp_Pool struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2813,7 +3047,7 @@ type ListPoolsResp_Pool struct { func (x *ListPoolsResp_Pool) Reset() { *x = ListPoolsResp_Pool{} if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[33] + mi := &file_mgmt_pool_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2826,7 +3060,7 @@ func (x *ListPoolsResp_Pool) String() string { func (*ListPoolsResp_Pool) ProtoMessage() {} func (x *ListPoolsResp_Pool) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[33] + mi := &file_mgmt_pool_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2888,7 +3122,7 @@ type ListContResp_Cont struct { func (x *ListContResp_Cont) Reset() { *x = ListContResp_Cont{} if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[34] + mi := &file_mgmt_pool_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2901,7 +3135,7 @@ func (x *ListContResp_Cont) String() string { func (*ListContResp_Cont) ProtoMessage() {} func (x *ListContResp_Cont) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[34] + mi := &file_mgmt_pool_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3251,7 +3485,25 @@ var file_mgmt_pool_proto_rawDesc = []byte{ 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x69, 0x6e, - 0x66, 0x6f, 0x73, 0x2a, 0x25, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x65, + 0x66, 0x6f, 0x73, 0x22, 0x54, 0x0a, 0x13, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x79, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x79, 0x73, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x73, 0x76, 0x63, 0x5f, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, + 0x08, 0x73, 0x76, 0x63, 0x52, 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x2e, 0x0a, 0x14, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x69, 0x0a, 0x12, 0x50, 0x6f, 0x6f, + 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12, + 0x10, 0x0a, 0x03, 0x73, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x79, + 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x76, 0x63, 0x5f, 0x72, + 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x76, 0x63, 0x52, + 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x2d, 0x0a, 0x13, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x2a, 0x25, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x43, 0x4d, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x56, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0x5d, 0x0a, 0x10, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, @@ -3279,7 +3531,7 @@ func file_mgmt_pool_proto_rawDescGZIP() []byte { } var file_mgmt_pool_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_mgmt_pool_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_mgmt_pool_proto_msgTypes = make([]protoimpl.MessageInfo, 39) var file_mgmt_pool_proto_goTypes = []interface{}{ (StorageMediaType)(0), // 0: mgmt.StorageMediaType (PoolServiceState)(0), // 1: mgmt.PoolServiceState @@ -3319,13 +3571,17 @@ var file_mgmt_pool_proto_goTypes = []interface{}{ (*StorageTargetUsage)(nil), // 35: mgmt.StorageTargetUsage (*PoolQueryTargetInfo)(nil), // 36: mgmt.PoolQueryTargetInfo (*PoolQueryTargetResp)(nil), // 37: mgmt.PoolQueryTargetResp - (*ListPoolsResp_Pool)(nil), // 38: mgmt.ListPoolsResp.Pool - (*ListContResp_Cont)(nil), // 39: mgmt.ListContResp.Cont + (*PoolRebuildStartReq)(nil), // 38: mgmt.PoolRebuildStartReq + (*PoolRebuildStartResp)(nil), // 39: mgmt.PoolRebuildStartResp + (*PoolRebuildStopReq)(nil), // 40: mgmt.PoolRebuildStopReq + (*PoolRebuildStopResp)(nil), // 41: mgmt.PoolRebuildStopResp + (*ListPoolsResp_Pool)(nil), // 42: mgmt.ListPoolsResp.Pool + (*ListContResp_Cont)(nil), // 43: mgmt.ListContResp.Cont } var file_mgmt_pool_proto_depIdxs = []int32{ 27, // 0: mgmt.PoolCreateReq.properties:type_name -> mgmt.PoolProperty - 38, // 1: mgmt.ListPoolsResp.pools:type_name -> mgmt.ListPoolsResp.Pool - 39, // 2: mgmt.ListContResp.containers:type_name -> mgmt.ListContResp.Cont + 42, // 1: mgmt.ListPoolsResp.pools:type_name -> mgmt.ListPoolsResp.Pool + 43, // 2: mgmt.ListContResp.containers:type_name -> mgmt.ListContResp.Cont 0, // 3: mgmt.StorageUsageStats.media_type:type_name -> mgmt.StorageMediaType 2, // 4: mgmt.PoolRebuildStatus.state:type_name -> mgmt.PoolRebuildStatus.State 25, // 5: mgmt.PoolQueryResp.rebuild:type_name -> mgmt.PoolRebuildStatus @@ -3749,7 +4005,7 @@ func file_mgmt_pool_proto_init() { } } file_mgmt_pool_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPoolsResp_Pool); i { + switch v := v.(*PoolRebuildStartReq); i { case 0: return &v.state case 1: @@ -3761,6 +4017,54 @@ func file_mgmt_pool_proto_init() { } } file_mgmt_pool_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoolRebuildStartResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mgmt_pool_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoolRebuildStopReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mgmt_pool_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoolRebuildStopResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mgmt_pool_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPoolsResp_Pool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mgmt_pool_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListContResp_Cont); i { case 0: return &v.state @@ -3783,7 +4087,7 @@ func file_mgmt_pool_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_mgmt_pool_proto_rawDesc, NumEnums: 5, - NumMessages: 35, + NumMessages: 39, NumExtensions: 0, NumServices: 0, }, diff --git a/src/control/lib/control/pool.go b/src/control/lib/control/pool.go index 787eb598210..b265d1ada86 100644 --- a/src/control/lib/control/pool.go +++ b/src/control/lib/control/pool.go @@ -1322,3 +1322,73 @@ func getMaxPoolSize(ctx context.Context, rpcClient UnaryInvoker, createReq *Pool return metaBytes, nvmeBytes, nil } + +// PoolRebuildOpcode indicates the type of interactive rebuild operation to be triggererd. +type PoolRebuildOpCode int32 + +// PoolRebuildOpCode definitions for supported interactive rebuild operations. +const ( + PoolRebuildOpCodeUnknown PoolRebuildOpCode = iota + PoolRebuildOpCodeStart + PoolRebuildOpCodeStop +) + +func (op PoolRebuildOpCode) String() string { + return map[PoolRebuildOpCode]string{ + PoolRebuildOpCodeUnknown: "unknown", + PoolRebuildOpCodeStart: "start", + PoolRebuildOpCodeStop: "stop", + }[op] +} + +// PoolRebuildReq contains pool-rebuild operation parameters. ID identifies the pool on which the +// rebuild operation (specified by the opcode) should be run. +type PoolRebuildReq struct { + poolRequest + ID string + Op PoolRebuildOpCode + Force bool +} + +// PoolRebuild sends a pool rebuild request relating to the requested opcode to the pool service +// leader. +func PoolRebuild(ctx context.Context, rpcClient UnaryInvoker, req *PoolRebuildReq) error { + if req == nil { + return errors.Errorf("nil %T in PoolRebuild()", req) + } + + if req.Op == PoolRebuildOpCodeStart { + if req.Force { + return errors.Errorf("force flag not supported with pool-rebuild opcode %s", + req.Op) + } + + pbReq := &mgmtpb.PoolRebuildStartReq{ + Sys: req.getSystem(rpcClient), + Id: req.ID, + } + req.setRPC(func(ctx context.Context, conn *grpc.ClientConn) (proto.Message, error) { + return mgmtpb.NewMgmtSvcClient(conn).PoolRebuildStart(ctx, pbReq) + }) + rpcClient.Debugf("pool-rebuild request: %s\n", pbUtil.Debug(pbReq)) + } else if req.Op == PoolRebuildOpCodeStop { + pbReq := &mgmtpb.PoolRebuildStopReq{ + Sys: req.getSystem(rpcClient), + Id: req.ID, + Force: req.Force, + } + req.setRPC(func(ctx context.Context, conn *grpc.ClientConn) (proto.Message, error) { + return mgmtpb.NewMgmtSvcClient(conn).PoolRebuildStop(ctx, pbReq) + }) + rpcClient.Debugf("pool-rebuild request: %s\n", pbUtil.Debug(pbReq)) + } else { + return errors.Errorf("unrecognized pool-rebuild opcode %d", req.Op) + } + + ur, err := rpcClient.InvokeUnaryRPC(ctx, req) + if err != nil { + return err + } + + return errors.Wrapf(ur.getMSError(), "pool-rebuild %s failed", req.Op.String()) +} diff --git a/src/control/lib/control/pool_test.go b/src/control/lib/control/pool_test.go index 5d4937dccb9..0380757fa79 100644 --- a/src/control/lib/control/pool_test.go +++ b/src/control/lib/control/pool_test.go @@ -3600,3 +3600,112 @@ func TestControl_PoolCreateAllCmd(t *testing.T) { }) } } + +func TestControl_PoolRebuild(t *testing.T) { + for name, tc := range map[string]struct { + mic *MockInvokerConfig + req *PoolRebuildReq + expErr error + }{ + "no opcode": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + }, + expErr: errors.New("unrecognized pool-rebuild opcode"), + }, + "local failure": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStart, + }, + mic: &MockInvokerConfig{ + UnaryError: errors.New("local failed"), + }, + expErr: errors.New("local failed"), + }, + "remote failure": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStart, + }, + mic: &MockInvokerConfig{ + UnaryResponse: MockMSResponse("host1", errors.New("remote failed"), nil), + }, + expErr: errors.New("remote failed"), + }, + "-DER_GRPVER is retried": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStart, + }, + mic: &MockInvokerConfig{ + UnaryResponseSet: []*UnaryResponse{ + MockMSResponse("host1", daos.GroupVersionMismatch, nil), + MockMSResponse("host1", nil, &mgmtpb.PoolRebuildStartResp{}), + }, + }, + }, + "-DER_AGAIN is retried": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStop, + }, + mic: &MockInvokerConfig{ + UnaryResponseSet: []*UnaryResponse{ + MockMSResponse("host1", daos.TryAgain, nil), + MockMSResponse("host1", nil, &mgmtpb.PoolRebuildStopResp{}), + }, + }, + }, + "start rebuild": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStart, + }, + mic: &MockInvokerConfig{ + UnaryResponse: MockMSResponse("host1", nil, + &mgmtpb.PoolRebuildStartResp{}, + ), + }, + }, + "start rebuild; with force flag": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStart, + Force: true, + }, + expErr: errors.New("force flag not supported"), + }, + "stop rebuild; with force flag": { + req: &PoolRebuildReq{ + ID: test.MockUUID(), + Op: PoolRebuildOpCodeStop, + Force: true, + }, + mic: &MockInvokerConfig{ + UnaryResponse: MockMSResponse("host1", nil, + &mgmtpb.PoolRebuildStopResp{}, + ), + }, + }, + } { + t.Run(name, func(t *testing.T) { + log, buf := logging.NewTestLogger(t.Name()) + defer test.ShowBufferOnFailure(t, buf) + + mic := tc.mic + if mic == nil { + mic = DefaultMockInvokerConfig() + } + + ctx := test.Context(t) + mi := NewMockInvoker(log, mic) + + gotErr := PoolRebuild(ctx, mi, tc.req) + test.CmpErr(t, tc.expErr, gotErr) + if tc.expErr != nil { + return + } + }) + } +} diff --git a/src/control/lib/daos/drpc.go b/src/control/lib/daos/drpc.go index 303c91d842e..000d104e834 100644 --- a/src/control/lib/daos/drpc.go +++ b/src/control/lib/daos/drpc.go @@ -115,6 +115,8 @@ func (m MgmtMethod) String() string { MethodPoolUpgrade: "PoolUpgrade", MethodLedManage: "LedManage", MethodSetupClientTelemetry: "SetupClientTelemetry", + MethodPoolRebuildStart: "PoolRebuildStart", + MethodPoolRebuildStop: "PoolRebuildStop", }[m]; ok { return s } @@ -203,6 +205,10 @@ const ( MethodLedManage MgmtMethod = C.DRPC_METHOD_MGMT_LED_MANAGE // MethodSetupClientTelemetry defines a method to setup client telemetry MethodSetupClientTelemetry MgmtMethod = C.DRPC_METHOD_MGMT_SETUP_CLIENT_TELEM + // MethodPoolRebuildStart defines a method start an interactive pool rebuild + MethodPoolRebuildStart MgmtMethod = C.DRPC_METHOD_MGMT_POOL_REBUILD_START + // MethodPoolRebuildStop defines a method stop an interactive pool rebuild + MethodPoolRebuildStop MgmtMethod = C.DRPC_METHOD_MGMT_POOL_REBUILD_STOP ) type SrvMethod int32 diff --git a/src/control/security/grpc_authorization.go b/src/control/security/grpc_authorization.go index dc80a114921..7acbc1277b9 100644 --- a/src/control/security/grpc_authorization.go +++ b/src/control/security/grpc_authorization.go @@ -1,5 +1,6 @@ // // (C) Copyright 2019-2024 Intel Corporation. +// (C) Copyright 2025 Hewlett Packard Enterprise Development LP // // SPDX-License-Identifier: BSD-2-Clause-Patent // @@ -67,6 +68,9 @@ var methodAuthorizations = map[string][]Component{ "/mgmt.MgmtSvc/PoolReintegrate": {ComponentAdmin}, "/mgmt.MgmtSvc/PoolEvict": {ComponentAdmin, ComponentAgent}, "/mgmt.MgmtSvc/PoolExtend": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolUpgrade": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolRebuildStart": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolRebuildStop": {ComponentAdmin}, "/mgmt.MgmtSvc/GetAttachInfo": {ComponentAgent}, "/mgmt.MgmtSvc/ListPools": {ComponentAdmin}, "/mgmt.MgmtSvc/ListContainers": {ComponentAdmin}, @@ -83,7 +87,6 @@ var methodAuthorizations = map[string][]Component{ "/mgmt.MgmtSvc/FaultInjectReport": {ComponentAdmin}, "/mgmt.MgmtSvc/FaultInjectPoolFault": {ComponentAdmin}, "/mgmt.MgmtSvc/FaultInjectMgmtPoolFault": {ComponentAdmin}, - "/mgmt.MgmtSvc/PoolUpgrade": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemSetAttr": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemGetAttr": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemSetProp": {ComponentAdmin}, diff --git a/src/control/security/grpc_authorization_test.go b/src/control/security/grpc_authorization_test.go index cbb6026ea0f..3db0a31b2f9 100644 --- a/src/control/security/grpc_authorization_test.go +++ b/src/control/security/grpc_authorization_test.go @@ -1,5 +1,6 @@ // // (C) Copyright 2019-2024 Intel Corporation. +// (C) Copyright 2025 Hewlett Packard Enterprise Development LP // // SPDX-License-Identifier: BSD-2-Clause-Patent // @@ -92,6 +93,9 @@ func TestSecurity_ComponentHasAccess(t *testing.T) { "/mgmt.MgmtSvc/PoolReintegrate": {ComponentAdmin}, "/mgmt.MgmtSvc/PoolEvict": {ComponentAdmin, ComponentAgent}, "/mgmt.MgmtSvc/PoolExtend": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolUpgrade": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolRebuildStart": {ComponentAdmin}, + "/mgmt.MgmtSvc/PoolRebuildStop": {ComponentAdmin}, "/mgmt.MgmtSvc/GetAttachInfo": {ComponentAgent}, "/mgmt.MgmtSvc/ListPools": {ComponentAdmin}, "/mgmt.MgmtSvc/ListContainers": {ComponentAdmin}, @@ -108,7 +112,6 @@ func TestSecurity_ComponentHasAccess(t *testing.T) { "/mgmt.MgmtSvc/FaultInjectReport": {ComponentAdmin}, "/mgmt.MgmtSvc/FaultInjectPoolFault": {ComponentAdmin}, "/mgmt.MgmtSvc/FaultInjectMgmtPoolFault": {ComponentAdmin}, - "/mgmt.MgmtSvc/PoolUpgrade": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemSetAttr": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemGetAttr": {ComponentAdmin}, "/mgmt.MgmtSvc/SystemSetProp": {ComponentAdmin}, diff --git a/src/control/server/mgmt_pool.go b/src/control/server/mgmt_pool.go index 3fbe0d97d8f..f38f2cff9a5 100644 --- a/src/control/server/mgmt_pool.go +++ b/src/control/server/mgmt_pool.go @@ -1263,3 +1263,41 @@ func (svc *mgmtSvc) ListPools(ctx context.Context, req *mgmtpb.ListPoolsReq) (*m return resp, nil } + +// PoolRebuildStart forwards a pool interactive rebuild start request to the I/O Engine. +func (svc *mgmtSvc) PoolRebuildStart(ctx context.Context, req *mgmtpb.PoolRebuildStartReq) (*mgmtpb.PoolRebuildStartResp, error) { + if err := svc.checkLeaderRequest(req); err != nil { + return nil, err + } + + dResp, err := svc.makeLockedPoolServiceCall(ctx, daos.MethodPoolRebuildStart, req) + if err != nil { + return nil, err + } + + resp := &mgmtpb.PoolRebuildStartResp{} + if err := svc.unmarshalPB(dResp.Body, resp); err != nil { + return nil, err + } + + return resp, nil +} + +// PoolRebuildStop forwards a pool interactive rebuild stop request to the I/O Engine. +func (svc *mgmtSvc) PoolRebuildStop(ctx context.Context, req *mgmtpb.PoolRebuildStopReq) (*mgmtpb.PoolRebuildStopResp, error) { + if err := svc.checkLeaderRequest(req); err != nil { + return nil, err + } + + dResp, err := svc.makeLockedPoolServiceCall(ctx, daos.MethodPoolRebuildStop, req) + if err != nil { + return nil, err + } + + resp := &mgmtpb.PoolRebuildStopResp{} + if err := svc.unmarshalPB(dResp.Body, resp); err != nil { + return nil, err + } + + return resp, nil +} diff --git a/src/include/daos/drpc_modules.h b/src/include/daos/drpc_modules.h index 9ec351177c6..b96a0dbcd90 100644 --- a/src/include/daos/drpc_modules.h +++ b/src/include/daos/drpc_modules.h @@ -75,6 +75,8 @@ enum drpc_mgmt_method { DRPC_METHOD_MGMT_CHK_PROP = 245, DRPC_METHOD_MGMT_CHK_ACT = 246, DRPC_METHOD_MGMT_SETUP_CLIENT_TELEM = 247, + DRPC_METHOD_MGMT_POOL_REBUILD_START = 248, + DRPC_METHOD_MGMT_POOL_REBUILD_STOP = 249, NUM_DRPC_MGMT_METHODS /* Must be last */ }; diff --git a/src/mgmt/drpc_internal.h b/src/mgmt/drpc_internal.h index e47f992e6a5..f74b8e572dd 100644 --- a/src/mgmt/drpc_internal.h +++ b/src/mgmt/drpc_internal.h @@ -1,5 +1,6 @@ /* * (C) Copyright 2019-2022 Intel Corporation. + * (C) Copyright 2025 Hewlett Packard Enterprise Development LP * * SPDX-License-Identifier: BSD-2-Clause-Patent */ @@ -59,9 +60,16 @@ ds_mgmt_drpc_pool_get_acl(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); void ds_mgmt_drpc_pool_overwrite_acl(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); + void ds_mgmt_drpc_pool_upgrade(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); +void +ds_mgmt_drpc_pool_rebuild_start(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); + +void +ds_mgmt_drpc_pool_rebuild_stop(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); + void ds_mgmt_drpc_pool_update_acl(Drpc__Call *drpc_req, Drpc__Response *drpc_resp); diff --git a/src/mgmt/pool.pb-c.c b/src/mgmt/pool.pb-c.c index 64c645ed8a4..f62546f04c8 100644 --- a/src/mgmt/pool.pb-c.c +++ b/src/mgmt/pool.pb-c.c @@ -1504,176 +1504,245 @@ void mgmt__pool_query_target_resp__free_unpacked assert(message->base.descriptor == &mgmt__pool_query_target_resp__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor mgmt__pool_create_req__field_descriptors[14] = +void +mgmt__pool_rebuild_start_req__init(Mgmt__PoolRebuildStartReq *message) { - { - "uuid", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, uuid), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "sys", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "user", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, user), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "user_group", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, user_group), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "acl", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_STRING, - offsetof(Mgmt__PoolCreateReq, n_acl), - offsetof(Mgmt__PoolCreateReq, acl), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "properties", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__PoolCreateReq, n_properties), - offsetof(Mgmt__PoolCreateReq, properties), - &mgmt__pool_property__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "fault_domains", - 7, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolCreateReq, n_fault_domains), - offsetof(Mgmt__PoolCreateReq, fault_domains), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "num_svc_reps", - 8, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, num_svc_reps), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "total_bytes", - 9, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, total_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_ratio", - 10, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_DOUBLE, - offsetof(Mgmt__PoolCreateReq, n_tier_ratio), - offsetof(Mgmt__PoolCreateReq, tier_ratio), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "num_ranks", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, num_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "ranks", - 12, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolCreateReq, n_ranks), - offsetof(Mgmt__PoolCreateReq, ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_bytes", - 13, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Mgmt__PoolCreateReq, n_tier_bytes), - offsetof(Mgmt__PoolCreateReq, tier_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mem_ratio", - 14, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_FLOAT, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateReq, mem_ratio), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, + static const Mgmt__PoolRebuildStartReq init_value = MGMT__POOL_REBUILD_START_REQ__INIT; + *message = init_value; +} +size_t +mgmt__pool_rebuild_start_req__get_packed_size(const Mgmt__PoolRebuildStartReq *message) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_req__descriptor); + return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); +} +size_t +mgmt__pool_rebuild_start_req__pack(const Mgmt__PoolRebuildStartReq *message, uint8_t *out) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_req__descriptor); + return protobuf_c_message_pack((const ProtobufCMessage *)message, out); +} +size_t +mgmt__pool_rebuild_start_req__pack_to_buffer(const Mgmt__PoolRebuildStartReq *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_req__descriptor); + return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); +} +Mgmt__PoolRebuildStartReq * +mgmt__pool_rebuild_start_req__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data) +{ + return (Mgmt__PoolRebuildStartReq *)protobuf_c_message_unpack( + &mgmt__pool_rebuild_start_req__descriptor, allocator, len, data); +} +void +mgmt__pool_rebuild_start_req__free_unpacked(Mgmt__PoolRebuildStartReq *message, + ProtobufCAllocator *allocator) +{ + if (!message) + return; + assert(message->base.descriptor == &mgmt__pool_rebuild_start_req__descriptor); + protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); +} +void +mgmt__pool_rebuild_start_resp__init(Mgmt__PoolRebuildStartResp *message) +{ + static const Mgmt__PoolRebuildStartResp init_value = MGMT__POOL_REBUILD_START_RESP__INIT; + *message = init_value; +} +size_t +mgmt__pool_rebuild_start_resp__get_packed_size(const Mgmt__PoolRebuildStartResp *message) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); + return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); +} +size_t +mgmt__pool_rebuild_start_resp__pack(const Mgmt__PoolRebuildStartResp *message, uint8_t *out) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); + return protobuf_c_message_pack((const ProtobufCMessage *)message, out); +} +size_t +mgmt__pool_rebuild_start_resp__pack_to_buffer(const Mgmt__PoolRebuildStartResp *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); + return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); +} +Mgmt__PoolRebuildStartResp * +mgmt__pool_rebuild_start_resp__unpack(ProtobufCAllocator *allocator, size_t len, + const uint8_t *data) +{ + return (Mgmt__PoolRebuildStartResp *)protobuf_c_message_unpack( + &mgmt__pool_rebuild_start_resp__descriptor, allocator, len, data); +} +void +mgmt__pool_rebuild_start_resp__free_unpacked(Mgmt__PoolRebuildStartResp *message, + ProtobufCAllocator *allocator) +{ + if (!message) + return; + assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); + protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); +} +void +mgmt__pool_rebuild_stop_req__init(Mgmt__PoolRebuildStopReq *message) +{ + static const Mgmt__PoolRebuildStopReq init_value = MGMT__POOL_REBUILD_STOP_REQ__INIT; + *message = init_value; +} +size_t +mgmt__pool_rebuild_stop_req__get_packed_size(const Mgmt__PoolRebuildStopReq *message) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_req__descriptor); + return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); +} +size_t +mgmt__pool_rebuild_stop_req__pack(const Mgmt__PoolRebuildStopReq *message, uint8_t *out) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_req__descriptor); + return protobuf_c_message_pack((const ProtobufCMessage *)message, out); +} +size_t +mgmt__pool_rebuild_stop_req__pack_to_buffer(const Mgmt__PoolRebuildStopReq *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_req__descriptor); + return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); +} +Mgmt__PoolRebuildStopReq * +mgmt__pool_rebuild_stop_req__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data) +{ + return (Mgmt__PoolRebuildStopReq *)protobuf_c_message_unpack( + &mgmt__pool_rebuild_stop_req__descriptor, allocator, len, data); +} +void +mgmt__pool_rebuild_stop_req__free_unpacked(Mgmt__PoolRebuildStopReq *message, + ProtobufCAllocator *allocator) +{ + if (!message) + return; + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_req__descriptor); + protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); +} +void +mgmt__pool_rebuild_stop_resp__init(Mgmt__PoolRebuildStopResp *message) +{ + static const Mgmt__PoolRebuildStopResp init_value = MGMT__POOL_REBUILD_STOP_RESP__INIT; + *message = init_value; +} +size_t +mgmt__pool_rebuild_stop_resp__get_packed_size(const Mgmt__PoolRebuildStopResp *message) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); + return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); +} +size_t +mgmt__pool_rebuild_stop_resp__pack(const Mgmt__PoolRebuildStopResp *message, uint8_t *out) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); + return protobuf_c_message_pack((const ProtobufCMessage *)message, out); +} +size_t +mgmt__pool_rebuild_stop_resp__pack_to_buffer(const Mgmt__PoolRebuildStopResp *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); + return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); +} +Mgmt__PoolRebuildStopResp * +mgmt__pool_rebuild_stop_resp__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data) +{ + return (Mgmt__PoolRebuildStopResp *)protobuf_c_message_unpack( + &mgmt__pool_rebuild_stop_resp__descriptor, allocator, len, data); +} +void +mgmt__pool_rebuild_stop_resp__free_unpacked(Mgmt__PoolRebuildStopResp *message, + ProtobufCAllocator *allocator) +{ + if (!message) + return; + assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); + protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); +} +static const ProtobufCFieldDescriptor mgmt__pool_create_req__field_descriptors[14] = { + { + "uuid", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, uuid), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "sys", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "user", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, user), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "user_group", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, user_group), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "acl", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_STRING, + offsetof(Mgmt__PoolCreateReq, n_acl), offsetof(Mgmt__PoolCreateReq, acl), NULL, + &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "properties", 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__PoolCreateReq, n_properties), offsetof(Mgmt__PoolCreateReq, properties), + &mgmt__pool_property__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "fault_domains", 7, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolCreateReq, n_fault_domains), + offsetof(Mgmt__PoolCreateReq, fault_domains), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "num_svc_reps", 8, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, num_svc_reps), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "total_bytes", 9, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, total_bytes), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_ratio", 10, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, + offsetof(Mgmt__PoolCreateReq, n_tier_ratio), offsetof(Mgmt__PoolCreateReq, tier_ratio), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "num_ranks", 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, num_ranks), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "ranks", 12, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolCreateReq, n_ranks), offsetof(Mgmt__PoolCreateReq, ranks), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_bytes", 13, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT64, + offsetof(Mgmt__PoolCreateReq, n_tier_bytes), offsetof(Mgmt__PoolCreateReq, tier_bytes), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mem_ratio", 14, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_FLOAT, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateReq, mem_ratio), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_create_req__field_indices_by_name[] = { 4, /* field[4] = acl */ @@ -1711,92 +1780,47 @@ const ProtobufCMessageDescriptor mgmt__pool_create_req__descriptor = (ProtobufCMessageInit) mgmt__pool_create_req__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_create_resp__field_descriptors[7] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ldr", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateResp, svc_ldr), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_reps", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolCreateResp, n_svc_reps), - offsetof(Mgmt__PoolCreateResp, svc_reps), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tgt_ranks", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolCreateResp, n_tgt_ranks), - offsetof(Mgmt__PoolCreateResp, tgt_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_bytes", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Mgmt__PoolCreateResp, n_tier_bytes), - offsetof(Mgmt__PoolCreateResp, tier_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mem_file_bytes", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateResp, mem_file_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "md_on_ssd_active", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolCreateResp, md_on_ssd_active), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_create_resp__field_descriptors[7] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ldr", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateResp, svc_ldr), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_reps", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolCreateResp, n_svc_reps), offsetof(Mgmt__PoolCreateResp, svc_reps), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tgt_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolCreateResp, n_tgt_ranks), offsetof(Mgmt__PoolCreateResp, tgt_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_bytes", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT64, + offsetof(Mgmt__PoolCreateResp, n_tier_bytes), offsetof(Mgmt__PoolCreateResp, tier_bytes), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mem_file_bytes", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateResp, mem_file_bytes), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "md_on_ssd_active", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolCreateResp, md_on_ssd_active), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_create_resp__field_indices_by_name[] = { 6, /* field[6] = md_on_ssd_active */ @@ -1827,110 +1851,65 @@ const ProtobufCMessageDescriptor mgmt__pool_create_resp__descriptor = (ProtobufCMessageInit) mgmt__pool_create_resp__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_destroy_req__field_descriptors[5] = -{ - { - "sys", +static const ProtobufCFieldDescriptor mgmt__pool_destroy_req__field_descriptors[5] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDestroyReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDestroyReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "force", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDestroyReq, force), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolDestroyReq, n_svc_ranks), offsetof(Mgmt__PoolDestroyReq, svc_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "recursive", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDestroyReq, recursive), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_destroy_req__field_indices_by_name[] = { + 2, /* field[2] = force */ + 1, /* field[1] = id */ + 4, /* field[4] = recursive */ + 3, /* field[3] = svc_ranks */ + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__pool_destroy_req__number_ranges[1 + 1] = {{1, 0}, {0, 5}}; +const ProtobufCMessageDescriptor mgmt__pool_destroy_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolDestroyReq", + "PoolDestroyReq", + "Mgmt__PoolDestroyReq", + "mgmt", + sizeof(Mgmt__PoolDestroyReq), + 5, + mgmt__pool_destroy_req__field_descriptors, + mgmt__pool_destroy_req__field_indices_by_name, 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDestroyReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDestroyReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "force", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDestroyReq, force), + mgmt__pool_destroy_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_destroy_req__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolDestroyReq, n_svc_ranks), - offsetof(Mgmt__PoolDestroyReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "recursive", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDestroyReq, recursive), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_destroy_req__field_indices_by_name[] = { - 2, /* field[2] = force */ - 1, /* field[1] = id */ - 4, /* field[4] = recursive */ - 3, /* field[3] = svc_ranks */ - 0, /* field[0] = sys */ -}; -static const ProtobufCIntRange mgmt__pool_destroy_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor mgmt__pool_destroy_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolDestroyReq", - "PoolDestroyReq", - "Mgmt__PoolDestroyReq", - "mgmt", - sizeof(Mgmt__PoolDestroyReq), - 5, - mgmt__pool_destroy_req__field_descriptors, - mgmt__pool_destroy_req__field_indices_by_name, - 1, mgmt__pool_destroy_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_destroy_req__init, - NULL,NULL,NULL /* reserved[123] */ + NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_destroy_resp__field_descriptors[1] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDestroyResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_destroy_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDestroyResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_destroy_resp__field_indices_by_name[] = { 0, /* field[0] = status */ @@ -1955,92 +1934,44 @@ const ProtobufCMessageDescriptor mgmt__pool_destroy_resp__descriptor = (ProtobufCMessageInit) mgmt__pool_destroy_resp__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_evict_req__field_descriptors[7] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolEvictReq, n_svc_ranks), - offsetof(Mgmt__PoolEvictReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "handles", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_STRING, - offsetof(Mgmt__PoolEvictReq, n_handles), - offsetof(Mgmt__PoolEvictReq, handles), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "destroy", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictReq, destroy), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "force_destroy", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictReq, force_destroy), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "machine", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictReq, machine), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_evict_req__field_descriptors[7] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolEvictReq, n_svc_ranks), offsetof(Mgmt__PoolEvictReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "handles", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_STRING, + offsetof(Mgmt__PoolEvictReq, n_handles), offsetof(Mgmt__PoolEvictReq, handles), NULL, + &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "destroy", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictReq, destroy), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "force_destroy", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictReq, force_destroy), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "machine", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictReq, machine), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_evict_req__field_indices_by_name[] = { 4, /* field[4] = destroy */ @@ -2071,1545 +2002,945 @@ const ProtobufCMessageDescriptor mgmt__pool_evict_req__descriptor = (ProtobufCMessageInit) mgmt__pool_evict_req__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_evict_resp__field_descriptors[2] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "count", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolEvictResp, count), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_evict_resp__field_descriptors[2] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "count", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolEvictResp, count), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_evict_resp__field_indices_by_name[] = { - 1, /* field[1] = count */ - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_evict_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor mgmt__pool_evict_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolEvictResp", - "PoolEvictResp", - "Mgmt__PoolEvictResp", - "mgmt", - sizeof(Mgmt__PoolEvictResp), - 2, - mgmt__pool_evict_resp__field_descriptors, - mgmt__pool_evict_resp__field_indices_by_name, - 1, mgmt__pool_evict_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_evict_resp__init, - NULL,NULL,NULL /* reserved[123] */ + 1, /* field[1] = count */ + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_evict_resp__number_ranges[1 + 1] = {{1, 0}, {0, 2}}; +const ProtobufCMessageDescriptor mgmt__pool_evict_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolEvictResp", + "PoolEvictResp", + "Mgmt__PoolEvictResp", + "mgmt", + sizeof(Mgmt__PoolEvictResp), + 2, + mgmt__pool_evict_resp__field_descriptors, + mgmt__pool_evict_resp__field_indices_by_name, + 1, + mgmt__pool_evict_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_evict_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_exclude_req__field_descriptors[6] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExcludeReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExcludeReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rank", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExcludeReq, rank), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "target_idx", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolExcludeReq, n_target_idx), offsetof(Mgmt__PoolExcludeReq, target_idx), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolExcludeReq, n_svc_ranks), offsetof(Mgmt__PoolExcludeReq, svc_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "force", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExcludeReq, force), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCFieldDescriptor mgmt__pool_exclude_req__field_descriptors[6] = -{ - { - "sys", +static const unsigned mgmt__pool_exclude_req__field_indices_by_name[] = { + 5, /* field[5] = force */ + 1, /* field[1] = id */ + 2, /* field[2] = rank */ + 4, /* field[4] = svc_ranks */ + 0, /* field[0] = sys */ + 3, /* field[3] = target_idx */ +}; +static const ProtobufCIntRange mgmt__pool_exclude_req__number_ranges[1 + 1] = {{1, 0}, {0, 6}}; +const ProtobufCMessageDescriptor mgmt__pool_exclude_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolExcludeReq", + "PoolExcludeReq", + "Mgmt__PoolExcludeReq", + "mgmt", + sizeof(Mgmt__PoolExcludeReq), + 6, + mgmt__pool_exclude_req__field_descriptors, + mgmt__pool_exclude_req__field_indices_by_name, 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExcludeReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExcludeReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rank", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExcludeReq, rank), + mgmt__pool_exclude_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_exclude_req__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "target_idx", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolExcludeReq, n_target_idx), - offsetof(Mgmt__PoolExcludeReq, target_idx), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_exclude_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExcludeResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_exclude_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_exclude_resp__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_exclude_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolExcludeResp", + "PoolExcludeResp", + "Mgmt__PoolExcludeResp", + "mgmt", + sizeof(Mgmt__PoolExcludeResp), + 1, + mgmt__pool_exclude_resp__field_descriptors, + mgmt__pool_exclude_resp__field_indices_by_name, + 1, + mgmt__pool_exclude_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_exclude_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_drain_req__field_descriptors[5] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDrainReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDrainReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rank", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDrainReq, rank), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "target_idx", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolDrainReq, n_target_idx), offsetof(Mgmt__PoolDrainReq, target_idx), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolDrainReq, n_svc_ranks), offsetof(Mgmt__PoolDrainReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_drain_req__field_indices_by_name[] = { + 1, /* field[1] = id */ + 2, /* field[2] = rank */ + 4, /* field[4] = svc_ranks */ + 0, /* field[0] = sys */ + 3, /* field[3] = target_idx */ +}; +static const ProtobufCIntRange mgmt__pool_drain_req__number_ranges[1 + 1] = {{1, 0}, {0, 5}}; +const ProtobufCMessageDescriptor mgmt__pool_drain_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolDrainReq", + "PoolDrainReq", + "Mgmt__PoolDrainReq", + "mgmt", + sizeof(Mgmt__PoolDrainReq), 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolExcludeReq, n_svc_ranks), - offsetof(Mgmt__PoolExcludeReq, svc_ranks), + mgmt__pool_drain_req__field_descriptors, + mgmt__pool_drain_req__field_indices_by_name, + 1, + mgmt__pool_drain_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_drain_req__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "force", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExcludeReq, force), + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_drain_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolDrainResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_drain_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_drain_resp__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_drain_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolDrainResp", + "PoolDrainResp", + "Mgmt__PoolDrainResp", + "mgmt", + sizeof(Mgmt__PoolDrainResp), + 1, + mgmt__pool_drain_resp__field_descriptors, + mgmt__pool_drain_resp__field_indices_by_name, + 1, + mgmt__pool_drain_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_drain_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_extend_req__field_descriptors[7] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExtendReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExtendReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolExtendReq, n_ranks), offsetof(Mgmt__PoolExtendReq, ranks), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolExtendReq, n_svc_ranks), offsetof(Mgmt__PoolExtendReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_bytes", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT64, + offsetof(Mgmt__PoolExtendReq, n_tier_bytes), offsetof(Mgmt__PoolExtendReq, tier_bytes), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "fault_domains", 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolExtendReq, n_fault_domains), + offsetof(Mgmt__PoolExtendReq, fault_domains), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mem_ratio", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_FLOAT, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExtendReq, mem_ratio), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_extend_req__field_indices_by_name[] = { + 5, /* field[5] = fault_domains */ + 1, /* field[1] = id */ + 6, /* field[6] = mem_ratio */ + 2, /* field[2] = ranks */ + 3, /* field[3] = svc_ranks */ + 0, /* field[0] = sys */ + 4, /* field[4] = tier_bytes */ +}; +static const ProtobufCIntRange mgmt__pool_extend_req__number_ranges[1 + 1] = {{1, 0}, {0, 7}}; +const ProtobufCMessageDescriptor mgmt__pool_extend_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolExtendReq", + "PoolExtendReq", + "Mgmt__PoolExtendReq", + "mgmt", + sizeof(Mgmt__PoolExtendReq), + 7, + mgmt__pool_extend_req__field_descriptors, + mgmt__pool_extend_req__field_indices_by_name, + 1, + mgmt__pool_extend_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_extend_req__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_exclude_req__field_indices_by_name[] = { - 5, /* field[5] = force */ - 1, /* field[1] = id */ - 2, /* field[2] = rank */ - 4, /* field[4] = svc_ranks */ - 0, /* field[0] = sys */ - 3, /* field[3] = target_idx */ + NULL /* reserved[123] */ }; -static const ProtobufCIntRange mgmt__pool_exclude_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } +static const ProtobufCFieldDescriptor mgmt__pool_extend_resp__field_descriptors[2] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolExtendResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_bytes", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT64, + offsetof(Mgmt__PoolExtendResp, n_tier_bytes), offsetof(Mgmt__PoolExtendResp, tier_bytes), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -const ProtobufCMessageDescriptor mgmt__pool_exclude_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolExcludeReq", - "PoolExcludeReq", - "Mgmt__PoolExcludeReq", - "mgmt", - sizeof(Mgmt__PoolExcludeReq), - 6, - mgmt__pool_exclude_req__field_descriptors, - mgmt__pool_exclude_req__field_indices_by_name, - 1, mgmt__pool_exclude_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_exclude_req__init, - NULL,NULL,NULL /* reserved[123] */ +static const unsigned mgmt__pool_extend_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ + 1, /* field[1] = tier_bytes */ +}; +static const ProtobufCIntRange mgmt__pool_extend_resp__number_ranges[1 + 1] = {{1, 0}, {0, 2}}; +const ProtobufCMessageDescriptor mgmt__pool_extend_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolExtendResp", + "PoolExtendResp", + "Mgmt__PoolExtendResp", + "mgmt", + sizeof(Mgmt__PoolExtendResp), + 2, + mgmt__pool_extend_resp__field_descriptors, + mgmt__pool_extend_resp__field_indices_by_name, + 1, + mgmt__pool_extend_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_extend_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_reint_req__field_descriptors[7] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolReintReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolReintReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rank", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolReintReq, rank), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "target_idx", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolReintReq, n_target_idx), offsetof(Mgmt__PoolReintReq, target_idx), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolReintReq, n_svc_ranks), offsetof(Mgmt__PoolReintReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_bytes", 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT64, + offsetof(Mgmt__PoolReintReq, n_tier_bytes), offsetof(Mgmt__PoolReintReq, tier_bytes), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mem_ratio", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_FLOAT, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolReintReq, mem_ratio), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCFieldDescriptor mgmt__pool_exclude_resp__field_descriptors[1] = -{ - { - "status", +static const unsigned mgmt__pool_reint_req__field_indices_by_name[] = { + 1, /* field[1] = id */ + 6, /* field[6] = mem_ratio */ + 2, /* field[2] = rank */ + 4, /* field[4] = svc_ranks */ + 0, /* field[0] = sys */ + 3, /* field[3] = target_idx */ + 5, /* field[5] = tier_bytes */ +}; +static const ProtobufCIntRange mgmt__pool_reint_req__number_ranges[1 + 1] = {{1, 0}, {0, 7}}; +const ProtobufCMessageDescriptor mgmt__pool_reint_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolReintReq", + "PoolReintReq", + "Mgmt__PoolReintReq", + "mgmt", + sizeof(Mgmt__PoolReintReq), + 7, + mgmt__pool_reint_req__field_descriptors, + mgmt__pool_reint_req__field_indices_by_name, 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExcludeResp, status), + mgmt__pool_reint_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_reint_req__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, + NULL /* reserved[123] */ }; -static const unsigned mgmt__pool_exclude_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ +static const ProtobufCFieldDescriptor mgmt__pool_reint_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolReintResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCIntRange mgmt__pool_exclude_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } +static const unsigned mgmt__pool_reint_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_reint_resp__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_reint_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolReintResp", + "PoolReintResp", + "Mgmt__PoolReintResp", + "mgmt", + sizeof(Mgmt__PoolReintResp), + 1, + mgmt__pool_reint_resp__field_descriptors, + mgmt__pool_reint_resp__field_indices_by_name, + 1, + mgmt__pool_reint_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_reint_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ }; -const ProtobufCMessageDescriptor mgmt__pool_exclude_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolExcludeResp", - "PoolExcludeResp", - "Mgmt__PoolExcludeResp", - "mgmt", - sizeof(Mgmt__PoolExcludeResp), - 1, - mgmt__pool_exclude_resp__field_descriptors, - mgmt__pool_exclude_resp__field_indices_by_name, - 1, mgmt__pool_exclude_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_exclude_resp__init, - NULL,NULL,NULL /* reserved[123] */ +static const ProtobufCFieldDescriptor mgmt__list_pools_req__field_descriptors[1] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCFieldDescriptor mgmt__pool_drain_req__field_descriptors[5] = -{ - { - "sys", +static const unsigned mgmt__list_pools_req__field_indices_by_name[] = { + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__list_pools_req__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__list_pools_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListPoolsReq", + "ListPoolsReq", + "Mgmt__ListPoolsReq", + "mgmt", + sizeof(Mgmt__ListPoolsReq), 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDrainReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDrainReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rank", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDrainReq, rank), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "target_idx", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolDrainReq, n_target_idx), - offsetof(Mgmt__PoolDrainReq, target_idx), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolDrainReq, n_svc_ranks), - offsetof(Mgmt__PoolDrainReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_drain_req__field_indices_by_name[] = { - 1, /* field[1] = id */ - 2, /* field[2] = rank */ - 4, /* field[4] = svc_ranks */ - 0, /* field[0] = sys */ - 3, /* field[3] = target_idx */ -}; -static const ProtobufCIntRange mgmt__pool_drain_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor mgmt__pool_drain_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolDrainReq", - "PoolDrainReq", - "Mgmt__PoolDrainReq", - "mgmt", - sizeof(Mgmt__PoolDrainReq), - 5, - mgmt__pool_drain_req__field_descriptors, - mgmt__pool_drain_req__field_indices_by_name, - 1, mgmt__pool_drain_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_drain_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_drain_resp__field_descriptors[1] = -{ - { - "status", + mgmt__list_pools_req__field_descriptors, + mgmt__list_pools_req__field_indices_by_name, 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolDrainResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_drain_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_drain_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } + mgmt__list_pools_req__number_ranges, + (ProtobufCMessageInit)mgmt__list_pools_req__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__list_pools_resp__pool__field_descriptors[5] = { + { + "uuid", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp__Pool, uuid), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "label", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp__Pool, label), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_reps", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__ListPoolsResp__Pool, n_svc_reps), + offsetof(Mgmt__ListPoolsResp__Pool, svc_reps), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "state", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp__Pool, state), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rebuild_state", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp__Pool, rebuild_state), NULL, &protobuf_c_empty_string, + 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -const ProtobufCMessageDescriptor mgmt__pool_drain_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolDrainResp", - "PoolDrainResp", - "Mgmt__PoolDrainResp", - "mgmt", - sizeof(Mgmt__PoolDrainResp), - 1, - mgmt__pool_drain_resp__field_descriptors, - mgmt__pool_drain_resp__field_indices_by_name, - 1, mgmt__pool_drain_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_drain_resp__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_extend_req__field_descriptors[7] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExtendReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExtendReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "ranks", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolExtendReq, n_ranks), - offsetof(Mgmt__PoolExtendReq, ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolExtendReq, n_svc_ranks), - offsetof(Mgmt__PoolExtendReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_bytes", +static const unsigned mgmt__list_pools_resp__pool__field_indices_by_name[] = { + 1, /* field[1] = label */ + 4, /* field[4] = rebuild_state */ + 3, /* field[3] = state */ + 2, /* field[2] = svc_reps */ + 0, /* field[0] = uuid */ +}; +static const ProtobufCIntRange mgmt__list_pools_resp__pool__number_ranges[1 + 1] = {{1, 0}, {0, 5}}; +const ProtobufCMessageDescriptor mgmt__list_pools_resp__pool__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListPoolsResp.Pool", + "Pool", + "Mgmt__ListPoolsResp__Pool", + "mgmt", + sizeof(Mgmt__ListPoolsResp__Pool), 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Mgmt__PoolExtendReq, n_tier_bytes), - offsetof(Mgmt__PoolExtendReq, tier_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "fault_domains", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolExtendReq, n_fault_domains), - offsetof(Mgmt__PoolExtendReq, fault_domains), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mem_ratio", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_FLOAT, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExtendReq, mem_ratio), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_extend_req__field_indices_by_name[] = { - 5, /* field[5] = fault_domains */ - 1, /* field[1] = id */ - 6, /* field[6] = mem_ratio */ - 2, /* field[2] = ranks */ - 3, /* field[3] = svc_ranks */ - 0, /* field[0] = sys */ - 4, /* field[4] = tier_bytes */ -}; -static const ProtobufCIntRange mgmt__pool_extend_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor mgmt__pool_extend_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolExtendReq", - "PoolExtendReq", - "Mgmt__PoolExtendReq", - "mgmt", - sizeof(Mgmt__PoolExtendReq), - 7, - mgmt__pool_extend_req__field_descriptors, - mgmt__pool_extend_req__field_indices_by_name, - 1, mgmt__pool_extend_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_extend_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_extend_resp__field_descriptors[2] = -{ - { - "status", + mgmt__list_pools_resp__pool__field_descriptors, + mgmt__list_pools_resp__pool__field_indices_by_name, 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolExtendResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_bytes", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Mgmt__PoolExtendResp, n_tier_bytes), - offsetof(Mgmt__PoolExtendResp, tier_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_extend_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ - 1, /* field[1] = tier_bytes */ -}; -static const ProtobufCIntRange mgmt__pool_extend_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor mgmt__pool_extend_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolExtendResp", - "PoolExtendResp", - "Mgmt__PoolExtendResp", - "mgmt", - sizeof(Mgmt__PoolExtendResp), - 2, - mgmt__pool_extend_resp__field_descriptors, - mgmt__pool_extend_resp__field_indices_by_name, - 1, mgmt__pool_extend_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_extend_resp__init, - NULL,NULL,NULL /* reserved[123] */ + mgmt__list_pools_resp__pool__number_ranges, + (ProtobufCMessageInit)mgmt__list_pools_resp__pool__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__list_pools_resp__field_descriptors[3] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "pools", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__ListPoolsResp, n_pools), offsetof(Mgmt__ListPoolsResp, pools), + &mgmt__list_pools_resp__pool__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "data_version", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__ListPoolsResp, data_version), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; -static const ProtobufCFieldDescriptor mgmt__pool_reint_req__field_descriptors[7] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolReintReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolReintReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rank", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolReintReq, rank), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "target_idx", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolReintReq, n_target_idx), - offsetof(Mgmt__PoolReintReq, target_idx), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolReintReq, n_svc_ranks), - offsetof(Mgmt__PoolReintReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_bytes", - 6, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT64, - offsetof(Mgmt__PoolReintReq, n_tier_bytes), - offsetof(Mgmt__PoolReintReq, tier_bytes), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mem_ratio", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_FLOAT, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolReintReq, mem_ratio), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_reint_req__field_indices_by_name[] = { - 1, /* field[1] = id */ - 6, /* field[6] = mem_ratio */ - 2, /* field[2] = rank */ - 4, /* field[4] = svc_ranks */ - 0, /* field[0] = sys */ - 3, /* field[3] = target_idx */ - 5, /* field[5] = tier_bytes */ -}; -static const ProtobufCIntRange mgmt__pool_reint_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 7 } -}; -const ProtobufCMessageDescriptor mgmt__pool_reint_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolReintReq", - "PoolReintReq", - "Mgmt__PoolReintReq", - "mgmt", - sizeof(Mgmt__PoolReintReq), - 7, - mgmt__pool_reint_req__field_descriptors, - mgmt__pool_reint_req__field_indices_by_name, - 1, mgmt__pool_reint_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_reint_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_reint_resp__field_descriptors[1] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolReintResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_reint_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_reint_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor mgmt__pool_reint_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolReintResp", - "PoolReintResp", - "Mgmt__PoolReintResp", - "mgmt", - sizeof(Mgmt__PoolReintResp), - 1, - mgmt__pool_reint_resp__field_descriptors, - mgmt__pool_reint_resp__field_indices_by_name, - 1, mgmt__pool_reint_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_reint_resp__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_pools_req__field_descriptors[1] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_pools_req__field_indices_by_name[] = { - 0, /* field[0] = sys */ -}; -static const ProtobufCIntRange mgmt__list_pools_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor mgmt__list_pools_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListPoolsReq", - "ListPoolsReq", - "Mgmt__ListPoolsReq", - "mgmt", - sizeof(Mgmt__ListPoolsReq), - 1, - mgmt__list_pools_req__field_descriptors, - mgmt__list_pools_req__field_indices_by_name, - 1, mgmt__list_pools_req__number_ranges, - (ProtobufCMessageInit) mgmt__list_pools_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_pools_resp__pool__field_descriptors[5] = -{ - { - "uuid", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp__Pool, uuid), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "label", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp__Pool, label), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_reps", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__ListPoolsResp__Pool, n_svc_reps), - offsetof(Mgmt__ListPoolsResp__Pool, svc_reps), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "state", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp__Pool, state), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rebuild_state", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp__Pool, rebuild_state), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_pools_resp__pool__field_indices_by_name[] = { - 1, /* field[1] = label */ - 4, /* field[4] = rebuild_state */ - 3, /* field[3] = state */ - 2, /* field[2] = svc_reps */ - 0, /* field[0] = uuid */ -}; -static const ProtobufCIntRange mgmt__list_pools_resp__pool__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor mgmt__list_pools_resp__pool__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListPoolsResp.Pool", - "Pool", - "Mgmt__ListPoolsResp__Pool", - "mgmt", - sizeof(Mgmt__ListPoolsResp__Pool), - 5, - mgmt__list_pools_resp__pool__field_descriptors, - mgmt__list_pools_resp__pool__field_indices_by_name, - 1, mgmt__list_pools_resp__pool__number_ranges, - (ProtobufCMessageInit) mgmt__list_pools_resp__pool__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_pools_resp__field_descriptors[3] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "pools", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__ListPoolsResp, n_pools), - offsetof(Mgmt__ListPoolsResp, pools), - &mgmt__list_pools_resp__pool__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "data_version", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListPoolsResp, data_version), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_pools_resp__field_indices_by_name[] = { - 2, /* field[2] = data_version */ - 1, /* field[1] = pools */ - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__list_pools_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor mgmt__list_pools_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListPoolsResp", - "ListPoolsResp", - "Mgmt__ListPoolsResp", - "mgmt", - sizeof(Mgmt__ListPoolsResp), - 3, - mgmt__list_pools_resp__field_descriptors, - mgmt__list_pools_resp__field_indices_by_name, - 1, mgmt__list_pools_resp__number_ranges, - (ProtobufCMessageInit) mgmt__list_pools_resp__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_cont_req__field_descriptors[3] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListContReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListContReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__ListContReq, n_svc_ranks), - offsetof(Mgmt__ListContReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_cont_req__field_indices_by_name[] = { - 1, /* field[1] = id */ - 2, /* field[2] = svc_ranks */ - 0, /* field[0] = sys */ -}; -static const ProtobufCIntRange mgmt__list_cont_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor mgmt__list_cont_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListContReq", - "ListContReq", - "Mgmt__ListContReq", - "mgmt", - sizeof(Mgmt__ListContReq), - 3, - mgmt__list_cont_req__field_descriptors, - mgmt__list_cont_req__field_indices_by_name, - 1, mgmt__list_cont_req__number_ranges, - (ProtobufCMessageInit) mgmt__list_cont_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_cont_resp__cont__field_descriptors[1] = -{ - { - "uuid", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListContResp__Cont, uuid), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_cont_resp__cont__field_indices_by_name[] = { - 0, /* field[0] = uuid */ -}; -static const ProtobufCIntRange mgmt__list_cont_resp__cont__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor mgmt__list_cont_resp__cont__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListContResp.Cont", - "Cont", - "Mgmt__ListContResp__Cont", - "mgmt", - sizeof(Mgmt__ListContResp__Cont), - 1, - mgmt__list_cont_resp__cont__field_descriptors, - mgmt__list_cont_resp__cont__field_indices_by_name, - 1, mgmt__list_cont_resp__cont__number_ranges, - (ProtobufCMessageInit) mgmt__list_cont_resp__cont__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__list_cont_resp__field_descriptors[2] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__ListContResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "containers", - 2, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__ListContResp, n_containers), - offsetof(Mgmt__ListContResp, containers), - &mgmt__list_cont_resp__cont__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__list_cont_resp__field_indices_by_name[] = { - 1, /* field[1] = containers */ - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__list_cont_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 2 } -}; -const ProtobufCMessageDescriptor mgmt__list_cont_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.ListContResp", - "ListContResp", - "Mgmt__ListContResp", - "mgmt", - sizeof(Mgmt__ListContResp), - 2, - mgmt__list_cont_resp__field_descriptors, - mgmt__list_cont_resp__field_indices_by_name, - 1, mgmt__list_cont_resp__number_ranges, - (ProtobufCMessageInit) mgmt__list_cont_resp__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_query_req__field_descriptors[4] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolQueryReq, n_svc_ranks), - offsetof(Mgmt__PoolQueryReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "query_mask", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryReq, query_mask), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_query_req__field_indices_by_name[] = { - 1, /* field[1] = id */ - 3, /* field[3] = query_mask */ - 2, /* field[2] = svc_ranks */ - 0, /* field[0] = sys */ -}; -static const ProtobufCIntRange mgmt__pool_query_req__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor mgmt__pool_query_req__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolQueryReq", - "PoolQueryReq", - "Mgmt__PoolQueryReq", - "mgmt", - sizeof(Mgmt__PoolQueryReq), - 4, - mgmt__pool_query_req__field_descriptors, - mgmt__pool_query_req__field_indices_by_name, - 1, mgmt__pool_query_req__number_ranges, - (ProtobufCMessageInit) mgmt__pool_query_req__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__storage_usage_stats__field_descriptors[6] = -{ - { - "total", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, total), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "free", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, free), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "min", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, min), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "max", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, max), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mean", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, mean), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "media_type", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(Mgmt__StorageUsageStats, media_type), - &mgmt__storage_media_type__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__storage_usage_stats__field_indices_by_name[] = { - 1, /* field[1] = free */ - 3, /* field[3] = max */ - 4, /* field[4] = mean */ - 5, /* field[5] = media_type */ - 2, /* field[2] = min */ - 0, /* field[0] = total */ -}; -static const ProtobufCIntRange mgmt__storage_usage_stats__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 6 } -}; -const ProtobufCMessageDescriptor mgmt__storage_usage_stats__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.StorageUsageStats", - "StorageUsageStats", - "Mgmt__StorageUsageStats", - "mgmt", - sizeof(Mgmt__StorageUsageStats), - 6, - mgmt__storage_usage_stats__field_descriptors, - mgmt__storage_usage_stats__field_indices_by_name, - 1, mgmt__storage_usage_stats__number_ranges, - (ProtobufCMessageInit) mgmt__storage_usage_stats__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCEnumValue mgmt__pool_rebuild_status__state__enum_values_by_number[3] = -{ - { "IDLE", "MGMT__POOL_REBUILD_STATUS__STATE__IDLE", 0 }, - { "DONE", "MGMT__POOL_REBUILD_STATUS__STATE__DONE", 1 }, - { "BUSY", "MGMT__POOL_REBUILD_STATUS__STATE__BUSY", 2 }, -}; -static const ProtobufCIntRange mgmt__pool_rebuild_status__state__value_ranges[] = { -{0, 0},{0, 3} -}; -static const ProtobufCEnumValueIndex mgmt__pool_rebuild_status__state__enum_values_by_name[3] = -{ - { "BUSY", 2 }, - { "DONE", 1 }, - { "IDLE", 0 }, -}; -const ProtobufCEnumDescriptor mgmt__pool_rebuild_status__state__descriptor = -{ - PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, - "mgmt.PoolRebuildStatus.State", - "State", - "Mgmt__PoolRebuildStatus__State", - "mgmt", - 3, - mgmt__pool_rebuild_status__state__enum_values_by_number, - 3, - mgmt__pool_rebuild_status__state__enum_values_by_name, - 1, - mgmt__pool_rebuild_status__state__value_ranges, - NULL,NULL,NULL,NULL /* reserved[1234] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_rebuild_status__field_descriptors[4] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStatus, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "state", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStatus, state), - &mgmt__pool_rebuild_status__state__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "objects", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStatus, objects), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "records", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStatus, records), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_rebuild_status__field_indices_by_name[] = { - 2, /* field[2] = objects */ - 3, /* field[3] = records */ - 1, /* field[1] = state */ - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_rebuild_status__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 4 } -}; -const ProtobufCMessageDescriptor mgmt__pool_rebuild_status__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolRebuildStatus", - "PoolRebuildStatus", - "Mgmt__PoolRebuildStatus", - "mgmt", - sizeof(Mgmt__PoolRebuildStatus), - 4, - mgmt__pool_rebuild_status__field_descriptors, - mgmt__pool_rebuild_status__field_indices_by_name, - 1, mgmt__pool_rebuild_status__number_ranges, - (ProtobufCMessageInit) mgmt__pool_rebuild_status__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_query_resp__field_descriptors[22] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "uuid", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, uuid), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "label", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, label), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "total_targets", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, total_targets), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "active_targets", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, active_targets), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "disabled_targets", - 6, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, disabled_targets), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rebuild", - 7, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, rebuild), - &mgmt__pool_rebuild_status__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "tier_stats", - 8, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__PoolQueryResp, n_tier_stats), - offsetof(Mgmt__PoolQueryResp, tier_stats), - &mgmt__storage_usage_stats__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "version", - 10, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, version), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "leader", - 11, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, leader), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "enabled_ranks", - 12, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, enabled_ranks), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "disabled_ranks", - 13, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, disabled_ranks), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "total_engines", - 14, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, total_engines), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "pool_layout_ver", - 15, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, pool_layout_ver), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "upgrade_layout_ver", - 16, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, upgrade_layout_ver), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "state", - 17, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, state), - &mgmt__pool_service_state__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ldr", - 18, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, svc_ldr), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_reps", - 19, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolQueryResp, n_svc_reps), - offsetof(Mgmt__PoolQueryResp, svc_reps), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "query_mask", - 20, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, query_mask), - NULL, +static const unsigned mgmt__list_pools_resp__field_indices_by_name[] = { + 2, /* field[2] = data_version */ + 1, /* field[1] = pools */ + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__list_pools_resp__number_ranges[1 + 1] = {{1, 0}, {0, 3}}; +const ProtobufCMessageDescriptor mgmt__list_pools_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListPoolsResp", + "ListPoolsResp", + "Mgmt__ListPoolsResp", + "mgmt", + sizeof(Mgmt__ListPoolsResp), + 3, + mgmt__list_pools_resp__field_descriptors, + mgmt__list_pools_resp__field_indices_by_name, + 1, + mgmt__list_pools_resp__number_ranges, + (ProtobufCMessageInit)mgmt__list_pools_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__list_cont_req__field_descriptors[3] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListContReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListContReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__ListContReq, n_svc_ranks), offsetof(Mgmt__ListContReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__list_cont_req__field_indices_by_name[] = { + 1, /* field[1] = id */ + 2, /* field[2] = svc_ranks */ + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__list_cont_req__number_ranges[1 + 1] = {{1, 0}, {0, 3}}; +const ProtobufCMessageDescriptor mgmt__list_cont_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListContReq", + "ListContReq", + "Mgmt__ListContReq", + "mgmt", + sizeof(Mgmt__ListContReq), + 3, + mgmt__list_cont_req__field_descriptors, + mgmt__list_cont_req__field_indices_by_name, + 1, + mgmt__list_cont_req__number_ranges, + (ProtobufCMessageInit)mgmt__list_cont_req__init, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "mem_file_bytes", - 21, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT64, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, mem_file_bytes), NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__list_cont_resp__cont__field_descriptors[1] = { + { + "uuid", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__ListContResp__Cont, uuid), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__list_cont_resp__cont__field_indices_by_name[] = { + 0, /* field[0] = uuid */ +}; +static const ProtobufCIntRange mgmt__list_cont_resp__cont__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__list_cont_resp__cont__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListContResp.Cont", + "Cont", + "Mgmt__ListContResp__Cont", + "mgmt", + sizeof(Mgmt__ListContResp__Cont), + 1, + mgmt__list_cont_resp__cont__field_descriptors, + mgmt__list_cont_resp__cont__field_indices_by_name, + 1, + mgmt__list_cont_resp__cont__number_ranges, + (ProtobufCMessageInit)mgmt__list_cont_resp__cont__init, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "dead_ranks", - 22, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, dead_ranks), NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "md_on_ssd_active", - 23, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryResp, md_on_ssd_active), + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__list_cont_resp__field_descriptors[2] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__ListContResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "containers", 2, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__ListContResp, n_containers), offsetof(Mgmt__ListContResp, containers), + &mgmt__list_cont_resp__cont__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__list_cont_resp__field_indices_by_name[] = { + 1, /* field[1] = containers */ + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__list_cont_resp__number_ranges[1 + 1] = {{1, 0}, {0, 2}}; +const ProtobufCMessageDescriptor mgmt__list_cont_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.ListContResp", + "ListContResp", + "Mgmt__ListContResp", + "mgmt", + sizeof(Mgmt__ListContResp), + 2, + mgmt__list_cont_resp__field_descriptors, + mgmt__list_cont_resp__field_indices_by_name, + 1, + mgmt__list_cont_resp__number_ranges, + (ProtobufCMessageInit)mgmt__list_cont_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_query_req__field_descriptors[4] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolQueryReq, n_svc_ranks), offsetof(Mgmt__PoolQueryReq, svc_ranks), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "query_mask", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryReq, query_mask), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_query_req__field_indices_by_name[] = { + 1, /* field[1] = id */ + 3, /* field[3] = query_mask */ + 2, /* field[2] = svc_ranks */ + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__pool_query_req__number_ranges[1 + 1] = {{1, 0}, {0, 4}}; +const ProtobufCMessageDescriptor mgmt__pool_query_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolQueryReq", + "PoolQueryReq", + "Mgmt__PoolQueryReq", + "mgmt", + sizeof(Mgmt__PoolQueryReq), + 4, + mgmt__pool_query_req__field_descriptors, + mgmt__pool_query_req__field_indices_by_name, + 1, + mgmt__pool_query_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_query_req__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__storage_usage_stats__field_descriptors[6] = { + { + "total", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, total), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "free", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, free), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "min", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, min), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "max", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, max), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mean", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, mean), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "media_type", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ + offsetof(Mgmt__StorageUsageStats, media_type), &mgmt__storage_media_type__descriptor, NULL, + 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__storage_usage_stats__field_indices_by_name[] = { + 1, /* field[1] = free */ + 3, /* field[3] = max */ + 4, /* field[4] = mean */ + 5, /* field[5] = media_type */ + 2, /* field[2] = min */ + 0, /* field[0] = total */ +}; +static const ProtobufCIntRange mgmt__storage_usage_stats__number_ranges[1 + 1] = {{1, 0}, {0, 6}}; +const ProtobufCMessageDescriptor mgmt__storage_usage_stats__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.StorageUsageStats", + "StorageUsageStats", + "Mgmt__StorageUsageStats", + "mgmt", + sizeof(Mgmt__StorageUsageStats), + 6, + mgmt__storage_usage_stats__field_descriptors, + mgmt__storage_usage_stats__field_indices_by_name, + 1, + mgmt__storage_usage_stats__number_ranges, + (ProtobufCMessageInit)mgmt__storage_usage_stats__init, NULL, NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, + NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue mgmt__pool_rebuild_status__state__enum_values_by_number[3] = { + {"IDLE", "MGMT__POOL_REBUILD_STATUS__STATE__IDLE", 0}, + {"DONE", "MGMT__POOL_REBUILD_STATUS__STATE__DONE", 1}, + {"BUSY", "MGMT__POOL_REBUILD_STATUS__STATE__BUSY", 2}, +}; +static const ProtobufCIntRange mgmt__pool_rebuild_status__state__value_ranges[] = {{0, 0}, {0, 3}}; +static const ProtobufCEnumValueIndex mgmt__pool_rebuild_status__state__enum_values_by_name[3] = { + {"BUSY", 2}, + {"DONE", 1}, + {"IDLE", 0}, +}; +const ProtobufCEnumDescriptor mgmt__pool_rebuild_status__state__descriptor = { + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStatus.State", + "State", + "Mgmt__PoolRebuildStatus__State", + "mgmt", + 3, + mgmt__pool_rebuild_status__state__enum_values_by_number, + 3, + mgmt__pool_rebuild_status__state__enum_values_by_name, + 1, + mgmt__pool_rebuild_status__state__value_ranges, + NULL, + NULL, + NULL, + NULL /* reserved[1234] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_rebuild_status__field_descriptors[4] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStatus, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "state", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStatus, state), &mgmt__pool_rebuild_status__state__descriptor, + NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "objects", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStatus, objects), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "records", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStatus, records), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_rebuild_status__field_indices_by_name[] = { + 2, /* field[2] = objects */ + 3, /* field[3] = records */ + 1, /* field[1] = state */ + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_rebuild_status__number_ranges[1 + 1] = {{1, 0}, {0, 4}}; +const ProtobufCMessageDescriptor mgmt__pool_rebuild_status__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStatus", + "PoolRebuildStatus", + "Mgmt__PoolRebuildStatus", + "mgmt", + sizeof(Mgmt__PoolRebuildStatus), + 4, + mgmt__pool_rebuild_status__field_descriptors, + mgmt__pool_rebuild_status__field_indices_by_name, + 1, + mgmt__pool_rebuild_status__number_ranges, + (ProtobufCMessageInit)mgmt__pool_rebuild_status__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_query_resp__field_descriptors[22] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "uuid", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, uuid), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "label", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, label), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "total_targets", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, total_targets), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "active_targets", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, active_targets), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "disabled_targets", 6, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, disabled_targets), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rebuild", 7, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, rebuild), &mgmt__pool_rebuild_status__descriptor, NULL, + 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "tier_stats", 8, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__PoolQueryResp, n_tier_stats), offsetof(Mgmt__PoolQueryResp, tier_stats), + &mgmt__storage_usage_stats__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "version", 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, version), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "leader", 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, leader), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "enabled_ranks", 12, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, enabled_ranks), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "disabled_ranks", 13, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, disabled_ranks), NULL, &protobuf_c_empty_string, + 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "total_engines", 14, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, total_engines), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "pool_layout_ver", 15, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, pool_layout_ver), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "upgrade_layout_ver", 16, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, upgrade_layout_ver), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "state", 17, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, state), &mgmt__pool_service_state__descriptor, NULL, + 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ldr", 18, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, svc_ldr), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_reps", 19, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolQueryResp, n_svc_reps), offsetof(Mgmt__PoolQueryResp, svc_reps), NULL, + NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "query_mask", 20, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, query_mask), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "mem_file_bytes", 21, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, mem_file_bytes), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "dead_ranks", 22, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, dead_ranks), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "md_on_ssd_active", 23, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryResp, md_on_ssd_active), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_query_resp__field_indices_by_name[] = { 4, /* field[4] = active_targets */ @@ -3720,56 +3051,29 @@ const ProtobufCMessageDescriptor mgmt__pool_property__descriptor = (ProtobufCMessageInit) mgmt__pool_property__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_set_prop_req__field_descriptors[4] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolSetPropReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolSetPropReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "properties", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__PoolSetPropReq, n_properties), - offsetof(Mgmt__PoolSetPropReq, properties), - &mgmt__pool_property__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolSetPropReq, n_svc_ranks), - offsetof(Mgmt__PoolSetPropReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_set_prop_req__field_descriptors[4] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolSetPropReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolSetPropReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "properties", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__PoolSetPropReq, n_properties), offsetof(Mgmt__PoolSetPropReq, properties), + &mgmt__pool_property__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolSetPropReq, n_svc_ranks), offsetof(Mgmt__PoolSetPropReq, svc_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_set_prop_req__field_indices_by_name[] = { 1, /* field[1] = id */ @@ -3797,94 +3101,57 @@ const ProtobufCMessageDescriptor mgmt__pool_set_prop_req__descriptor = (ProtobufCMessageInit) mgmt__pool_set_prop_req__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_set_prop_resp__field_descriptors[1] = -{ - { - "status", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolSetPropResp, status), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_set_prop_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolSetPropResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_set_prop_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_set_prop_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor mgmt__pool_set_prop_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolSetPropResp", - "PoolSetPropResp", - "Mgmt__PoolSetPropResp", - "mgmt", - sizeof(Mgmt__PoolSetPropResp), - 1, - mgmt__pool_set_prop_resp__field_descriptors, - mgmt__pool_set_prop_resp__field_indices_by_name, - 1, mgmt__pool_set_prop_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_set_prop_resp__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor mgmt__pool_get_prop_req__field_descriptors[4] = -{ - { - "sys", + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_set_prop_resp__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_set_prop_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolSetPropResp", + "PoolSetPropResp", + "Mgmt__PoolSetPropResp", + "mgmt", + sizeof(Mgmt__PoolSetPropResp), 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolGetPropReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolGetPropReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "properties", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(Mgmt__PoolGetPropReq, n_properties), - offsetof(Mgmt__PoolGetPropReq, properties), - &mgmt__pool_property__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolGetPropReq, n_svc_ranks), - offsetof(Mgmt__PoolGetPropReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, + mgmt__pool_set_prop_resp__field_descriptors, + mgmt__pool_set_prop_resp__field_indices_by_name, + 1, + mgmt__pool_set_prop_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_set_prop_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_get_prop_req__field_descriptors[4] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolGetPropReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolGetPropReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "properties", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, + offsetof(Mgmt__PoolGetPropReq, n_properties), offsetof(Mgmt__PoolGetPropReq, properties), + &mgmt__pool_property__descriptor, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolGetPropReq, n_svc_ranks), offsetof(Mgmt__PoolGetPropReq, svc_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_get_prop_req__field_indices_by_name[] = { 1, /* field[1] = id */ @@ -3963,44 +3230,23 @@ const ProtobufCMessageDescriptor mgmt__pool_get_prop_resp__descriptor = (ProtobufCMessageInit) mgmt__pool_get_prop_resp__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_upgrade_req__field_descriptors[3] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolUpgradeReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolUpgradeReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolUpgradeReq, n_svc_ranks), - offsetof(Mgmt__PoolUpgradeReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_upgrade_req__field_descriptors[3] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolUpgradeReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolUpgradeReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolUpgradeReq, n_svc_ranks), offsetof(Mgmt__PoolUpgradeReq, svc_ranks), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_upgrade_req__field_indices_by_name[] = { 1, /* field[1] = id */ @@ -4065,68 +3311,35 @@ const ProtobufCMessageDescriptor mgmt__pool_upgrade_resp__descriptor = (ProtobufCMessageInit) mgmt__pool_upgrade_resp__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_query_target_req__field_descriptors[5] = -{ - { - "sys", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryTargetReq, sys), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_STRING, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryTargetReq, id), - NULL, - &protobuf_c_empty_string, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "rank", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_UINT32, - 0, /* quantifier_offset */ - offsetof(Mgmt__PoolQueryTargetReq, rank), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "targets", - 4, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolQueryTargetReq, n_targets), - offsetof(Mgmt__PoolQueryTargetReq, targets), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "svc_ranks", - 5, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_UINT32, - offsetof(Mgmt__PoolQueryTargetReq, n_svc_ranks), - offsetof(Mgmt__PoolQueryTargetReq, svc_ranks), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, +static const ProtobufCFieldDescriptor mgmt__pool_query_target_req__field_descriptors[5] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryTargetReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryTargetReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "rank", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolQueryTargetReq, rank), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "targets", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolQueryTargetReq, n_targets), offsetof(Mgmt__PoolQueryTargetReq, targets), + NULL, NULL, 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolQueryTargetReq, n_svc_ranks), + offsetof(Mgmt__PoolQueryTargetReq, svc_ranks), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned mgmt__pool_query_target_req__field_indices_by_name[] = { 1, /* field[1] = id */ @@ -4432,6 +3645,155 @@ const ProtobufCMessageDescriptor mgmt__pool_query_target_resp__descriptor = (ProtobufCMessageInit) mgmt__pool_query_target_resp__init, NULL,NULL,NULL /* reserved[123] */ }; +static const ProtobufCFieldDescriptor mgmt__pool_rebuild_start_req__field_descriptors[3] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStartReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStartReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 3, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolRebuildStartReq, n_svc_ranks), + offsetof(Mgmt__PoolRebuildStartReq, svc_ranks), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_rebuild_start_req__field_indices_by_name[] = { + 1, /* field[1] = id */ + 2, /* field[2] = svc_ranks */ + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__pool_rebuild_start_req__number_ranges[1 + 1] = {{1, 0}, + {0, 3}}; +const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStartReq", + "PoolRebuildStartReq", + "Mgmt__PoolRebuildStartReq", + "mgmt", + sizeof(Mgmt__PoolRebuildStartReq), + 3, + mgmt__pool_rebuild_start_req__field_descriptors, + mgmt__pool_rebuild_start_req__field_indices_by_name, + 1, + mgmt__pool_rebuild_start_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_rebuild_start_req__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_rebuild_start_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStartResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_rebuild_start_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_rebuild_start_resp__number_ranges[1 + 1] = {{1, 0}, + {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStartResp", + "PoolRebuildStartResp", + "Mgmt__PoolRebuildStartResp", + "mgmt", + sizeof(Mgmt__PoolRebuildStartResp), + 1, + mgmt__pool_rebuild_start_resp__field_descriptors, + mgmt__pool_rebuild_start_resp__field_indices_by_name, + 1, + mgmt__pool_rebuild_start_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_rebuild_start_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_rebuild_stop_req__field_descriptors[4] = { + { + "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStopReq, sys), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "id", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStopReq, id), NULL, &protobuf_c_empty_string, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "force", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BOOL, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStopReq, force), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, + { + "svc_ranks", 4, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_UINT32, + offsetof(Mgmt__PoolRebuildStopReq, n_svc_ranks), + offsetof(Mgmt__PoolRebuildStopReq, svc_ranks), NULL, NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_rebuild_stop_req__field_indices_by_name[] = { + 2, /* field[2] = force */ + 1, /* field[1] = id */ + 3, /* field[3] = svc_ranks */ + 0, /* field[0] = sys */ +}; +static const ProtobufCIntRange mgmt__pool_rebuild_stop_req__number_ranges[1 + 1] = {{1, 0}, {0, 4}}; +const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStopReq", + "PoolRebuildStopReq", + "Mgmt__PoolRebuildStopReq", + "mgmt", + sizeof(Mgmt__PoolRebuildStopReq), + 4, + mgmt__pool_rebuild_stop_req__field_descriptors, + mgmt__pool_rebuild_stop_req__field_indices_by_name, + 1, + mgmt__pool_rebuild_stop_req__number_ranges, + (ProtobufCMessageInit)mgmt__pool_rebuild_stop_req__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor mgmt__pool_rebuild_stop_resp__field_descriptors[1] = { + { + "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ + offsetof(Mgmt__PoolRebuildStopResp, status), NULL, NULL, 0, /* flags */ + 0, NULL, NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned mgmt__pool_rebuild_stop_resp__field_indices_by_name[] = { + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange mgmt__pool_rebuild_stop_resp__number_ranges[1 + 1] = {{1, 0}, + {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolRebuildStopResp", + "PoolRebuildStopResp", + "Mgmt__PoolRebuildStopResp", + "mgmt", + sizeof(Mgmt__PoolRebuildStopResp), + 1, + mgmt__pool_rebuild_stop_resp__field_descriptors, + mgmt__pool_rebuild_stop_resp__field_indices_by_name, + 1, + mgmt__pool_rebuild_stop_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_rebuild_stop_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ +}; static const ProtobufCEnumValue mgmt__storage_media_type__enum_values_by_number[2] = { { "SCM", "MGMT__STORAGE_MEDIA_TYPE__SCM", 0 }, diff --git a/src/mgmt/pool.pb-c.h b/src/mgmt/pool.pb-c.h index f07bd3ad14d..b876fc0962b 100644 --- a/src/mgmt/pool.pb-c.h +++ b/src/mgmt/pool.pb-c.h @@ -10,7 +10,7 @@ PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. -#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. #endif @@ -50,7 +50,10 @@ typedef struct _Mgmt__PoolQueryTargetReq Mgmt__PoolQueryTargetReq; typedef struct _Mgmt__StorageTargetUsage Mgmt__StorageTargetUsage; typedef struct _Mgmt__PoolQueryTargetInfo Mgmt__PoolQueryTargetInfo; typedef struct _Mgmt__PoolQueryTargetResp Mgmt__PoolQueryTargetResp; - +typedef struct _Mgmt__PoolRebuildStartReq Mgmt__PoolRebuildStartReq; +typedef struct _Mgmt__PoolRebuildStartResp Mgmt__PoolRebuildStartResp; +typedef struct _Mgmt__PoolRebuildStopReq Mgmt__PoolRebuildStopReq; +typedef struct _Mgmt__PoolRebuildStopResp Mgmt__PoolRebuildStopResp; /* --- enums --- */ @@ -1168,6 +1171,87 @@ struct _Mgmt__PoolQueryTargetResp { PROTOBUF_C_MESSAGE_INIT (&mgmt__pool_query_target_resp__descriptor) \ , 0, 0,NULL } +/* + * PoolRebuildStartReq contains information about a request to start an interactive rebuild on a + * given pool. + */ +struct _Mgmt__PoolRebuildStartReq { + ProtobufCMessage base; + /* + * DAOS system identifier + */ + char *sys; + /* + * DAOS pool identifier + */ + char *id; + /* + * List of pool service ranks + */ + size_t n_svc_ranks; + uint32_t *svc_ranks; +}; +#define MGMT__POOL_REBUILD_START_REQ__INIT \ + {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_start_req__descriptor), \ + (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, NULL} + +/* + * PoolRebuildStartResp returns state which indicates whether request was accepted successfully. + */ +struct _Mgmt__PoolRebuildStartResp { + ProtobufCMessage base; + /* + * DAOS error code + */ + int32_t status; +}; +#define MGMT__POOL_REBUILD_START_RESP__INIT \ + {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_start_resp__descriptor), 0} + +/* + * PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a + * given pool. + */ +struct _Mgmt__PoolRebuildStopReq { + ProtobufCMessage base; + /* + * DAOS system identifier + */ + char *sys; + /* + * DAOS pool identifier + */ + char *id; + /* + * Force interactive rebuild stop + */ + protobuf_c_boolean force; + /* + * List of pool service ranks + */ + size_t n_svc_ranks; + uint32_t *svc_ranks; +}; +#define MGMT__POOL_REBUILD_STOP_REQ__INIT \ + {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_stop_req__descriptor), \ + (char *)protobuf_c_empty_string, \ + (char *)protobuf_c_empty_string, \ + 0, \ + 0, \ + NULL} + +/* + * PoolRebuildStopResp returns state which indicates whether request was accepted successfully. + */ +struct _Mgmt__PoolRebuildStopResp { + ProtobufCMessage base; + /* + * DAOS error code + */ + int32_t status; +}; +#define MGMT__POOL_REBUILD_STOP_RESP__INIT \ + {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_stop_resp__descriptor), 0} /* Mgmt__PoolCreateReq methods */ void mgmt__pool_create_req__init @@ -1802,6 +1886,69 @@ Mgmt__PoolQueryTargetResp * void mgmt__pool_query_target_resp__free_unpacked (Mgmt__PoolQueryTargetResp *message, ProtobufCAllocator *allocator); +/* Mgmt__PoolRebuildStartReq methods */ +void +mgmt__pool_rebuild_start_req__init(Mgmt__PoolRebuildStartReq *message); +size_t +mgmt__pool_rebuild_start_req__get_packed_size(const Mgmt__PoolRebuildStartReq *message); +size_t +mgmt__pool_rebuild_start_req__pack(const Mgmt__PoolRebuildStartReq *message, uint8_t *out); +size_t +mgmt__pool_rebuild_start_req__pack_to_buffer(const Mgmt__PoolRebuildStartReq *message, + ProtobufCBuffer *buffer); +Mgmt__PoolRebuildStartReq * +mgmt__pool_rebuild_start_req__unpack(ProtobufCAllocator *allocator, size_t len, + const uint8_t *data); +void +mgmt__pool_rebuild_start_req__free_unpacked(Mgmt__PoolRebuildStartReq *message, + ProtobufCAllocator *allocator); +/* Mgmt__PoolRebuildStartResp methods */ +void +mgmt__pool_rebuild_start_resp__init(Mgmt__PoolRebuildStartResp *message); +size_t +mgmt__pool_rebuild_start_resp__get_packed_size(const Mgmt__PoolRebuildStartResp *message); +size_t +mgmt__pool_rebuild_start_resp__pack(const Mgmt__PoolRebuildStartResp *message, uint8_t *out); +size_t +mgmt__pool_rebuild_start_resp__pack_to_buffer(const Mgmt__PoolRebuildStartResp *message, + ProtobufCBuffer *buffer); +Mgmt__PoolRebuildStartResp * +mgmt__pool_rebuild_start_resp__unpack(ProtobufCAllocator *allocator, size_t len, + const uint8_t *data); +void +mgmt__pool_rebuild_start_resp__free_unpacked(Mgmt__PoolRebuildStartResp *message, + ProtobufCAllocator *allocator); +/* Mgmt__PoolRebuildStopReq methods */ +void +mgmt__pool_rebuild_stop_req__init(Mgmt__PoolRebuildStopReq *message); +size_t +mgmt__pool_rebuild_stop_req__get_packed_size(const Mgmt__PoolRebuildStopReq *message); +size_t +mgmt__pool_rebuild_stop_req__pack(const Mgmt__PoolRebuildStopReq *message, uint8_t *out); +size_t +mgmt__pool_rebuild_stop_req__pack_to_buffer(const Mgmt__PoolRebuildStopReq *message, + ProtobufCBuffer *buffer); +Mgmt__PoolRebuildStopReq * +mgmt__pool_rebuild_stop_req__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data); +void +mgmt__pool_rebuild_stop_req__free_unpacked(Mgmt__PoolRebuildStopReq *message, + ProtobufCAllocator *allocator); +/* Mgmt__PoolRebuildStopResp methods */ +void +mgmt__pool_rebuild_stop_resp__init(Mgmt__PoolRebuildStopResp *message); +size_t +mgmt__pool_rebuild_stop_resp__get_packed_size(const Mgmt__PoolRebuildStopResp *message); +size_t +mgmt__pool_rebuild_stop_resp__pack(const Mgmt__PoolRebuildStopResp *message, uint8_t *out); +size_t +mgmt__pool_rebuild_stop_resp__pack_to_buffer(const Mgmt__PoolRebuildStopResp *message, + ProtobufCBuffer *buffer); +Mgmt__PoolRebuildStopResp * +mgmt__pool_rebuild_stop_resp__unpack(ProtobufCAllocator *allocator, size_t len, + const uint8_t *data); +void +mgmt__pool_rebuild_stop_resp__free_unpacked(Mgmt__PoolRebuildStopResp *message, + ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*Mgmt__PoolCreateReq_Closure) @@ -1909,6 +2056,14 @@ typedef void (*Mgmt__PoolQueryTargetInfo_Closure) typedef void (*Mgmt__PoolQueryTargetResp_Closure) (const Mgmt__PoolQueryTargetResp *message, void *closure_data); +typedef void (*Mgmt__PoolRebuildStartReq_Closure)(const Mgmt__PoolRebuildStartReq *message, + void *closure_data); +typedef void (*Mgmt__PoolRebuildStartResp_Closure)(const Mgmt__PoolRebuildStartResp *message, + void *closure_data); +typedef void (*Mgmt__PoolRebuildStopReq_Closure)(const Mgmt__PoolRebuildStopReq *message, + void *closure_data); +typedef void (*Mgmt__PoolRebuildStopResp_Closure)(const Mgmt__PoolRebuildStopResp *message, + void *closure_data); /* --- services --- */ @@ -1955,6 +2110,10 @@ extern const ProtobufCMessageDescriptor mgmt__pool_query_target_info__descriptor extern const ProtobufCEnumDescriptor mgmt__pool_query_target_info__target_type__descriptor; extern const ProtobufCEnumDescriptor mgmt__pool_query_target_info__target_state__descriptor; extern const ProtobufCMessageDescriptor mgmt__pool_query_target_resp__descriptor; +extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_req__descriptor; +extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_resp__descriptor; +extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor; +extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_resp__descriptor; PROTOBUF_C__END_DECLS diff --git a/src/mgmt/srv.c b/src/mgmt/srv.c index 09024fe445e..c9fc68865cd 100644 --- a/src/mgmt/srv.c +++ b/src/mgmt/srv.c @@ -108,6 +108,12 @@ process_drpc_request(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) case DRPC_METHOD_MGMT_POOL_EXTEND: ds_mgmt_drpc_pool_extend(drpc_req, drpc_resp); break; + case DRPC_METHOD_MGMT_POOL_REBUILD_START: + ds_mgmt_drpc_pool_rebuild_start(drpc_req, drpc_resp); + break; + case DRPC_METHOD_MGMT_POOL_REBUILD_STOP: + ds_mgmt_drpc_pool_rebuild_stop(drpc_req, drpc_resp); + break; case DRPC_METHOD_MGMT_BIO_HEALTH_QUERY: ds_mgmt_drpc_bio_health_query(drpc_req, drpc_resp); break; diff --git a/src/mgmt/srv_drpc.c b/src/mgmt/srv_drpc.c index 95a708909bf..38d5ea1f8b4 100644 --- a/src/mgmt/srv_drpc.c +++ b/src/mgmt/srv_drpc.c @@ -2022,6 +2022,112 @@ ds_mgmt_drpc_pool_query_targets(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) D_FREE(resp_infos); } +void +ds_mgmt_drpc_pool_rebuild_start(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) +{ + struct drpc_alloc alloc = PROTO_ALLOCATOR_INIT(alloc); + Mgmt__PoolRebuildStartReq *req = NULL; + Mgmt__PoolRebuildStartResp resp = MGMT__POOL_REBUILD_START_RESP__INIT; + uuid_t uuid; + d_rank_list_t *svc_ranks = NULL; + uint8_t *body; + size_t len; + int rc; + + /* Unpack the inner request from the drpc call body */ + req = mgmt__pool_rebuild_start_req__unpack(&alloc.alloc, drpc_req->body.len, + drpc_req->body.data); + + if (alloc.oom || req == NULL) { + drpc_resp->status = DRPC__STATUS__FAILED_UNMARSHAL_PAYLOAD; + D_ERROR("Failed to unpack req (pool_rebuild_start)\n"); + return; + } + + D_INFO("Received request to start interactive rebuild on pool %s\n", req->id); + + if (uuid_parse(req->id, uuid) != 0) { + rc = -DER_INVAL; + DL_ERROR(rc, "Pool UUID is invalid"); + goto out; + } + + svc_ranks = uint32_array_to_rank_list(req->svc_ranks, req->n_svc_ranks); + if (svc_ranks == NULL) + D_GOTO(out, rc = -DER_NOMEM); + + rc = ds_mgmt_pool_rebuild_start(uuid, svc_ranks); + + d_rank_list_free(svc_ranks); + +out: + resp.status = rc; + len = mgmt__pool_rebuild_start_resp__get_packed_size(&resp); + D_ALLOC(body, len); + if (body == NULL) { + drpc_resp->status = DRPC__STATUS__FAILED_MARSHAL; + } else { + mgmt__pool_rebuild_start_resp__pack(&resp, body); + drpc_resp->body.len = len; + drpc_resp->body.data = body; + } + + mgmt__pool_rebuild_start_req__free_unpacked(req, &alloc.alloc); +} + +void +ds_mgmt_drpc_pool_rebuild_stop(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) +{ + struct drpc_alloc alloc = PROTO_ALLOCATOR_INIT(alloc); + Mgmt__PoolRebuildStopReq *req = NULL; + Mgmt__PoolRebuildStopResp resp = MGMT__POOL_REBUILD_STOP_RESP__INIT; + uuid_t uuid; + d_rank_list_t *svc_ranks = NULL; + uint8_t *body; + size_t len; + int rc; + + /* Unpack the inner request from the drpc call body */ + req = mgmt__pool_rebuild_stop_req__unpack(&alloc.alloc, drpc_req->body.len, + drpc_req->body.data); + + if (alloc.oom || req == NULL) { + drpc_resp->status = DRPC__STATUS__FAILED_UNMARSHAL_PAYLOAD; + D_ERROR("Failed to unpack req (pool_rebuild_stop)\n"); + return; + } + + D_INFO("Received request to stop interactive rebuild on pool %s\n", req->id); + + if (uuid_parse(req->id, uuid) != 0) { + rc = -DER_INVAL; + DL_ERROR(rc, "Pool UUID is invalid"); + goto out; + } + + svc_ranks = uint32_array_to_rank_list(req->svc_ranks, req->n_svc_ranks); + if (svc_ranks == NULL) + D_GOTO(out, rc = -DER_NOMEM); + + rc = ds_mgmt_pool_rebuild_stop(uuid, req->force, svc_ranks); + + d_rank_list_free(svc_ranks); + +out: + resp.status = rc; + len = mgmt__pool_rebuild_stop_resp__get_packed_size(&resp); + D_ALLOC(body, len); + if (body == NULL) { + drpc_resp->status = DRPC__STATUS__FAILED_MARSHAL; + } else { + mgmt__pool_rebuild_stop_resp__pack(&resp, body); + drpc_resp->body.len = len; + drpc_resp->body.data = body; + } + + mgmt__pool_rebuild_stop_req__free_unpacked(req, &alloc.alloc); +} + void ds_mgmt_smd_free_dev(Ctl__SmdDevice *dev) { diff --git a/src/mgmt/tests/mocks.c b/src/mgmt/tests/mocks.c index b164436f0e6..fccfead7186 100644 --- a/src/mgmt/tests/mocks.c +++ b/src/mgmt/tests/mocks.c @@ -595,6 +595,30 @@ mock_ds_mgmt_pool_upgrade_setup(void) uuid_clear(ds_mgmt_pool_upgrade_uuid); } +int ds_mgmt_pool_rebuild_return; +uuid_t ds_mgmt_pool_rebuild_uuid; + +int +ds_mgmt_pool_rebuild_start(uuid_t pool_uuid, d_rank_list_t *svc_ranks) +{ + uuid_copy(ds_mgmt_pool_rebuild_uuid, pool_uuid); + return ds_mgmt_pool_rebuild_return; +} + +int +ds_mgmt_pool_rebuild_stop(uuid_t pool_uuid, uint32_t force, d_rank_list_t *svc_ranks) +{ + uuid_copy(ds_mgmt_pool_rebuild_uuid, pool_uuid); + return ds_mgmt_pool_rebuild_return; +} + +void +mock_ds_mgmt_pool_rebuild_setup(void) +{ + ds_mgmt_pool_rebuild_return = 0; + uuid_clear(ds_mgmt_pool_rebuild_uuid); +} + int ds_mgmt_dev_manage_led_return; uuid_t ds_mgmt_dev_manage_led_uuid; diff --git a/src/mgmt/tests/mocks.h b/src/mgmt/tests/mocks.h index b4e2e5947be..7d97c68ff2a 100644 --- a/src/mgmt/tests/mocks.h +++ b/src/mgmt/tests/mocks.h @@ -1,5 +1,6 @@ /* * (C) Copyright 2019-2024 Intel Corporation. + * (C) Copyright 2025 Hewlett Packard Enterprise Development LP * * SPDX-License-Identifier: BSD-2-Clause-Patent */ @@ -158,6 +159,14 @@ extern int ds_mgmt_pool_upgrade_return; extern uuid_t ds_mgmt_pool_upgrade_uuid; void mock_ds_mgmt_pool_upgrade_setup(void); +/* + * Mock ds_mgmt_rebuild + */ +extern int ds_mgmt_pool_rebuild_return; +extern uuid_t ds_mgmt_pool_rebuild_uuid; +void + mock_ds_mgmt_pool_rebuild_setup(void); + /* * Mock ds_mgmt_dev_manage_led */ diff --git a/src/mgmt/tests/srv_drpc_tests.c b/src/mgmt/tests/srv_drpc_tests.c index 02a99a08b5c..13244da8584 100644 --- a/src/mgmt/tests/srv_drpc_tests.c +++ b/src/mgmt/tests/srv_drpc_tests.c @@ -2648,6 +2648,199 @@ test_drpc_pool_upgrade_success(void **state) D_FREE(resp.body.data); } +/* + * Pool rebuild test setup + */ +static int +drpc_rebuild_setup(void **state) +{ + mock_ds_mgmt_pool_rebuild_setup(); + return 0; +} + +/* + * dRPC pool rebuild start tests + */ +static void +pack_pool_rebuild_start_req(Drpc__Call *call, Mgmt__PoolRebuildStartReq *req) +{ + size_t len; + uint8_t *body; + + len = mgmt__pool_rebuild_start_req__get_packed_size(req); + D_ALLOC(body, len); + assert_non_null(body); + + mgmt__pool_rebuild_start_req__pack(req, body); + + call->body.data = body; + call->body.len = len; +} + +static void +setup_rebuild_start_drpc_call(Drpc__Call *call, char *uuid, char *sys_name) +{ + Mgmt__PoolRebuildStartReq req = MGMT__POOL_REBUILD_START_REQ__INIT; + + req.id = uuid; + req.sys = sys_name; + pack_pool_rebuild_start_req(call, &req); +} + +static void +expect_drpc_rebuild_start_resp_with_status(Drpc__Response *resp, int exp_status) +{ + Mgmt__PoolRebuildStartResp *pc_resp = NULL; + + assert_int_equal(resp->status, DRPC__STATUS__SUCCESS); + assert_non_null(resp->body.data); + + pc_resp = mgmt__pool_rebuild_start_resp__unpack(NULL, resp->body.len, resp->body.data); + assert_non_null(pc_resp); + assert_int_equal(pc_resp->status, exp_status); + + mgmt__pool_rebuild_start_resp__free_unpacked(pc_resp, NULL); +} + +static void +test_drpc_pool_rebuild_start_bad_uuid(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_start_drpc_call(&call, "BAD", "DaosSys"); + + ds_mgmt_drpc_pool_rebuild_start(&call, &resp); + + expect_drpc_rebuild_start_resp_with_status(&resp, -DER_INVAL); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + +static void +test_drpc_pool_rebuild_start_mgmt_svc_fails(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_start_drpc_call(&call, TEST_UUID, "DaosSys"); + ds_mgmt_pool_rebuild_return = -DER_MISC; + + ds_mgmt_drpc_pool_rebuild_start(&call, &resp); + expect_drpc_rebuild_start_resp_with_status(&resp, ds_mgmt_pool_rebuild_return); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + +static void +test_drpc_pool_rebuild_start_success(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_start_drpc_call(&call, TEST_UUID, "DaosSys"); + ds_mgmt_drpc_pool_rebuild_start(&call, &resp); + + expect_drpc_rebuild_start_resp_with_status(&resp, 0); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + +/* + * dRPC pool rebuild stop tests + */ +static void +pack_pool_rebuild_stop_req(Drpc__Call *call, Mgmt__PoolRebuildStopReq *req) +{ + size_t len; + uint8_t *body; + + len = mgmt__pool_rebuild_stop_req__get_packed_size(req); + D_ALLOC(body, len); + assert_non_null(body); + + mgmt__pool_rebuild_stop_req__pack(req, body); + + call->body.data = body; + call->body.len = len; +} + +static void +setup_rebuild_stop_drpc_call(Drpc__Call *call, char *uuid, char *sys_name, uint32_t force) +{ + Mgmt__PoolRebuildStopReq req = MGMT__POOL_REBUILD_STOP_REQ__INIT; + + req.id = uuid; + req.sys = sys_name; + req.force = force; + pack_pool_rebuild_stop_req(call, &req); +} + +static void +expect_drpc_rebuild_stop_resp_with_status(Drpc__Response *resp, int exp_status) +{ + Mgmt__PoolRebuildStopResp *pc_resp = NULL; + + assert_int_equal(resp->status, DRPC__STATUS__SUCCESS); + assert_non_null(resp->body.data); + + pc_resp = mgmt__pool_rebuild_stop_resp__unpack(NULL, resp->body.len, resp->body.data); + assert_non_null(pc_resp); + assert_int_equal(pc_resp->status, exp_status); + + mgmt__pool_rebuild_stop_resp__free_unpacked(pc_resp, NULL); +} + +static void +test_drpc_pool_rebuild_stop_bad_uuid(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_stop_drpc_call(&call, "BAD", "DaosSys", true); + + ds_mgmt_drpc_pool_rebuild_stop(&call, &resp); + + expect_drpc_rebuild_stop_resp_with_status(&resp, -DER_INVAL); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + +static void +test_drpc_pool_rebuild_stop_mgmt_svc_fails(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_stop_drpc_call(&call, TEST_UUID, "DaosSys", true); + ds_mgmt_pool_rebuild_return = -DER_MISC; + + ds_mgmt_drpc_pool_rebuild_stop(&call, &resp); + expect_drpc_rebuild_stop_resp_with_status(&resp, ds_mgmt_pool_rebuild_return); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + +static void +test_drpc_pool_rebuild_stop_success(void **state) +{ + Drpc__Call call = DRPC__CALL__INIT; + Drpc__Response resp = DRPC__RESPONSE__INIT; + + setup_rebuild_stop_drpc_call(&call, TEST_UUID, "DaosSys", true); + ds_mgmt_drpc_pool_rebuild_stop(&call, &resp); + + expect_drpc_rebuild_stop_resp_with_status(&resp, 0); + + D_FREE(call.body.data); + D_FREE(resp.body.data); +} + /*/ * LED manage test setup */ @@ -3041,6 +3234,8 @@ test_drpc_check_act_success(void **state) #define POOL_UPGRADE_TEST(x) cmocka_unit_test_setup(x, \ drpc_upgrade_setup) +#define POOL_REBUILD_TEST(x) cmocka_unit_test_setup(x, drpc_rebuild_setup) + #define PING_RANK_TEST(x) cmocka_unit_test(x) #define PREP_SHUTDOWN_TEST(x) cmocka_unit_test(x) @@ -3133,6 +3328,12 @@ main(void) POOL_UPGRADE_TEST(test_drpc_pool_upgrade_bad_uuid), POOL_UPGRADE_TEST(test_drpc_pool_upgrade_mgmt_svc_fails), POOL_UPGRADE_TEST(test_drpc_pool_upgrade_success), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_start_bad_uuid), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_start_mgmt_svc_fails), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_start_success), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_stop_bad_uuid), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_stop_mgmt_svc_fails), + POOL_REBUILD_TEST(test_drpc_pool_rebuild_stop_success), LED_MANAGE_TEST(test_drpc_dev_manage_led_bad_tr_addr), LED_MANAGE_TEST(test_drpc_dev_manage_led_fails), LED_MANAGE_TEST(test_drpc_dev_manage_led_success), diff --git a/src/proto/mgmt/mgmt.proto b/src/proto/mgmt/mgmt.proto index 7cf6bcd0c52..c92677d7003 100644 --- a/src/proto/mgmt/mgmt.proto +++ b/src/proto/mgmt/mgmt.proto @@ -64,6 +64,12 @@ service MgmtSvc { rpc PoolUpdateACL(ModifyACLReq) returns (ACLResp) {} // Delete an entry from a DAOS pool's Access Control List. rpc PoolDeleteACL(DeleteACLReq) returns (ACLResp) {} + // PoolUpgrade upgrades a DAOS pool. + rpc PoolUpgrade(PoolUpgradeReq) returns (PoolUpgradeResp) {} + // PoolRebuildStart starts an interactive rebuild on a DAOS pool. + rpc PoolRebuildStart(PoolRebuildStartReq) returns (PoolRebuildStartResp) {} + // PoolRebuildStop stops an interactive rebuild on a DAOS pool. + rpc PoolRebuildStop(PoolRebuildStopReq) returns (PoolRebuildStopResp) {} // Get the information required by libdaos to attach to the system. rpc GetAttachInfo(GetAttachInfoReq) returns (GetAttachInfoResp) {} // List all pools in a DAOS system: basic info: UUIDs, service ranks. @@ -101,9 +107,7 @@ service MgmtSvc { // Query system check properties rpc SystemCheckGetPolicy(CheckGetPolicyReq) returns(CheckGetPolicyResp){} // Send the desired action to repair an inconsistency. - rpc SystemCheckRepair(CheckActReq) returns(CheckActResp){} - // PoolUpgrade queries a DAOS pool. - rpc PoolUpgrade(PoolUpgradeReq) returns (PoolUpgradeResp) {} + rpc SystemCheckRepair(CheckActReq) returns (CheckActResp) {} // Set a system attribute or attributes. rpc SystemSetAttr(SystemSetAttrReq) returns (DaosResp) {} // Get a system attribute or attributes. diff --git a/src/proto/mgmt/pool.proto b/src/proto/mgmt/pool.proto index dfd56315b89..90f83c8ad94 100644 --- a/src/proto/mgmt/pool.proto +++ b/src/proto/mgmt/pool.proto @@ -345,3 +345,34 @@ message PoolQueryTargetResp { int32 status = 1; // DAOS error code repeated PoolQueryTargetInfo infos = 2; // Per-target information } + +// PoolRebuildStartReq contains information about a request to start an interactive rebuild on a +// given pool. +message PoolRebuildStartReq +{ + string sys = 1; // DAOS system identifier + string id = 2; // DAOS pool identifier + repeated uint32 svc_ranks = 3; // List of pool service ranks +} + +// PoolRebuildStartResp returns state which indicates whether request was accepted successfully. +message PoolRebuildStartResp +{ + int32 status = 1; // DAOS error code +} + +// PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a +// given pool. +message PoolRebuildStopReq +{ + string sys = 1; // DAOS system identifier + string id = 2; // DAOS pool identifier + bool force = 3; // Force interactive rebuild stop + repeated uint32 svc_ranks = 4; // List of pool service ranks +} + +// PoolRebuildStopResp returns state which indicates whether request was accepted successfully. +message PoolRebuildStopResp +{ + int32 status = 1; // DAOS error code +} From baf86866f66aa1bd875d71e6afa574ece22c30a7 Mon Sep 17 00:00:00 2001 From: Tom Nabarro Date: Sat, 6 Sep 2025 02:31:35 +0100 Subject: [PATCH 2/2] address review comments from kjacque and kcain Features: control Allow-unstable-test: true Signed-off-by: Tom Nabarro --- src/control/cmd/dmg/command_test.go | 4 +- src/control/cmd/dmg/pool.go | 4 +- src/control/common/proto/mgmt/mgmt.pb.go | 320 +++++++++--------- src/control/common/proto/mgmt/mgmt_grpc.pb.go | 20 +- src/control/common/proto/mgmt/pool.pb.go | 188 ++-------- src/control/lib/control/pool.go | 2 +- src/control/lib/control/pool_test.go | 8 +- src/control/server/mgmt_pool.go | 8 +- src/mgmt/pool.pb-c.c | 179 ++-------- src/mgmt/pool.pb-c.h | 70 +--- src/mgmt/srv_drpc.c | 17 +- src/mgmt/tests/srv_drpc_tests.c | 12 +- src/proto/mgmt/mgmt.proto | 4 +- src/proto/mgmt/pool.proto | 12 +- 14 files changed, 251 insertions(+), 597 deletions(-) diff --git a/src/control/cmd/dmg/command_test.go b/src/control/cmd/dmg/command_test.go index f5ca3b76b11..5daa6fe5730 100644 --- a/src/control/cmd/dmg/command_test.go +++ b/src/control/cmd/dmg/command_test.go @@ -182,9 +182,9 @@ func (bci *bridgeConnInvoker) InvokeUnaryRPC(ctx context.Context, uReq control.U resp = control.MockMSResponse("", nil, &mgmtpb.PoolExtendResp{}) case *control.PoolRebuildReq: if req.Op == control.PoolRebuildOpCodeStart { - resp = control.MockMSResponse("", nil, &mgmtpb.PoolRebuildStartResp{}) + resp = control.MockMSResponse("", nil, &mgmtpb.DaosResp{}) } else if req.Op == control.PoolRebuildOpCodeStop { - resp = control.MockMSResponse("", nil, &mgmtpb.PoolRebuildStopResp{}) + resp = control.MockMSResponse("", nil, &mgmtpb.DaosResp{}) } case *control.SystemCheckEnableReq: resp = control.MockMSResponse("", nil, &mgmtpb.DaosResp{}) diff --git a/src/control/cmd/dmg/pool.go b/src/control/cmd/dmg/pool.go index a8261861a2a..3d831279b93 100644 --- a/src/control/cmd/dmg/pool.go +++ b/src/control/cmd/dmg/pool.go @@ -49,7 +49,7 @@ type PoolCmd struct { SetProp poolSetPropCmd `command:"set-prop" description:"Set pool property"` GetProp poolGetPropCmd `command:"get-prop" description:"Get pool properties"` Upgrade poolUpgradeCmd `command:"upgrade" description:"Upgrade pool to latest format"` - Rebuild poolRebuildCmd `command:"rebuild" description:"Interactive rebuild commands"` + Rebuild poolRebuildCmd `command:"rebuild" description:"Manage interactive rebuild process for pools"` } var ( @@ -1099,7 +1099,7 @@ func (cmd *poolRebuildStartCmd) Execute(_ []string) error { type poolRebuildStopCmd struct { poolRebuildOpCmd - Force bool `short:"f" long:"force" description:"Forcibly stop interactive rebuild"` + Force bool `short:"f" long:"force" description:"Forcibly stop rebuild"` } func (cmd *poolRebuildStopCmd) Execute(_ []string) error { diff --git a/src/control/common/proto/mgmt/mgmt.pb.go b/src/control/common/proto/mgmt/mgmt.pb.go index 29a438db9d0..80307782f00 100644 --- a/src/control/common/proto/mgmt/mgmt.pb.go +++ b/src/control/common/proto/mgmt/mgmt.pb.go @@ -42,7 +42,7 @@ var file_mgmt_mgmt_proto_rawDesc = []byte{ 0x11, 0x6d, 0x67, 0x6d, 0x74, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x63, 0x68, 0x6b, 0x2f, 0x63, 0x68, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x63, 0x68, 0x6b, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x32, 0xd9, 0x16, 0x0a, 0x07, 0x4d, 0x67, 0x6d, 0x74, 0x53, 0x76, 0x63, 0x12, + 0x6f, 0x74, 0x6f, 0x32, 0xc2, 0x16, 0x0a, 0x07, 0x4d, 0x67, 0x6d, 0x74, 0x53, 0x76, 0x63, 0x12, 0x27, 0x0a, 0x04, 0x4a, 0x6f, 0x69, 0x6e, 0x12, 0x0d, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0c, 0x43, 0x6c, 0x75, 0x73, @@ -112,123 +112,121 @@ var file_mgmt_mgmt_proto_rawDesc = []byte{ 0x0a, 0x0b, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x55, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x10, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x19, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x50, 0x6f, 0x6f, - 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x18, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, - 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, - 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, - 0x39, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x73, 0x12, 0x11, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x43, 0x6f, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0c, 0x43, 0x6f, - 0x6e, 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, - 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, + 0x0f, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, + 0x12, 0x18, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, + 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, + 0x12, 0x36, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x12, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x52, 0x65, + 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6f, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x11, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x53, + 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, + 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, + 0x61, 0x6e, 0x75, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x12, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, - 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x12, - 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x6f, - 0x70, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, - 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, - 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, - 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x44, 0x72, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x1a, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, - 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, - 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3b, - 0x0a, 0x11, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x12, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x12, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, - 0x65, 0x12, 0x15, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x13, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0f, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x12, - 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, - 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x14, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, - 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, - 0x14, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, + 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0f, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x14, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x14, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x11, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x61, 0x69, 0x72, 0x12, - 0x11, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, - 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, - 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, - 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, - 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, - 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, - 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x11, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, - 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x10, 0x2e, 0x63, 0x68, - 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x0e, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, - 0x34, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, - 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, - 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x18, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, - 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x67, 0x6d, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, - 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, - 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, - 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, - 0x6f, 0x73, 0x2d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, - 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x52, 0x65, 0x70, 0x61, 0x69, 0x72, 0x12, 0x11, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x6d, 0x67, + 0x6d, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, + 0x00, 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x53, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, + 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x12, 0x16, 0x2e, + 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, + 0x12, 0x39, 0x0a, 0x0d, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x12, 0x16, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x53, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, + 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x12, 0x16, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, + 0x37, 0x0a, 0x11, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0x10, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, + 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, + 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, + 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, + 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x38, + 0x0a, 0x18, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x67, 0x6d, + 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0a, 0x2e, 0x63, 0x68, 0x6b, + 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x1a, 0x0e, 0x2e, 0x6d, 0x67, 0x6d, 0x74, 0x2e, 0x44, 0x61, + 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2d, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_mgmt_mgmt_proto_goTypes = []interface{}{ @@ -293,26 +291,24 @@ var file_mgmt_mgmt_proto_goTypes = []interface{}{ (*PoolGetPropResp)(nil), // 58: mgmt.PoolGetPropResp (*ACLResp)(nil), // 59: mgmt.ACLResp (*PoolUpgradeResp)(nil), // 60: mgmt.PoolUpgradeResp - (*PoolRebuildStartResp)(nil), // 61: mgmt.PoolRebuildStartResp - (*PoolRebuildStopResp)(nil), // 62: mgmt.PoolRebuildStopResp - (*GetAttachInfoResp)(nil), // 63: mgmt.GetAttachInfoResp - (*ListPoolsResp)(nil), // 64: mgmt.ListPoolsResp - (*ListContResp)(nil), // 65: mgmt.ListContResp - (*DaosResp)(nil), // 66: mgmt.DaosResp - (*SystemQueryResp)(nil), // 67: mgmt.SystemQueryResp - (*SystemStopResp)(nil), // 68: mgmt.SystemStopResp - (*SystemStartResp)(nil), // 69: mgmt.SystemStartResp - (*SystemExcludeResp)(nil), // 70: mgmt.SystemExcludeResp - (*SystemDrainResp)(nil), // 71: mgmt.SystemDrainResp - (*SystemEraseResp)(nil), // 72: mgmt.SystemEraseResp - (*SystemCleanupResp)(nil), // 73: mgmt.SystemCleanupResp - (*CheckStartResp)(nil), // 74: mgmt.CheckStartResp - (*CheckStopResp)(nil), // 75: mgmt.CheckStopResp - (*CheckQueryResp)(nil), // 76: mgmt.CheckQueryResp - (*CheckGetPolicyResp)(nil), // 77: mgmt.CheckGetPolicyResp - (*CheckActResp)(nil), // 78: mgmt.CheckActResp - (*SystemGetAttrResp)(nil), // 79: mgmt.SystemGetAttrResp - (*SystemGetPropResp)(nil), // 80: mgmt.SystemGetPropResp + (*DaosResp)(nil), // 61: mgmt.DaosResp + (*GetAttachInfoResp)(nil), // 62: mgmt.GetAttachInfoResp + (*ListPoolsResp)(nil), // 63: mgmt.ListPoolsResp + (*ListContResp)(nil), // 64: mgmt.ListContResp + (*SystemQueryResp)(nil), // 65: mgmt.SystemQueryResp + (*SystemStopResp)(nil), // 66: mgmt.SystemStopResp + (*SystemStartResp)(nil), // 67: mgmt.SystemStartResp + (*SystemExcludeResp)(nil), // 68: mgmt.SystemExcludeResp + (*SystemDrainResp)(nil), // 69: mgmt.SystemDrainResp + (*SystemEraseResp)(nil), // 70: mgmt.SystemEraseResp + (*SystemCleanupResp)(nil), // 71: mgmt.SystemCleanupResp + (*CheckStartResp)(nil), // 72: mgmt.CheckStartResp + (*CheckStopResp)(nil), // 73: mgmt.CheckStopResp + (*CheckQueryResp)(nil), // 74: mgmt.CheckQueryResp + (*CheckGetPolicyResp)(nil), // 75: mgmt.CheckGetPolicyResp + (*CheckActResp)(nil), // 76: mgmt.CheckActResp + (*SystemGetAttrResp)(nil), // 77: mgmt.SystemGetAttrResp + (*SystemGetPropResp)(nil), // 78: mgmt.SystemGetPropResp } var file_mgmt_mgmt_proto_depIdxs = []int32{ 0, // 0: mgmt.MgmtSvc.Join:input_type -> mgmt.JoinReq @@ -381,34 +377,34 @@ var file_mgmt_mgmt_proto_depIdxs = []int32{ 59, // 63: mgmt.MgmtSvc.PoolUpdateACL:output_type -> mgmt.ACLResp 59, // 64: mgmt.MgmtSvc.PoolDeleteACL:output_type -> mgmt.ACLResp 60, // 65: mgmt.MgmtSvc.PoolUpgrade:output_type -> mgmt.PoolUpgradeResp - 61, // 66: mgmt.MgmtSvc.PoolRebuildStart:output_type -> mgmt.PoolRebuildStartResp - 62, // 67: mgmt.MgmtSvc.PoolRebuildStop:output_type -> mgmt.PoolRebuildStopResp - 63, // 68: mgmt.MgmtSvc.GetAttachInfo:output_type -> mgmt.GetAttachInfoResp - 64, // 69: mgmt.MgmtSvc.ListPools:output_type -> mgmt.ListPoolsResp - 65, // 70: mgmt.MgmtSvc.ListContainers:output_type -> mgmt.ListContResp - 66, // 71: mgmt.MgmtSvc.ContSetOwner:output_type -> mgmt.DaosResp - 67, // 72: mgmt.MgmtSvc.SystemQuery:output_type -> mgmt.SystemQueryResp - 68, // 73: mgmt.MgmtSvc.SystemStop:output_type -> mgmt.SystemStopResp - 69, // 74: mgmt.MgmtSvc.SystemStart:output_type -> mgmt.SystemStartResp - 70, // 75: mgmt.MgmtSvc.SystemExclude:output_type -> mgmt.SystemExcludeResp - 71, // 76: mgmt.MgmtSvc.SystemDrain:output_type -> mgmt.SystemDrainResp - 72, // 77: mgmt.MgmtSvc.SystemErase:output_type -> mgmt.SystemEraseResp - 73, // 78: mgmt.MgmtSvc.SystemCleanup:output_type -> mgmt.SystemCleanupResp - 66, // 79: mgmt.MgmtSvc.SystemCheckEnable:output_type -> mgmt.DaosResp - 66, // 80: mgmt.MgmtSvc.SystemCheckDisable:output_type -> mgmt.DaosResp - 74, // 81: mgmt.MgmtSvc.SystemCheckStart:output_type -> mgmt.CheckStartResp - 75, // 82: mgmt.MgmtSvc.SystemCheckStop:output_type -> mgmt.CheckStopResp - 76, // 83: mgmt.MgmtSvc.SystemCheckQuery:output_type -> mgmt.CheckQueryResp - 66, // 84: mgmt.MgmtSvc.SystemCheckSetPolicy:output_type -> mgmt.DaosResp - 77, // 85: mgmt.MgmtSvc.SystemCheckGetPolicy:output_type -> mgmt.CheckGetPolicyResp - 78, // 86: mgmt.MgmtSvc.SystemCheckRepair:output_type -> mgmt.CheckActResp - 66, // 87: mgmt.MgmtSvc.SystemSetAttr:output_type -> mgmt.DaosResp - 79, // 88: mgmt.MgmtSvc.SystemGetAttr:output_type -> mgmt.SystemGetAttrResp - 66, // 89: mgmt.MgmtSvc.SystemSetProp:output_type -> mgmt.DaosResp - 80, // 90: mgmt.MgmtSvc.SystemGetProp:output_type -> mgmt.SystemGetPropResp - 66, // 91: mgmt.MgmtSvc.FaultInjectReport:output_type -> mgmt.DaosResp - 66, // 92: mgmt.MgmtSvc.FaultInjectPoolFault:output_type -> mgmt.DaosResp - 66, // 93: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:output_type -> mgmt.DaosResp + 61, // 66: mgmt.MgmtSvc.PoolRebuildStart:output_type -> mgmt.DaosResp + 61, // 67: mgmt.MgmtSvc.PoolRebuildStop:output_type -> mgmt.DaosResp + 62, // 68: mgmt.MgmtSvc.GetAttachInfo:output_type -> mgmt.GetAttachInfoResp + 63, // 69: mgmt.MgmtSvc.ListPools:output_type -> mgmt.ListPoolsResp + 64, // 70: mgmt.MgmtSvc.ListContainers:output_type -> mgmt.ListContResp + 61, // 71: mgmt.MgmtSvc.ContSetOwner:output_type -> mgmt.DaosResp + 65, // 72: mgmt.MgmtSvc.SystemQuery:output_type -> mgmt.SystemQueryResp + 66, // 73: mgmt.MgmtSvc.SystemStop:output_type -> mgmt.SystemStopResp + 67, // 74: mgmt.MgmtSvc.SystemStart:output_type -> mgmt.SystemStartResp + 68, // 75: mgmt.MgmtSvc.SystemExclude:output_type -> mgmt.SystemExcludeResp + 69, // 76: mgmt.MgmtSvc.SystemDrain:output_type -> mgmt.SystemDrainResp + 70, // 77: mgmt.MgmtSvc.SystemErase:output_type -> mgmt.SystemEraseResp + 71, // 78: mgmt.MgmtSvc.SystemCleanup:output_type -> mgmt.SystemCleanupResp + 61, // 79: mgmt.MgmtSvc.SystemCheckEnable:output_type -> mgmt.DaosResp + 61, // 80: mgmt.MgmtSvc.SystemCheckDisable:output_type -> mgmt.DaosResp + 72, // 81: mgmt.MgmtSvc.SystemCheckStart:output_type -> mgmt.CheckStartResp + 73, // 82: mgmt.MgmtSvc.SystemCheckStop:output_type -> mgmt.CheckStopResp + 74, // 83: mgmt.MgmtSvc.SystemCheckQuery:output_type -> mgmt.CheckQueryResp + 61, // 84: mgmt.MgmtSvc.SystemCheckSetPolicy:output_type -> mgmt.DaosResp + 75, // 85: mgmt.MgmtSvc.SystemCheckGetPolicy:output_type -> mgmt.CheckGetPolicyResp + 76, // 86: mgmt.MgmtSvc.SystemCheckRepair:output_type -> mgmt.CheckActResp + 61, // 87: mgmt.MgmtSvc.SystemSetAttr:output_type -> mgmt.DaosResp + 77, // 88: mgmt.MgmtSvc.SystemGetAttr:output_type -> mgmt.SystemGetAttrResp + 61, // 89: mgmt.MgmtSvc.SystemSetProp:output_type -> mgmt.DaosResp + 78, // 90: mgmt.MgmtSvc.SystemGetProp:output_type -> mgmt.SystemGetPropResp + 61, // 91: mgmt.MgmtSvc.FaultInjectReport:output_type -> mgmt.DaosResp + 61, // 92: mgmt.MgmtSvc.FaultInjectPoolFault:output_type -> mgmt.DaosResp + 61, // 93: mgmt.MgmtSvc.FaultInjectMgmtPoolFault:output_type -> mgmt.DaosResp 47, // [47:94] is the sub-list for method output_type 0, // [0:47] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/src/control/common/proto/mgmt/mgmt_grpc.pb.go b/src/control/common/proto/mgmt/mgmt_grpc.pb.go index f3cf1d6279e..d348663166f 100644 --- a/src/control/common/proto/mgmt/mgmt_grpc.pb.go +++ b/src/control/common/proto/mgmt/mgmt_grpc.pb.go @@ -128,9 +128,9 @@ type MgmtSvcClient interface { // PoolUpgrade upgrades a DAOS pool. PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opts ...grpc.CallOption) (*PoolUpgradeResp, error) // PoolRebuildStart starts an interactive rebuild on a DAOS pool. - PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*PoolRebuildStartResp, error) + PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*DaosResp, error) // PoolRebuildStop stops an interactive rebuild on a DAOS pool. - PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*PoolRebuildStopResp, error) + PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*DaosResp, error) // Get the information required by libdaos to attach to the system. GetAttachInfo(ctx context.Context, in *GetAttachInfoReq, opts ...grpc.CallOption) (*GetAttachInfoResp, error) // List all pools in a DAOS system: basic info: UUIDs, service ranks. @@ -383,9 +383,9 @@ func (c *mgmtSvcClient) PoolUpgrade(ctx context.Context, in *PoolUpgradeReq, opt return out, nil } -func (c *mgmtSvcClient) PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*PoolRebuildStartResp, error) { +func (c *mgmtSvcClient) PoolRebuildStart(ctx context.Context, in *PoolRebuildStartReq, opts ...grpc.CallOption) (*DaosResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PoolRebuildStartResp) + out := new(DaosResp) err := c.cc.Invoke(ctx, MgmtSvc_PoolRebuildStart_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -393,9 +393,9 @@ func (c *mgmtSvcClient) PoolRebuildStart(ctx context.Context, in *PoolRebuildSta return out, nil } -func (c *mgmtSvcClient) PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*PoolRebuildStopResp, error) { +func (c *mgmtSvcClient) PoolRebuildStop(ctx context.Context, in *PoolRebuildStopReq, opts ...grpc.CallOption) (*DaosResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PoolRebuildStopResp) + out := new(DaosResp) err := c.cc.Invoke(ctx, MgmtSvc_PoolRebuildStop_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -714,9 +714,9 @@ type MgmtSvcServer interface { // PoolUpgrade upgrades a DAOS pool. PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) // PoolRebuildStart starts an interactive rebuild on a DAOS pool. - PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*PoolRebuildStartResp, error) + PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*DaosResp, error) // PoolRebuildStop stops an interactive rebuild on a DAOS pool. - PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*PoolRebuildStopResp, error) + PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*DaosResp, error) // Get the information required by libdaos to attach to the system. GetAttachInfo(context.Context, *GetAttachInfoReq) (*GetAttachInfoResp, error) // List all pools in a DAOS system: basic info: UUIDs, service ranks. @@ -836,10 +836,10 @@ func (UnimplementedMgmtSvcServer) PoolDeleteACL(context.Context, *DeleteACLReq) func (UnimplementedMgmtSvcServer) PoolUpgrade(context.Context, *PoolUpgradeReq) (*PoolUpgradeResp, error) { return nil, status.Errorf(codes.Unimplemented, "method PoolUpgrade not implemented") } -func (UnimplementedMgmtSvcServer) PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*PoolRebuildStartResp, error) { +func (UnimplementedMgmtSvcServer) PoolRebuildStart(context.Context, *PoolRebuildStartReq) (*DaosResp, error) { return nil, status.Errorf(codes.Unimplemented, "method PoolRebuildStart not implemented") } -func (UnimplementedMgmtSvcServer) PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*PoolRebuildStopResp, error) { +func (UnimplementedMgmtSvcServer) PoolRebuildStop(context.Context, *PoolRebuildStopReq) (*DaosResp, error) { return nil, status.Errorf(codes.Unimplemented, "method PoolRebuildStop not implemented") } func (UnimplementedMgmtSvcServer) GetAttachInfo(context.Context, *GetAttachInfoReq) (*GetAttachInfoResp, error) { diff --git a/src/control/common/proto/mgmt/pool.pb.go b/src/control/common/proto/mgmt/pool.pb.go index 502b1d2eb44..cf11fe562c8 100644 --- a/src/control/common/proto/mgmt/pool.pb.go +++ b/src/control/common/proto/mgmt/pool.pb.go @@ -2863,54 +2863,6 @@ func (x *PoolRebuildStartReq) GetSvcRanks() []uint32 { return nil } -// PoolRebuildStartResp returns state which indicates whether request was accepted successfully. -type PoolRebuildStartResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // DAOS error code -} - -func (x *PoolRebuildStartResp) Reset() { - *x = PoolRebuildStartResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoolRebuildStartResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoolRebuildStartResp) ProtoMessage() {} - -func (x *PoolRebuildStartResp) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PoolRebuildStartResp.ProtoReflect.Descriptor instead. -func (*PoolRebuildStartResp) Descriptor() ([]byte, []int) { - return file_mgmt_pool_proto_rawDescGZIP(), []int{34} -} - -func (x *PoolRebuildStartResp) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - // PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a // given pool. type PoolRebuildStopReq struct { @@ -2927,7 +2879,7 @@ type PoolRebuildStopReq struct { func (x *PoolRebuildStopReq) Reset() { *x = PoolRebuildStopReq{} if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[35] + mi := &file_mgmt_pool_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2940,7 +2892,7 @@ func (x *PoolRebuildStopReq) String() string { func (*PoolRebuildStopReq) ProtoMessage() {} func (x *PoolRebuildStopReq) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[35] + mi := &file_mgmt_pool_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2953,7 +2905,7 @@ func (x *PoolRebuildStopReq) ProtoReflect() protoreflect.Message { // Deprecated: Use PoolRebuildStopReq.ProtoReflect.Descriptor instead. func (*PoolRebuildStopReq) Descriptor() ([]byte, []int) { - return file_mgmt_pool_proto_rawDescGZIP(), []int{35} + return file_mgmt_pool_proto_rawDescGZIP(), []int{34} } func (x *PoolRebuildStopReq) GetSys() string { @@ -2984,54 +2936,6 @@ func (x *PoolRebuildStopReq) GetSvcRanks() []uint32 { return nil } -// PoolRebuildStopResp returns state which indicates whether request was accepted successfully. -type PoolRebuildStopResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // DAOS error code -} - -func (x *PoolRebuildStopResp) Reset() { - *x = PoolRebuildStopResp{} - if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoolRebuildStopResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoolRebuildStopResp) ProtoMessage() {} - -func (x *PoolRebuildStopResp) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PoolRebuildStopResp.ProtoReflect.Descriptor instead. -func (*PoolRebuildStopResp) Descriptor() ([]byte, []int) { - return file_mgmt_pool_proto_rawDescGZIP(), []int{36} -} - -func (x *PoolRebuildStopResp) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - type ListPoolsResp_Pool struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3047,7 +2951,7 @@ type ListPoolsResp_Pool struct { func (x *ListPoolsResp_Pool) Reset() { *x = ListPoolsResp_Pool{} if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[37] + mi := &file_mgmt_pool_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3060,7 +2964,7 @@ func (x *ListPoolsResp_Pool) String() string { func (*ListPoolsResp_Pool) ProtoMessage() {} func (x *ListPoolsResp_Pool) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[37] + mi := &file_mgmt_pool_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3122,7 +3026,7 @@ type ListContResp_Cont struct { func (x *ListContResp_Cont) Reset() { *x = ListContResp_Cont{} if protoimpl.UnsafeEnabled { - mi := &file_mgmt_pool_proto_msgTypes[38] + mi := &file_mgmt_pool_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3135,7 +3039,7 @@ func (x *ListContResp_Cont) String() string { func (*ListContResp_Cont) ProtoMessage() {} func (x *ListContResp_Cont) ProtoReflect() protoreflect.Message { - mi := &file_mgmt_pool_proto_msgTypes[38] + mi := &file_mgmt_pool_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3490,32 +3394,26 @@ var file_mgmt_pool_proto_rawDesc = []byte{ 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x79, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x76, 0x63, 0x5f, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, - 0x08, 0x73, 0x76, 0x63, 0x52, 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x2e, 0x0a, 0x14, 0x50, 0x6f, 0x6f, - 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x69, 0x0a, 0x12, 0x50, 0x6f, 0x6f, + 0x08, 0x73, 0x76, 0x63, 0x52, 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x69, 0x0a, 0x12, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x79, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x76, 0x63, 0x5f, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x76, 0x63, 0x52, - 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x2d, 0x0a, 0x13, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x2a, 0x25, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x65, - 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x43, 0x4d, 0x10, 0x00, - 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x56, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0x5d, 0x0a, 0x10, 0x50, 0x6f, - 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, - 0x0a, 0x08, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, - 0x52, 0x65, 0x61, 0x64, 0x79, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x74, 0x72, - 0x6f, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, - 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x04, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2d, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x6e, 0x6b, 0x73, 0x2a, 0x25, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, + 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x43, 0x4d, 0x10, + 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x56, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0x5d, 0x0a, 0x10, 0x50, + 0x6f, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x0c, 0x0a, 0x08, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x09, 0x0a, + 0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x74, + 0x72, 0x6f, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x73, 0x45, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x10, 0x03, 0x12, 0x0b, 0x0a, + 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x04, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2d, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x2f, 0x64, 0x61, 0x6f, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x6d, 0x67, 0x6d, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3531,7 +3429,7 @@ func file_mgmt_pool_proto_rawDescGZIP() []byte { } var file_mgmt_pool_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_mgmt_pool_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_mgmt_pool_proto_msgTypes = make([]protoimpl.MessageInfo, 37) var file_mgmt_pool_proto_goTypes = []interface{}{ (StorageMediaType)(0), // 0: mgmt.StorageMediaType (PoolServiceState)(0), // 1: mgmt.PoolServiceState @@ -3572,16 +3470,14 @@ var file_mgmt_pool_proto_goTypes = []interface{}{ (*PoolQueryTargetInfo)(nil), // 36: mgmt.PoolQueryTargetInfo (*PoolQueryTargetResp)(nil), // 37: mgmt.PoolQueryTargetResp (*PoolRebuildStartReq)(nil), // 38: mgmt.PoolRebuildStartReq - (*PoolRebuildStartResp)(nil), // 39: mgmt.PoolRebuildStartResp - (*PoolRebuildStopReq)(nil), // 40: mgmt.PoolRebuildStopReq - (*PoolRebuildStopResp)(nil), // 41: mgmt.PoolRebuildStopResp - (*ListPoolsResp_Pool)(nil), // 42: mgmt.ListPoolsResp.Pool - (*ListContResp_Cont)(nil), // 43: mgmt.ListContResp.Cont + (*PoolRebuildStopReq)(nil), // 39: mgmt.PoolRebuildStopReq + (*ListPoolsResp_Pool)(nil), // 40: mgmt.ListPoolsResp.Pool + (*ListContResp_Cont)(nil), // 41: mgmt.ListContResp.Cont } var file_mgmt_pool_proto_depIdxs = []int32{ 27, // 0: mgmt.PoolCreateReq.properties:type_name -> mgmt.PoolProperty - 42, // 1: mgmt.ListPoolsResp.pools:type_name -> mgmt.ListPoolsResp.Pool - 43, // 2: mgmt.ListContResp.containers:type_name -> mgmt.ListContResp.Cont + 40, // 1: mgmt.ListPoolsResp.pools:type_name -> mgmt.ListPoolsResp.Pool + 41, // 2: mgmt.ListContResp.containers:type_name -> mgmt.ListContResp.Cont 0, // 3: mgmt.StorageUsageStats.media_type:type_name -> mgmt.StorageMediaType 2, // 4: mgmt.PoolRebuildStatus.state:type_name -> mgmt.PoolRebuildStatus.State 25, // 5: mgmt.PoolQueryResp.rebuild:type_name -> mgmt.PoolRebuildStatus @@ -4017,18 +3913,6 @@ func file_mgmt_pool_proto_init() { } } file_mgmt_pool_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoolRebuildStartResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mgmt_pool_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PoolRebuildStopReq); i { case 0: return &v.state @@ -4040,19 +3924,7 @@ func file_mgmt_pool_proto_init() { return nil } } - file_mgmt_pool_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoolRebuildStopResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mgmt_pool_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_mgmt_pool_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListPoolsResp_Pool); i { case 0: return &v.state @@ -4064,7 +3936,7 @@ func file_mgmt_pool_proto_init() { return nil } } - file_mgmt_pool_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_mgmt_pool_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListContResp_Cont); i { case 0: return &v.state @@ -4087,7 +3959,7 @@ func file_mgmt_pool_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_mgmt_pool_proto_rawDesc, NumEnums: 5, - NumMessages: 39, + NumMessages: 37, NumExtensions: 0, NumServices: 0, }, diff --git a/src/control/lib/control/pool.go b/src/control/lib/control/pool.go index b265d1ada86..e63857f7c2e 100644 --- a/src/control/lib/control/pool.go +++ b/src/control/lib/control/pool.go @@ -1323,7 +1323,7 @@ func getMaxPoolSize(ctx context.Context, rpcClient UnaryInvoker, createReq *Pool return metaBytes, nvmeBytes, nil } -// PoolRebuildOpcode indicates the type of interactive rebuild operation to be triggererd. +// PoolRebuildOpcode indicates the type of interactive rebuild operation to be triggered. type PoolRebuildOpCode int32 // PoolRebuildOpCode definitions for supported interactive rebuild operations. diff --git a/src/control/lib/control/pool_test.go b/src/control/lib/control/pool_test.go index 0380757fa79..08ab9f7fb56 100644 --- a/src/control/lib/control/pool_test.go +++ b/src/control/lib/control/pool_test.go @@ -3641,7 +3641,7 @@ func TestControl_PoolRebuild(t *testing.T) { mic: &MockInvokerConfig{ UnaryResponseSet: []*UnaryResponse{ MockMSResponse("host1", daos.GroupVersionMismatch, nil), - MockMSResponse("host1", nil, &mgmtpb.PoolRebuildStartResp{}), + MockMSResponse("host1", nil, &mgmtpb.DaosResp{}), }, }, }, @@ -3653,7 +3653,7 @@ func TestControl_PoolRebuild(t *testing.T) { mic: &MockInvokerConfig{ UnaryResponseSet: []*UnaryResponse{ MockMSResponse("host1", daos.TryAgain, nil), - MockMSResponse("host1", nil, &mgmtpb.PoolRebuildStopResp{}), + MockMSResponse("host1", nil, &mgmtpb.DaosResp{}), }, }, }, @@ -3664,7 +3664,7 @@ func TestControl_PoolRebuild(t *testing.T) { }, mic: &MockInvokerConfig{ UnaryResponse: MockMSResponse("host1", nil, - &mgmtpb.PoolRebuildStartResp{}, + &mgmtpb.DaosResp{}, ), }, }, @@ -3684,7 +3684,7 @@ func TestControl_PoolRebuild(t *testing.T) { }, mic: &MockInvokerConfig{ UnaryResponse: MockMSResponse("host1", nil, - &mgmtpb.PoolRebuildStopResp{}, + &mgmtpb.DaosResp{}, ), }, }, diff --git a/src/control/server/mgmt_pool.go b/src/control/server/mgmt_pool.go index f38f2cff9a5..ec342cbffa6 100644 --- a/src/control/server/mgmt_pool.go +++ b/src/control/server/mgmt_pool.go @@ -1265,7 +1265,7 @@ func (svc *mgmtSvc) ListPools(ctx context.Context, req *mgmtpb.ListPoolsReq) (*m } // PoolRebuildStart forwards a pool interactive rebuild start request to the I/O Engine. -func (svc *mgmtSvc) PoolRebuildStart(ctx context.Context, req *mgmtpb.PoolRebuildStartReq) (*mgmtpb.PoolRebuildStartResp, error) { +func (svc *mgmtSvc) PoolRebuildStart(ctx context.Context, req *mgmtpb.PoolRebuildStartReq) (*mgmtpb.DaosResp, error) { if err := svc.checkLeaderRequest(req); err != nil { return nil, err } @@ -1275,7 +1275,7 @@ func (svc *mgmtSvc) PoolRebuildStart(ctx context.Context, req *mgmtpb.PoolRebuil return nil, err } - resp := &mgmtpb.PoolRebuildStartResp{} + resp := &mgmtpb.DaosResp{} if err := svc.unmarshalPB(dResp.Body, resp); err != nil { return nil, err } @@ -1284,7 +1284,7 @@ func (svc *mgmtSvc) PoolRebuildStart(ctx context.Context, req *mgmtpb.PoolRebuil } // PoolRebuildStop forwards a pool interactive rebuild stop request to the I/O Engine. -func (svc *mgmtSvc) PoolRebuildStop(ctx context.Context, req *mgmtpb.PoolRebuildStopReq) (*mgmtpb.PoolRebuildStopResp, error) { +func (svc *mgmtSvc) PoolRebuildStop(ctx context.Context, req *mgmtpb.PoolRebuildStopReq) (*mgmtpb.DaosResp, error) { if err := svc.checkLeaderRequest(req); err != nil { return nil, err } @@ -1294,7 +1294,7 @@ func (svc *mgmtSvc) PoolRebuildStop(ctx context.Context, req *mgmtpb.PoolRebuild return nil, err } - resp := &mgmtpb.PoolRebuildStopResp{} + resp := &mgmtpb.DaosResp{} if err := svc.unmarshalPB(dResp.Body, resp); err != nil { return nil, err } diff --git a/src/mgmt/pool.pb-c.c b/src/mgmt/pool.pb-c.c index f62546f04c8..55e00aa001d 100644 --- a/src/mgmt/pool.pb-c.c +++ b/src/mgmt/pool.pb-c.c @@ -1545,47 +1545,6 @@ mgmt__pool_rebuild_start_req__free_unpacked(Mgmt__PoolRebuildStartReq *message, protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); } void -mgmt__pool_rebuild_start_resp__init(Mgmt__PoolRebuildStartResp *message) -{ - static const Mgmt__PoolRebuildStartResp init_value = MGMT__POOL_REBUILD_START_RESP__INIT; - *message = init_value; -} -size_t -mgmt__pool_rebuild_start_resp__get_packed_size(const Mgmt__PoolRebuildStartResp *message) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); - return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); -} -size_t -mgmt__pool_rebuild_start_resp__pack(const Mgmt__PoolRebuildStartResp *message, uint8_t *out) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); - return protobuf_c_message_pack((const ProtobufCMessage *)message, out); -} -size_t -mgmt__pool_rebuild_start_resp__pack_to_buffer(const Mgmt__PoolRebuildStartResp *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); - return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); -} -Mgmt__PoolRebuildStartResp * -mgmt__pool_rebuild_start_resp__unpack(ProtobufCAllocator *allocator, size_t len, - const uint8_t *data) -{ - return (Mgmt__PoolRebuildStartResp *)protobuf_c_message_unpack( - &mgmt__pool_rebuild_start_resp__descriptor, allocator, len, data); -} -void -mgmt__pool_rebuild_start_resp__free_unpacked(Mgmt__PoolRebuildStartResp *message, - ProtobufCAllocator *allocator) -{ - if (!message) - return; - assert(message->base.descriptor == &mgmt__pool_rebuild_start_resp__descriptor); - protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); -} -void mgmt__pool_rebuild_stop_req__init(Mgmt__PoolRebuildStopReq *message) { static const Mgmt__PoolRebuildStopReq init_value = MGMT__POOL_REBUILD_STOP_REQ__INIT; @@ -1625,46 +1584,6 @@ mgmt__pool_rebuild_stop_req__free_unpacked(Mgmt__PoolRebuildStopReq *message, assert(message->base.descriptor == &mgmt__pool_rebuild_stop_req__descriptor); protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); } -void -mgmt__pool_rebuild_stop_resp__init(Mgmt__PoolRebuildStopResp *message) -{ - static const Mgmt__PoolRebuildStopResp init_value = MGMT__POOL_REBUILD_STOP_RESP__INIT; - *message = init_value; -} -size_t -mgmt__pool_rebuild_stop_resp__get_packed_size(const Mgmt__PoolRebuildStopResp *message) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); - return protobuf_c_message_get_packed_size((const ProtobufCMessage *)(message)); -} -size_t -mgmt__pool_rebuild_stop_resp__pack(const Mgmt__PoolRebuildStopResp *message, uint8_t *out) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); - return protobuf_c_message_pack((const ProtobufCMessage *)message, out); -} -size_t -mgmt__pool_rebuild_stop_resp__pack_to_buffer(const Mgmt__PoolRebuildStopResp *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); - return protobuf_c_message_pack_to_buffer((const ProtobufCMessage *)message, buffer); -} -Mgmt__PoolRebuildStopResp * -mgmt__pool_rebuild_stop_resp__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data) -{ - return (Mgmt__PoolRebuildStopResp *)protobuf_c_message_unpack( - &mgmt__pool_rebuild_stop_resp__descriptor, allocator, len, data); -} -void -mgmt__pool_rebuild_stop_resp__free_unpacked(Mgmt__PoolRebuildStopResp *message, - ProtobufCAllocator *allocator) -{ - if (!message) - return; - assert(message->base.descriptor == &mgmt__pool_rebuild_stop_resp__descriptor); - protobuf_c_message_free_unpacked((ProtobufCMessage *)message, allocator); -} static const ProtobufCFieldDescriptor mgmt__pool_create_req__field_descriptors[14] = { { "uuid", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ @@ -1912,27 +1831,25 @@ static const ProtobufCFieldDescriptor mgmt__pool_destroy_resp__field_descriptors }, }; static const unsigned mgmt__pool_destroy_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_destroy_resp__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 1 } + 0, /* field[0] = status */ }; -const ProtobufCMessageDescriptor mgmt__pool_destroy_resp__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolDestroyResp", - "PoolDestroyResp", - "Mgmt__PoolDestroyResp", - "mgmt", - sizeof(Mgmt__PoolDestroyResp), - 1, - mgmt__pool_destroy_resp__field_descriptors, - mgmt__pool_destroy_resp__field_indices_by_name, - 1, mgmt__pool_destroy_resp__number_ranges, - (ProtobufCMessageInit) mgmt__pool_destroy_resp__init, - NULL,NULL,NULL /* reserved[123] */ +static const ProtobufCIntRange mgmt__pool_destroy_resp__number_ranges[1 + 1] = {{1, 0}, {0, 1}}; +const ProtobufCMessageDescriptor mgmt__pool_destroy_resp__descriptor = { + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "mgmt.PoolDestroyResp", + "PoolDestroyResp", + "Mgmt__PoolDestroyResp", + "mgmt", + sizeof(Mgmt__PoolDestroyResp), + 1, + mgmt__pool_destroy_resp__field_descriptors, + mgmt__pool_destroy_resp__field_indices_by_name, + 1, + mgmt__pool_destroy_resp__number_ranges, + (ProtobufCMessageInit)mgmt__pool_destroy_resp__init, + NULL, + NULL, + NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor mgmt__pool_evict_req__field_descriptors[7] = { { @@ -3688,35 +3605,6 @@ const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_req__descriptor NULL, NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_rebuild_start_resp__field_descriptors[1] = { - { - "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStartResp, status), NULL, NULL, 0, /* flags */ - 0, NULL, NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_rebuild_start_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_rebuild_start_resp__number_ranges[1 + 1] = {{1, 0}, - {0, 1}}; -const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_resp__descriptor = { - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolRebuildStartResp", - "PoolRebuildStartResp", - "Mgmt__PoolRebuildStartResp", - "mgmt", - sizeof(Mgmt__PoolRebuildStartResp), - 1, - mgmt__pool_rebuild_start_resp__field_descriptors, - mgmt__pool_rebuild_start_resp__field_indices_by_name, - 1, - mgmt__pool_rebuild_start_resp__number_ranges, - (ProtobufCMessageInit)mgmt__pool_rebuild_start_resp__init, - NULL, - NULL, - NULL /* reserved[123] */ -}; static const ProtobufCFieldDescriptor mgmt__pool_rebuild_stop_req__field_descriptors[4] = { { "sys", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ @@ -3748,7 +3636,7 @@ static const unsigned mgmt__pool_rebuild_stop_req__field_indices_by_name[] = { 0, /* field[0] = sys */ }; static const ProtobufCIntRange mgmt__pool_rebuild_stop_req__number_ranges[1 + 1] = {{1, 0}, {0, 4}}; -const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor = { +const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "mgmt.PoolRebuildStopReq", "PoolRebuildStopReq", @@ -3765,35 +3653,6 @@ const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor NULL, NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor mgmt__pool_rebuild_stop_resp__field_descriptors[1] = { - { - "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - offsetof(Mgmt__PoolRebuildStopResp, status), NULL, NULL, 0, /* flags */ - 0, NULL, NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned mgmt__pool_rebuild_stop_resp__field_indices_by_name[] = { - 0, /* field[0] = status */ -}; -static const ProtobufCIntRange mgmt__pool_rebuild_stop_resp__number_ranges[1 + 1] = {{1, 0}, - {0, 1}}; -const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_resp__descriptor = { - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "mgmt.PoolRebuildStopResp", - "PoolRebuildStopResp", - "Mgmt__PoolRebuildStopResp", - "mgmt", - sizeof(Mgmt__PoolRebuildStopResp), - 1, - mgmt__pool_rebuild_stop_resp__field_descriptors, - mgmt__pool_rebuild_stop_resp__field_indices_by_name, - 1, - mgmt__pool_rebuild_stop_resp__number_ranges, - (ProtobufCMessageInit)mgmt__pool_rebuild_stop_resp__init, - NULL, - NULL, - NULL /* reserved[123] */ -}; static const ProtobufCEnumValue mgmt__storage_media_type__enum_values_by_number[2] = { { "SCM", "MGMT__STORAGE_MEDIA_TYPE__SCM", 0 }, diff --git a/src/mgmt/pool.pb-c.h b/src/mgmt/pool.pb-c.h index b876fc0962b..0db81b452d9 100644 --- a/src/mgmt/pool.pb-c.h +++ b/src/mgmt/pool.pb-c.h @@ -50,10 +50,8 @@ typedef struct _Mgmt__PoolQueryTargetReq Mgmt__PoolQueryTargetReq; typedef struct _Mgmt__StorageTargetUsage Mgmt__StorageTargetUsage; typedef struct _Mgmt__PoolQueryTargetInfo Mgmt__PoolQueryTargetInfo; typedef struct _Mgmt__PoolQueryTargetResp Mgmt__PoolQueryTargetResp; -typedef struct _Mgmt__PoolRebuildStartReq Mgmt__PoolRebuildStartReq; -typedef struct _Mgmt__PoolRebuildStartResp Mgmt__PoolRebuildStartResp; -typedef struct _Mgmt__PoolRebuildStopReq Mgmt__PoolRebuildStopReq; -typedef struct _Mgmt__PoolRebuildStopResp Mgmt__PoolRebuildStopResp; +typedef struct _Mgmt__PoolRebuildStartReq Mgmt__PoolRebuildStartReq; +typedef struct _Mgmt__PoolRebuildStopReq Mgmt__PoolRebuildStopReq; /* --- enums --- */ @@ -1195,19 +1193,6 @@ struct _Mgmt__PoolRebuildStartReq { {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_start_req__descriptor), \ (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, NULL} -/* - * PoolRebuildStartResp returns state which indicates whether request was accepted successfully. - */ -struct _Mgmt__PoolRebuildStartResp { - ProtobufCMessage base; - /* - * DAOS error code - */ - int32_t status; -}; -#define MGMT__POOL_REBUILD_START_RESP__INIT \ - {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_start_resp__descriptor), 0} - /* * PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a * given pool. @@ -1240,19 +1225,6 @@ struct _Mgmt__PoolRebuildStopReq { 0, \ NULL} -/* - * PoolRebuildStopResp returns state which indicates whether request was accepted successfully. - */ -struct _Mgmt__PoolRebuildStopResp { - ProtobufCMessage base; - /* - * DAOS error code - */ - int32_t status; -}; -#define MGMT__POOL_REBUILD_STOP_RESP__INIT \ - {PROTOBUF_C_MESSAGE_INIT(&mgmt__pool_rebuild_stop_resp__descriptor), 0} - /* Mgmt__PoolCreateReq methods */ void mgmt__pool_create_req__init (Mgmt__PoolCreateReq *message); @@ -1902,22 +1874,6 @@ mgmt__pool_rebuild_start_req__unpack(ProtobufCAllocator *allocator, size_t len, void mgmt__pool_rebuild_start_req__free_unpacked(Mgmt__PoolRebuildStartReq *message, ProtobufCAllocator *allocator); -/* Mgmt__PoolRebuildStartResp methods */ -void -mgmt__pool_rebuild_start_resp__init(Mgmt__PoolRebuildStartResp *message); -size_t -mgmt__pool_rebuild_start_resp__get_packed_size(const Mgmt__PoolRebuildStartResp *message); -size_t -mgmt__pool_rebuild_start_resp__pack(const Mgmt__PoolRebuildStartResp *message, uint8_t *out); -size_t -mgmt__pool_rebuild_start_resp__pack_to_buffer(const Mgmt__PoolRebuildStartResp *message, - ProtobufCBuffer *buffer); -Mgmt__PoolRebuildStartResp * -mgmt__pool_rebuild_start_resp__unpack(ProtobufCAllocator *allocator, size_t len, - const uint8_t *data); -void -mgmt__pool_rebuild_start_resp__free_unpacked(Mgmt__PoolRebuildStartResp *message, - ProtobufCAllocator *allocator); /* Mgmt__PoolRebuildStopReq methods */ void mgmt__pool_rebuild_stop_req__init(Mgmt__PoolRebuildStopReq *message); @@ -1933,22 +1889,6 @@ mgmt__pool_rebuild_stop_req__unpack(ProtobufCAllocator *allocator, size_t len, c void mgmt__pool_rebuild_stop_req__free_unpacked(Mgmt__PoolRebuildStopReq *message, ProtobufCAllocator *allocator); -/* Mgmt__PoolRebuildStopResp methods */ -void -mgmt__pool_rebuild_stop_resp__init(Mgmt__PoolRebuildStopResp *message); -size_t -mgmt__pool_rebuild_stop_resp__get_packed_size(const Mgmt__PoolRebuildStopResp *message); -size_t -mgmt__pool_rebuild_stop_resp__pack(const Mgmt__PoolRebuildStopResp *message, uint8_t *out); -size_t -mgmt__pool_rebuild_stop_resp__pack_to_buffer(const Mgmt__PoolRebuildStopResp *message, - ProtobufCBuffer *buffer); -Mgmt__PoolRebuildStopResp * -mgmt__pool_rebuild_stop_resp__unpack(ProtobufCAllocator *allocator, size_t len, - const uint8_t *data); -void -mgmt__pool_rebuild_stop_resp__free_unpacked(Mgmt__PoolRebuildStopResp *message, - ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*Mgmt__PoolCreateReq_Closure) @@ -2058,12 +1998,8 @@ typedef void (*Mgmt__PoolQueryTargetResp_Closure) void *closure_data); typedef void (*Mgmt__PoolRebuildStartReq_Closure)(const Mgmt__PoolRebuildStartReq *message, void *closure_data); -typedef void (*Mgmt__PoolRebuildStartResp_Closure)(const Mgmt__PoolRebuildStartResp *message, - void *closure_data); typedef void (*Mgmt__PoolRebuildStopReq_Closure)(const Mgmt__PoolRebuildStopReq *message, void *closure_data); -typedef void (*Mgmt__PoolRebuildStopResp_Closure)(const Mgmt__PoolRebuildStopResp *message, - void *closure_data); /* --- services --- */ @@ -2111,9 +2047,7 @@ extern const ProtobufCEnumDescriptor mgmt__pool_query_target_info__target_typ extern const ProtobufCEnumDescriptor mgmt__pool_query_target_info__target_state__descriptor; extern const ProtobufCMessageDescriptor mgmt__pool_query_target_resp__descriptor; extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_req__descriptor; -extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_start_resp__descriptor; extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_req__descriptor; -extern const ProtobufCMessageDescriptor mgmt__pool_rebuild_stop_resp__descriptor; PROTOBUF_C__END_DECLS diff --git a/src/mgmt/srv_drpc.c b/src/mgmt/srv_drpc.c index 38d5ea1f8b4..09ec1218f1b 100644 --- a/src/mgmt/srv_drpc.c +++ b/src/mgmt/srv_drpc.c @@ -2027,7 +2027,7 @@ ds_mgmt_drpc_pool_rebuild_start(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) { struct drpc_alloc alloc = PROTO_ALLOCATOR_INIT(alloc); Mgmt__PoolRebuildStartReq *req = NULL; - Mgmt__PoolRebuildStartResp resp = MGMT__POOL_REBUILD_START_RESP__INIT; + Mgmt__DaosResp resp = MGMT__DAOS_RESP__INIT; uuid_t uuid; d_rank_list_t *svc_ranks = NULL; uint8_t *body; @@ -2044,7 +2044,7 @@ ds_mgmt_drpc_pool_rebuild_start(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) return; } - D_INFO("Received request to start interactive rebuild on pool %s\n", req->id); + D_INFO("Received request to interactively start/resume rebuild on pool %s\n", req->id); if (uuid_parse(req->id, uuid) != 0) { rc = -DER_INVAL; @@ -2062,12 +2062,12 @@ ds_mgmt_drpc_pool_rebuild_start(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) out: resp.status = rc; - len = mgmt__pool_rebuild_start_resp__get_packed_size(&resp); + len = mgmt__daos_resp__get_packed_size(&resp); D_ALLOC(body, len); if (body == NULL) { drpc_resp->status = DRPC__STATUS__FAILED_MARSHAL; } else { - mgmt__pool_rebuild_start_resp__pack(&resp, body); + mgmt__daos_resp__pack(&resp, body); drpc_resp->body.len = len; drpc_resp->body.data = body; } @@ -2080,7 +2080,7 @@ ds_mgmt_drpc_pool_rebuild_stop(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) { struct drpc_alloc alloc = PROTO_ALLOCATOR_INIT(alloc); Mgmt__PoolRebuildStopReq *req = NULL; - Mgmt__PoolRebuildStopResp resp = MGMT__POOL_REBUILD_STOP_RESP__INIT; + Mgmt__DaosResp resp = MGMT__DAOS_RESP__INIT; uuid_t uuid; d_rank_list_t *svc_ranks = NULL; uint8_t *body; @@ -2097,7 +2097,8 @@ ds_mgmt_drpc_pool_rebuild_stop(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) return; } - D_INFO("Received request to stop interactive rebuild on pool %s\n", req->id); + D_INFO("Received request to interactively %sstop rebuild on pool %s\n", + req->force ? "force-" : "", req->id); if (uuid_parse(req->id, uuid) != 0) { rc = -DER_INVAL; @@ -2115,12 +2116,12 @@ ds_mgmt_drpc_pool_rebuild_stop(Drpc__Call *drpc_req, Drpc__Response *drpc_resp) out: resp.status = rc; - len = mgmt__pool_rebuild_stop_resp__get_packed_size(&resp); + len = mgmt__daos_resp__get_packed_size(&resp); D_ALLOC(body, len); if (body == NULL) { drpc_resp->status = DRPC__STATUS__FAILED_MARSHAL; } else { - mgmt__pool_rebuild_stop_resp__pack(&resp, body); + mgmt__daos_resp__pack(&resp, body); drpc_resp->body.len = len; drpc_resp->body.data = body; } diff --git a/src/mgmt/tests/srv_drpc_tests.c b/src/mgmt/tests/srv_drpc_tests.c index 13244da8584..23f8aaac6dc 100644 --- a/src/mgmt/tests/srv_drpc_tests.c +++ b/src/mgmt/tests/srv_drpc_tests.c @@ -2690,16 +2690,16 @@ setup_rebuild_start_drpc_call(Drpc__Call *call, char *uuid, char *sys_name) static void expect_drpc_rebuild_start_resp_with_status(Drpc__Response *resp, int exp_status) { - Mgmt__PoolRebuildStartResp *pc_resp = NULL; + Mgmt__DaosResp *pc_resp = NULL; assert_int_equal(resp->status, DRPC__STATUS__SUCCESS); assert_non_null(resp->body.data); - pc_resp = mgmt__pool_rebuild_start_resp__unpack(NULL, resp->body.len, resp->body.data); + pc_resp = mgmt__daos_resp__unpack(NULL, resp->body.len, resp->body.data); assert_non_null(pc_resp); assert_int_equal(pc_resp->status, exp_status); - mgmt__pool_rebuild_start_resp__free_unpacked(pc_resp, NULL); + mgmt__daos_resp__free_unpacked(pc_resp, NULL); } static void @@ -2782,16 +2782,16 @@ setup_rebuild_stop_drpc_call(Drpc__Call *call, char *uuid, char *sys_name, uint3 static void expect_drpc_rebuild_stop_resp_with_status(Drpc__Response *resp, int exp_status) { - Mgmt__PoolRebuildStopResp *pc_resp = NULL; + Mgmt__DaosResp *pc_resp = NULL; assert_int_equal(resp->status, DRPC__STATUS__SUCCESS); assert_non_null(resp->body.data); - pc_resp = mgmt__pool_rebuild_stop_resp__unpack(NULL, resp->body.len, resp->body.data); + pc_resp = mgmt__daos_resp__unpack(NULL, resp->body.len, resp->body.data); assert_non_null(pc_resp); assert_int_equal(pc_resp->status, exp_status); - mgmt__pool_rebuild_stop_resp__free_unpacked(pc_resp, NULL); + mgmt__daos_resp__free_unpacked(pc_resp, NULL); } static void diff --git a/src/proto/mgmt/mgmt.proto b/src/proto/mgmt/mgmt.proto index c92677d7003..047302e9c86 100644 --- a/src/proto/mgmt/mgmt.proto +++ b/src/proto/mgmt/mgmt.proto @@ -67,9 +67,9 @@ service MgmtSvc { // PoolUpgrade upgrades a DAOS pool. rpc PoolUpgrade(PoolUpgradeReq) returns (PoolUpgradeResp) {} // PoolRebuildStart starts an interactive rebuild on a DAOS pool. - rpc PoolRebuildStart(PoolRebuildStartReq) returns (PoolRebuildStartResp) {} + rpc PoolRebuildStart(PoolRebuildStartReq) returns (DaosResp) {} // PoolRebuildStop stops an interactive rebuild on a DAOS pool. - rpc PoolRebuildStop(PoolRebuildStopReq) returns (PoolRebuildStopResp) {} + rpc PoolRebuildStop(PoolRebuildStopReq) returns (DaosResp) {} // Get the information required by libdaos to attach to the system. rpc GetAttachInfo(GetAttachInfoReq) returns (GetAttachInfoResp) {} // List all pools in a DAOS system: basic info: UUIDs, service ranks. diff --git a/src/proto/mgmt/pool.proto b/src/proto/mgmt/pool.proto index 90f83c8ad94..2febf469453 100644 --- a/src/proto/mgmt/pool.proto +++ b/src/proto/mgmt/pool.proto @@ -355,11 +355,7 @@ message PoolRebuildStartReq repeated uint32 svc_ranks = 3; // List of pool service ranks } -// PoolRebuildStartResp returns state which indicates whether request was accepted successfully. -message PoolRebuildStartResp -{ - int32 status = 1; // DAOS error code -} +// PoolRebuildStart uses DaosResp // PoolRebuildStopReq contains information about a request to stop an interactive rebuild on a // given pool. @@ -371,8 +367,4 @@ message PoolRebuildStopReq repeated uint32 svc_ranks = 4; // List of pool service ranks } -// PoolRebuildStopResp returns state which indicates whether request was accepted successfully. -message PoolRebuildStopResp -{ - int32 status = 1; // DAOS error code -} +// PoolRebuildStop uses DaosResp