Skip to content

Commit

Permalink
Update Rpc.proto
Browse files Browse the repository at this point in the history
Add trace string to Role proto and remove Manila protobufs.
  • Loading branch information
apeters1971 committed Feb 4, 2025
1 parent 809fa66 commit a059582
Showing 1 changed file with 1 addition and 67 deletions.
68 changes: 1 addition & 67 deletions Rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ service Eos {

// Replies to a NsRequest operation
rpc Exec (NSRequest) returns (NSResponse) {}

// ---------------------------------------------------------------------
// OPENSTACK
// ---------------------------------------------------------------------

// Manila Driver
rpc ManilaServerRequest (ManilaRequest) returns (ManilaResponse) {}
}

message PingRequest {
Expand Down Expand Up @@ -172,6 +165,7 @@ message RoleId {
string username = 3;
string groupname = 4;
string app = 5;
string trace = 6;
}

message MDId {
Expand Down Expand Up @@ -549,63 +543,3 @@ message NsStatResponse {
uint64 fds = 14;
uint64 uptime = 15;
}

// ---------------------------------------------------------------------
// OPENSTACK
// ---------------------------------------------------------------------

enum MANILA_REQUEST_TYPE {
CREATE_SHARE = 0;
DELETE_SHARE = 1;
EXTEND_SHARE = 2;
SHRINK_SHARE = 3;
MANAGE_EXISTING = 4;
UNMANAGE = 5;
GET_CAPACITIES = 6;
/* EXTRA FUNCTIONS NOT IMPLEMENTED */
/*
CREATE_SNAPSHOT = 7;
DELETE_SNAPSHOT = 8;
CREATE_SHARE_FROM_SNAPSHOT = 9;
ENSURE_SHARE = 10;
ALLOW_ACCESS = 11;
DENY_ACCESS = 12;
GET_SHARE_STATS = 13;
DO_SETUP = 14;
SETUP_SERVER = 15;
TEARDOWN_SERVER = 16;
GET_NETWORK_ALLOCATIONS_NUMBER = 17;
VERIFY_SHARE_SERVER_HANDLING = 18;
CREATE_SHARE_GROUP = 19;
DELETE_SHARE_GROUP = 20;
*/

}

message ManilaRequest {
MANILA_REQUEST_TYPE request_type = 1;
string auth_key = 2;
string protocol = 3;
string share_name = 4;
string description = 5;
string share_id = 6;
string share_group_id = 7;
int32 quota = 8;
string creator = 9;
string egroup = 10;
string admin_egroup = 11;
string share_host = 12;
string share_location = 13;
}

message ManilaResponse {
string msg = 1; //for generic messages
int32 code = 2; // < 1 is an error -- > 1 is OK
int64 total_used = 3;
int64 total_capacity = 4;
int64 new_share_quota = 5;
string new_share_path = 6;

}


0 comments on commit a059582

Please sign in to comment.