Bug 1329070

Summary: Python traceback seen while creation of lv using gdeploy conf file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: gdeployAssignee: Nandaja Varma <nvarma>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: asrivast, nvarma, rhinduja, smohan, surs
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gdeploy-2.0-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
RHEV RHGS HCI RHEL 7.2 RHEV 3.6.4
Last Closed: 2016-06-23 05:30:03 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1258386, 1311817    

Description SATHEESARAN 2016-04-21 06:25:44 UTC
Description of problem:
------------------------
Traceback was seen while creating lv using gdeploy

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

How reproducible:
-----------------
Always/Consistent

Steps to Reproduce:
-------------------
1. use [lv] section in conf file to create logical volume
2. run gdeploy with this script

Actual results:
---------------
Traceback seen while creation of lv

Expected results:
-----------------
lv creation should be successful

Additional info:
----------------
1. HCI requires creation of thick lv for the engine. Used the conf file as below:
[hosts]
host1.lab.eng.blr.redhat.com

[pv]
action=create
devices=vdb

[vg]
action=create
vgname=RHS_vg1
pvname=vdb

[lv]
action=create
lvname=engine_lv
lvtype=thick
size=100GB

2. Traceback seen
------------------

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/lv/lv.py", line 13, in lv_create
    vg_section = Global.sections.get('vg')
NameError: global name 'Global' is not defined

Comment 1 SATHEESARAN 2016-04-21 06:26:51 UTC
Initially tried to create a thick lv, but even the same error is seen in the creation of thin lv too

Comment 2 SATHEESARAN 2016-04-22 16:42:37 UTC
Tested with gdeploy-2.0-6 with the conf file as follows :

[pv]
action=create
devices=vdb

[vg]
action=create
vgname=RHS_vg1
pvname=vdb

[lv]
action=create
lvname=engine_lv
lvtype=thick
size=100GB

There were no issues

Comment 5 errata-xmlrpc 2016-06-23 05:30:03 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