Bug 2203199 - Backport RBD capacity calculation fix
Summary: Backport RBD capacity calculation fix
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 17.1
Assignee: Eric Harney
QA Contact: Yosi Ben Shimon
Andy Stillman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-11 14:12 UTC by Eric Harney
Modified: 2024-03-12 16:27 UTC (History)
3 users (show)

Fixed In Version: openstack-cinder-18.2.2-1.20230518161042.36649bd.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:15:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1960206 0 None None None 2023-05-11 14:12:31 UTC
OpenStack gerrit 876474 0 None NEW RBD: Fix total_capacity 2023-05-11 14:12:31 UTC
Red Hat Issue Tracker OSP-25026 0 None None None 2023-05-11 14:15:22 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:15:38 UTC

Internal Links: 2242504

Description Eric Harney 2023-05-11 14:12:32 UTC
https://review.opendev.org/c/openstack/cinder/+/876474 fixed capacity stats gathering in the RBD driver, which was incorrect for Nautilus and newer releases.

We should get this fix into 17.1.

Comment 12 Yosi Ben Shimon 2023-06-13 18:39:30 UTC
Tested on:
Red Hat OpenStack Platform release 17.1.0 Beta (Wallaby)
ceph version 17.2.5-75.el9cp (52c8ab07f1bc5423199eeb6ab5714bc30a930955) quincy (stable)


[ceph: root@controller-0 /]# ceph df
--- RAW STORAGE ---
CLASS     SIZE    AVAIL    USED  RAW USED  %RAW USED
hdd    480 GiB  456 GiB  24 GiB    24 GiB       4.93
TOTAL  480 GiB  456 GiB  24 GiB    24 GiB       4.93
 
--- POOLS ---
POOL                 ID  PGS   STORED  OBJECTS     USED  %USED  MAX AVAIL
.mgr                  1    1  449 KiB        2  1.3 MiB      0    140 GiB
vms                   2   32     19 B        3   12 KiB      0    140 GiB
volumes               3   32  1.5 KiB       19  132 KiB      0    140 GiB
images                4   32  4.8 GiB      633   14 GiB   3.30    140 GiB
backups               5   32     19 B        3   12 KiB      0    140 GiB
.rgw.root             6   32  1.3 KiB        4   48 KiB      0    140 GiB
manila_data           7   32  1.3 KiB        9   84 KiB      0    140 GiB
default.rgw.log       8   32  3.6 KiB      209  408 KiB      0    140 GiB
manila_metadata       9   16  216 MiB       76  647 MiB   0.15    140 GiB
default.rgw.control  10   32      0 B        8      0 B      0    140 GiB
default.rgw.meta     11   32      0 B        0      0 B      0    140 GiB




[ceph: root@controller-0 /]# ceph df -f json

{"stats":{"total_bytes":515333160960,"total_avail_bytes":489824792576,"total_used_bytes":25508368384,"total_used_raw_bytes":25508368384,"total_used_raw_ratio":0.049498792737722397,"num_osds":15,"num_per_pool_osds":15,"num_per_pool_omap_osds":15},"stats_by_class":{"hdd":{"total_bytes":515333160960,"total_avail_bytes":489824792576,"total_used_bytes":25508368384,"total_used_raw_bytes":25508368384,"total_used_raw_ratio":0.049498792737722397}},"pools":[{"name":".mgr","id":1,"stats":{"stored":459280,"objects":2,"kb_used":1356,"bytes_used":1388544,"percent_used":3.0692135624121875e-06,"max_avail":150802989056}},{"name":"vms","id":2,"stats":{"stored":19,"objects":3,"kb_used":12,"bytes_used":12288,"percent_used":2.716126523694129e-08,"max_avail":150802989056}},{"name":"volumes","id":3,"stats":{"stored":1494,"objects":19,"kb_used":132,"bytes_used":135168,"percent_used":2.9877384122301009e-07,"max_avail":150802989056}},{"name":"images","id":4,"stats":{"stored":5144409600,"objects":633,"kb_used":15071676,"bytes_used":15433396224,"percent_used":0.032988455146551132,"max_avail":150802989056}},{"name":"backups","id":5,"stats":{"stored":19,"objects":3,"kb_used":12,"bytes_used":12288,"percent_used":2.716126523694129e-08,"max_avail":150802989056}},{"name":".rgw.root","id":6,"stats":{"stored":1363,"objects":4,"kb_used":48,"bytes_used":49152,"percent_used":1.0864504673691044e-07,"max_avail":150802989056}},{"name":"manila_data","id":7,"stats":{"stored":1335,"objects":9,"kb_used":84,"bytes_used":86016,"percent_used":1.9012881580238172e-07,"max_avail":150802989056}},{"name":"default.rgw.log","id":8,"stats":{"stored":3702,"objects":209,"kb_used":408,"bytes_used":417792,"percent_used":9.2348216185200727e-07,"max_avail":150802989056}},{"name":"manila_metadata","id":9,"stats":{"stored":226279792,"objects":76,"kb_used":663012,"bytes_used":678924288,"percent_used":0.0014984384179115295,"max_avail":150802989056}},{"name":"default.rgw.control","id":10,"stats":{"stored":0,"objects":8,"kb_used":0,"bytes_used":0,"percent_used":0,"max_avail":150802989056}},{"name":"default.rgw.meta","id":11,"stats":{"stored":0,"objects":0,"kb_used":0,"bytes_used":0,"percent_used":0,"max_avail":150802989056}}]}


Here:
total_bytes      = total_avail_bytes + total_used_bytes
515333160960     = 489946558464      + 25386602496
479.94140625 GiB = 456.298290253 GiB + 23.643115997 GiB

Moving to VERIFIED and removing NEEDINFO

Comment 19 errata-xmlrpc 2023-08-16 01:15:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.