Comments (4)
I'm sorry to hear that you find our docs insufficient.
We have not implemented any APIs specific to the ceph osd blocklist
(nee blacklist) commands. However, almost all ceph
cli commands are implemented by sending JSON commands to one of rados.MgrCommand or rados.MonCommand. Knowing what JSON to send is the sometimes tricky part because it's not clearly documented either, but can be determined by a sending a special JSON {"prefix": "get_command_descriptions"}
to the API which dumps the list of "endpoints".
So you can either put in a request that we write Go APIs for these blocklist related ceph features or you can try writing something that makes use of rados APIs directly and then you don't need to wait for us to get to it.
from go-ceph.
@phlogistonjohn Thanks for your reply. I just tested rados.MonCommand by sending
{"prefix": "get_command_descriptions"}
, and foundceph osd blocklist
command successfully. You my friend, are a true hero.
Thanks for the kind words.
I think it's a good way to mention this part to docs (such as hints.md), which is helpful for beginner, like me.
Yes, I agree. I will keep this issue open to serve as a TODO to document this and some related topics.
from go-ceph.
I also just remembered that there's a librados C API related to this as well (this is not wrapped):
https://github.com/ceph/ceph/blob/d9e6e1de796bccd81bfbb50bc461c2d5ecb19c7f/src/include/rados/librados.h#L3736-L3743
I'm not clear on the relationship between the ceph
command and the C-api (if they do the same thing) because I have not researched this topic much myself.
from go-ceph.
@phlogistonjohn Thanks for your reply. I just tested rados.MonCommand by sending {"prefix": "get_command_descriptions"}
, and found ceph osd blocklist
command successfully. You my friend, are a true hero.
I think it's a good way to mention this part to docs (such as hints.md), which is helpful for beginner, like me.
from go-ceph.
Related Issues (20)
- Missing rbd API components: function peer_site_remove HOT 2
- macos m1pro fatal error: 'rados/librados.h' file not found HOT 12
- Image corruption when doing Copy(...) HOT 1
- Potential memory leak on rbd image copy HOT 6
- CI job 'check' emits a warning about go.mod
- rgw: Empty usage problem HOT 3
- TestPingMonitor crashes HOT 6
- Enhance `GetPoolStats()` Method to Include `Num_bytes_available` Field in `PoolStat` HOT 2
- APIs pending stability updates in v0.24.0
- Support bucket scope quota HOT 4
- Add support for rbd_resize2
- Implement subvolume quiesce API HOT 4
- Need squid branch support
- Pacific CI jobs are failing with package dependencies HOT 5
- Should `Resize()` after `EncryptionLoad()` account for the encryption header space? HOT 7
- Quiesce test failing for pre-squid HOT 3
- TestCloneSubVolumeSnapshot failing on ceph main branch HOT 2
- APIs pending stability updates in v0.27.0
- APIs pending stability updates in v0.28.0
- TestRadosGWTestSuite/TestUserBucket is consistently failing in CI HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-ceph.