Project

General

Profile

Feature #36559

mgr/dashboard: Allow viewing and setting Pool Quotas

Added by Lenz Grimmer 10 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/pools
Target version:
Start date:
10/23/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

According to the documentation, it is possible to set pool quotas for the maximum number of bytes and/or the maximum number of objects per pool.

The Pools management section of the Dashboard should support managing these, too.

pool_form2.png View (43.7 KB) Kiefer Chang, 05/02/2019 11:07 AM

History

#1 Updated by Patrick Seidensal 7 months ago

  • Assignee set to Patrick Seidensal

#2 Updated by Lenz Grimmer 6 months ago

For reference, here's a PR that implements this functionality in openATTIC: https://bitbucket.org/openattic/openattic/pull-requests/885

#3 Updated by Kiefer Chang 4 months ago

Hi Patrick, if you had not started working on this yet, maybe I can try to implement this.

#4 Updated by Lenz Grimmer 4 months ago

  • Tags set to management
  • Assignee changed from Patrick Seidensal to Kiefer Chang

Hi Kiefer, thanks for your offer! Patrick hasn't started working on this one yet, I'm reassigning it to you then.

#5 Updated by Kiefer Chang 4 months ago

  • Status changed from New to In Progress

#6 Updated by Kiefer Chang 4 months ago

WIP branch: https://github.com/bk201/ceph/commits/wip-36559

Designs

Frontend
  • PoolFormComponent
    A quota section is added with new text fields.
    • Max bytes: maximum usage of pool, can be input with units (e.g. 1 GiB, 1024 MiB, default to GiB)
    • Max objects: maximum number of objects in the pool
Backend
  • Pool creation
    POST /api/pool
    Introduce two new fields. Quotas are not enabled if these fields are not provided.
    {
      "quota_max_bytes": <bytes>,
      "quota_max_objects": <object_counts>
    }
    
  • Pool update
    PUT /api/pool
    Introduce two new fields, Quotas are updated with provided values. To disable quotas, 0 should be provided.
    {
      "quota_max_bytes": <bytes>,
      "quota_max_objects": <object_counts>
    }

#7 Updated by Kiefer Chang 4 months ago

  • Pull request ID set to 27945

#8 Updated by Nathan Cutler 4 months ago

  • Status changed from In Progress to Need Review

#9 Updated by Lenz Grimmer 2 months ago

  • Target version deleted (v14.0.0)
  • Backport set to nautilus

#10 Updated by Ricardo Marques about 2 months ago

  • Backport deleted (nautilus)

#11 Updated by Lenz Grimmer about 2 months ago

  • Status changed from Need Review to Resolved
  • Target version set to v15.0.0

Also available in: Atom PDF