Bug 1329070 - Python traceback seen while creation of lv using gdeploy conf file
Summary: Python traceback seen while creation of lv using gdeploy conf file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: gdeploy
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
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-21 06:25 UTC by SATHEESARAN
Modified: 2016-07-04 01:12 UTC (History)
5 users (show)

Fixed In Version: gdeploy-2.0-6
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:30:03 UTC
Target Upstream Version:


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-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


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