Bug 1328856 - python traceback seen while using the general options disktype,stripesize,diskcount in the conf file
Summary: python traceback seen while using the general options disktype,stripesize,dis...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: RHGS 3.1.3
Assignee: Nandaja Varma
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: Gluster-HC-1 1311817
TreeView+ depends on / blocked
 
Reported: 2016-04-20 12:28 UTC by SATHEESARAN
Modified: 2016-07-04 01:12 UTC (History)
6 users (show)

Fixed In Version: gdeploy-2.0-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
RHEV+RHGS HCI RHEL 7.2 RHEV 3.6.4
Last Closed: 2016-06-23 05:29:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1250 0 normal SHIPPED_LIVE gdeploy update for Red Hat Gluster Storage 3.1 update 3 2016-06-23 09:11:59 UTC

Description SATHEESARAN 2016-04-20 12:28:20 UTC
Description of problem:
-----------------------
HCI setup requires RAID 6 and that requires the perf team recommended values while creating pvs and vgs ( for example, --dataalignment value while creating a pv )

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

How reproducible:
-----------------
Always/consistent

Steps to Reproduce:
-------------------
1. create conf file which uses - disktype, diskcount, stripesize
2. use this conf file to create the backend setup using gdeploy

Actual results:
---------------
Traceback seen while executing gdeploy with this config file

Expected results:
-----------------
There shouldn't be any Traceback observed

Additional info:
----------------

1. Conf file
-------------
[hosts]
host-sample.lab.eng.blr.redhat.com

[disktype]
raid6

[diskcount]
4

[stripesize]
128

[pv]
action=create
devices=vdb 

2. Traceback as seen
---------------------
[root@ ~]# gdeploy -c test.conf
Traceback (most recent call last):
  File "/usr/bin/gdeploy", line 177, in <module>
    main(sys.argv[1:])
  File "/usr/bin/gdeploy", line 162, 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 70, in get_feature_dir
    section_dict, yml = feature_call(section_dict)
  File "/usr/lib/python2.7/site-packages/gdeployfeatures/pv/pv.py", line 14, in pv_create
    helpers.perf_spec_data_write()
  File "/usr/lib/python2.7/site-packages/gdeploylib/helpers.py", line 396, in perf_spec_data_write
    perf = dict(disktype=disktype[0].lower())
KeyError: 0

Comment 2 SATHEESARAN 2016-05-09 09:42:09 UTC
Tested with gdeploy-2.0-10 and there are no tracebacks see while using the conf file containing the sections disksize, diskcount, stripesize

Comment 4 errata-xmlrpc 2016-06-23 05:29:57 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/RHEA-2016:1250


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