Description of problem: ----------------------- I was trying to create bricks using gdeploy, with JBOD backend with 4 disks. gdeploy fails with errors Version-Release number of selected component (if applicable): ------------------------------------------------------------- gdeploy-2.0.1-3.el7rhgs How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. Try creating bricks with 'disktype' as 'jbod' and 'diskcount' as '4' Actual results: --------------- gdeploy fails Expected results: ----------------- gdeploy should successfully create bricks Additional info: ---------------- Errors seen : <snip> TASK [Create volume group on the disks] **************************************** changed: [dhcp37-54.lab.eng.blr.redhat.com] => (item={u'brick': u'/dev/vdb', u'vg': u'RHGS_vg1'}) PLAY RECAP ********************************************************************* dhcp37-54.lab.eng.blr.redhat.com : ok=1 changed=1 unreachable=0 failed=0 Traceback (most recent call last): File "/usr/bin/gdeploy", line 198, in <module> main(sys.argv[1:]) File "/usr/bin/gdeploy", line 183, in main call_features() File "/usr/lib/python2.7/site-packages/gdeploylib/call_features.py", line 36, in call_features map(get_feature_dir, Global.sections) File "/usr/lib/python2.7/site-packages/gdeploylib/call_features.py", line 83, in get_feature_dir section_dict, yml = feature_call(section_dict) File "/usr/lib/python2.7/site-packages/gdeployfeatures/lv/lv.py", line 22, in lv_create section_dict, yml = get_lv_vg_names('lvname', section_dict) File "/usr/lib/python2.7/site-packages/gdeployfeatures/lv/lv.py", line 65, in get_lv_vg_names section_dict, ymls = get_mount_data(section_dict, lvname, vgname) File "/usr/lib/python2.7/site-packages/gdeployfeatures/lv/lv.py", line 125, in get_mount_data -n size=8192"%(sw[0],su[0]) TypeError: 'int' object has no attribute '__getitem__' </snip>
Creduts to Sac as he found out this issue and also the RCA for this issue
[hosts] host1 [disktype] jbod [diskcount] 4 [pv] action=create devices=vdb [vg1] action=create vgname=RHGS_vg1 pvname=vdb [lv1] action=create vgname=RHGS_vg1 lvname=engine_lv lvtype=thick size=10GB mount=/rhgs/brick1
(In reply to SATHEESARAN from comment #1) > Creduts to Sac as he found out this issue and also the RCA for this issue Sorry for the typo. Read it as 'Credits' to Sac.
sas, I've fixed this upstream. Will cherry-pick. Thanks for filing this bug.
Commit: https://github.com/gluster/gdeploy/pull/216/commits/d25503400 fixes the issue.
Tested with gdeploy-2.0.1-5 and all works good with 'jbod' as the disktype.
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://rhn.redhat.com/errata/RHSA-2017-0260.html