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

Support ceph-dencoder #568

Open
mfatemipour opened this issue Sep 3, 2021 · 6 comments
Open

Support ceph-dencoder #568

mfatemipour opened this issue Sep 3, 2021 · 6 comments

Comments

@mfatemipour
Copy link

Hi, Is there any plan to support decode/encode ceph structs ? like something that we have in ceph-dencoder tool

@phlogistonjohn
Copy link
Collaborator

Could you please post links to the features/tools in question? I'm not familiar with ceph-dencoder and just saying "encode/decode" could mean a lot of different things.

@tchaikov
Copy link
Contributor

tchaikov commented Sep 3, 2021

@phlogistonjohn
Copy link
Collaborator

OK, I've also now looked at https://docs.ceph.com/en/latest/man/8/ceph-dencoder/ and have a rough idea of what the tool does. Unfortunately, I don't quite see how this fits in the grand scheme of things. Basically: if you would like someone else to implement this for you, we need to understand the use case - the why and the how - this would be used as part of go-ceph.

If you're more interested in contributing something, feel free to strike up a conversation or submit a prototype. :-)

@mfatemipour
Copy link
Author

mfatemipour commented Sep 6, 2021

Actually I want to iterate on some rados objects and get some information about their manifets attribute (related to rgw), but rados get attributes as an encoded byte array, and there is not any programatically way to decode it unless using ceph-dencoder tool (as a exec cmd) that makes every procedure very very slow.

@phlogistonjohn
Copy link
Collaborator

Thanks @mfatemipour if I understand it correctly, you want to read data from rados that's not available in an API call and interpret the meaning.

So, we can look into it, but please do understand that if this isn't a fully-fledged C api that ceph provides it may be challenging to implement. I'm tagging this as a feature request now that I think I understand the request.

@iliul
Copy link

iliul commented Sep 8, 2021

/cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants