Bug 2153654 - Unable to set the replica count as 1, i.e size=1 on pools
Summary: Unable to set the replica count as 1, i.e size=1 on pools
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.0
Assignee: Matan Breizman
QA Contact: Pawan
Eliska
URL:
Whiteboard:
Depends On:
Blocks: 2126050
TreeView+ depends on / blocked
 
Reported: 2022-12-15 03:38 UTC by Pawan
Modified: 2023-03-20 19:00 UTC (History)
18 users (show)

Fixed In Version: ceph-17.2.5-29.el9cp
Doc Type: Bug Fix
Doc Text:
.Users are now able to set the replica `size` to `1` Previously, users were unable to set the pool `size` to `1`. The `check_pg_num()` function would incorrectly calculate the projected placement group number of the pool, which resulted in an underflow. Because of the false result, it appeared that the `pg_num` was larger than the maximum limit. With this fix, the recent `check_pg_num()` function edits are reverted and the calculation is now working properly without resulting in an underflow and the users are now able to set the replica size to `1`.
Clone Of:
Environment:
Last Closed: 2023-03-20 18:59:40 UTC
Embargoed:
mbreizma: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-5791 0 None None None 2022-12-15 04:03:54 UTC
Red Hat Product Errata RHBA-2023:1360 0 None None None 2023-03-20 19:00:50 UTC

Comment 5 Josh Durgin 2022-12-15 15:57:37 UTC
The bug is due to underflow calculating the projected number of pgs - we should avoid this pg_num check at all when we're decreasing the size of a pool.

      projected += pg_num * size;
      projected -= pg_info.get_pg_num_target() * pg_info.get_size();

Comment 32 errata-xmlrpc 2023-03-20 18:59:40 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 (Red Hat Ceph Storage 6.0 Bug Fix update), 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/RHBA-2023:1360


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