Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceph Mon Dump #9

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Ceph Mon Dump #9

merged 2 commits into from
Dec 9, 2024

Conversation

shutstart
Copy link
Collaborator

This adds the endpoint to execute the ceph-mon-dump command to the ceph-api.

@shutstart shutstart requested a review from arttor December 6, 2024 15:34
@shutstart shutstart self-assigned this Dec 6, 2024
api/status.proto Outdated
int32 epoch = 1;
string fsid = 2;
string modified = 3;
string created = 4;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could it be a timestamp (same question for modified)?

Copy link
Collaborator Author

@shutstart shutstart Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{"modified": "2024-10-07T12:56:12.682935Z", "created": "2024-10-07T12:56:10.723433Z",}
All of them are in this format, not sure if this is how we can serialize in grpc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think that it is worth to parce string to Go time.Time and then pass it to grpc timestamp. what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible but would involve making a new struct and converting it to the grpc response seems worth it though.

@arttor arttor merged commit 7021022 into main Dec 9, 2024
1 check passed
@arttor arttor deleted the feat/ceph-mon-dump branch December 9, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants