ceph: monitor script doesn't monitor pool space but total space
|Assignee:||Jaime Melis||% Done:|
|Category:||Drivers - Storage|
|Target version:||Release 5.0.1|
|Affected Versions:||OpenNebula 5.0|
The ceph monitor script doesn't monitor pool space but total space.
Here is a patch for the monitor script. The script is now parsing the xml output of "ceph df" instead of "rados df"
bug #3953: Better ceph df parsing. Apply changes to Ceph System DS also
#1 Updated by Laurent Grawet almost 6 years ago
- File ceph-monitor.patch added
Sorry but there were a few commented lines left out for testing purposes.
Here is an updated patch, you can discard the first file.
#2 Updated by Laurent Grawet almost 6 years ago
- % Done changed from 0 to 100
#3 Updated by Ruben S. Montero almost 6 years ago
- Assignee set to Jaime Melis
#4 Updated by Jaime Melis almost 6 years ago
- Tracker changed from Bug to Backlog
- Target version changed from Release 4.14 to Release 5.0
Laurent, the current code now in master already uses "ceph df" and not "rados df". This was fixed by:
I do like your idea of using the XML output, but for this release we are going to leave it as is.
Changing to backlog for release 5.0.
#5 Updated by Stefan Kooman almost 6 years ago
I would like to add something to this. OpenNebula does not take into account the amount of space it is allowed to use, i.e.: quota.
ceph osd pool get-quota one
quotas for pool 'one':
max objects: N/A
max bytes : 1024GB
If no quota is set, assume OpenNebula is allowed to use MAX AVAIL, otherwise honour quota.
#6 Updated by Ruben S. Montero over 5 years ago
- Target version deleted (
#7 Updated by Ruben S. Montero about 5 years ago
- Tracker changed from Backlog to Bug
- Status changed from Pending to Closed
- Target version set to Release 5.2
- Affected Versions OpenNebula 5.0 added
Merged the pull request. Also used in System DS ceph.
#8 Updated by Ruben S. Montero about 5 years ago
- Target version changed from Release 5.2 to Release 5.0.1