Hide Forgot
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
Initially tried to create a thick lv, but even the same error is seen in the creation of thin lv too
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
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