Bug 1305670

Summary: RFE: add --pg-num to osdmaptool --test-map-pgs to allow the user to experiment with other pg counts
Product: Red Hat Ceph Storage Reporter: Samuel Just <sjust>
Component: RADOSAssignee: Josh Durgin <jdurgin>
Status: CLOSED ERRATA QA Contact: Ramakrishnan Periyasamy <rperiyas>
Severity: urgent Docs Contact: Erin Donnelly <edonnell>
Priority: urgent    
Version: 3.0CC: anharris, ceph-eng-bugs, dzafman, edonnell, hnallurv, jdurgin, kchai, kdreyer, sjust
Target Milestone: rcKeywords: FutureFeature
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.1.4-1.el7cp Ubuntu: ceph_12.1.4-2redhat1xenial Doc Type: Enhancement
Doc Text:
.A new `--pg-num` option for the `osdmaptool` utility The `osdmaptool` utility now includes the `--pg-num` option that can be used with the `--test-map-pgs` option. This allows the user to test placement policies with a different number of placement groups (PGs) than are in the OSD map.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:29:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1494421    

Description Samuel Just 2016-02-08 20:47:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 Ramakrishnan Periyasamy 2017-09-04 12:10:50 UTC
Moving this bug to verified state.

Command console output:

[ubuntu@host031 ~]$ sudo osdmaptool --test-map-pgs --pg-num 64 ./osdmap 
osdmaptool: osdmap file './osdmap'
pool 1 pg_num 64
pool 2 pg_num 64
#osd	count	first	primary	c wt	wt
osd.0	42	12	12	0.904388	1
osd.1	51	12	12	0.904388	1
osd.2	40	15	15	0.904388	1
osd.3	51	14	14	0.904388	1
osd.4	42	15	15	0.904388	1
osd.5	40	13	13	0.904388	1
osd.6	35	15	15	0.904388	1
osd.7	46	21	21	0.904388	1
osd.8	37	11	11	0.904388	1
 in 9
 avg 42 stddev 5.37484 (0.127972x) (expected 6.1584 0.146629x))
 min osd.6 35
 max osd.1 51
size 0	0
size 1	0
size 2	0
size 3	128

Comment 13 errata-xmlrpc 2017-12-05 23:29:38 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, 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-2017:3387