Fetch current OSD pool configuration over the API#409
Conversation
UtkarshBhatthere
left a comment
There was a problem hiding this comment.
LGTM, one minor nit.
|
@UtkarshBhatthere @sabaini @lmlg Sort of a side note/question here: I've been thinking about the Right now it takes 1 size value, and applies it to all specified OSD pools, but also sets the default OSD pool size for all future pools. This means if you want to resize just 1 pool, you have to call this API twice, because the first call will update the default OSD pool size as well, so you'd have to restore that with another request but with a blank set of OSD pools. I wonder if we can make the default OSD pool size update based on a query parameter? Like I noticed the CLI help is also wrong. It says |
|
@masnax fair enough, can you please create a GH issue for this behaviour ? We will take it up soon. |
UtkarshBhatthere
left a comment
There was a problem hiding this comment.
One change requested
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
57cc87b to
4b3e1ee
Compare
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
4b3e1ee to
4248f8e
Compare
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
4248f8e to
0039fb8
Compare
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
0039fb8 to
f939b81
Compare
Yes, those look line sane changes to me. Not sure if there's any client that requires the current command format to be stable, though. |
|
Fair enough @lmlg, I will share a post in Ceph Announcements room with the newly created ticket and the description of the change. |
PUT /1.0/pools-oplets you set the replication size for several OSD pools.This PR adds the ability to fetch the current sizes (and some other relevant OSD pool information) via
GET /1.0/pools. The goal of this is to obtain the correct OSD pool names to supply toPUT /1.0/pools-op, as well as to determine what the current size of each pool is.As discussed on mattermost: https://chat.canonical.com/canonical/pl/g3heo1kmz7r6db39re9qyzfw4w