Bug 698323

Summary: [vdsm][vds_bootstrap] unhandled exception if config.py doesn't contain settings for netconsole
Product: Red Hat Enterprise Linux 6 Reporter: Jakub Libosvar <jlibosva>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED NEXTRELEASE QA Contact: yeylon <yeylon>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, iheim, srevivo, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-20 17:04:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs none

Description Jakub Libosvar 2011-04-20 15:59:33 UTC
Created attachment 493530 [details]
logs

Description of problem:
Installation of host fails when creating new /etc/vdsm/vdsm.conf file and /ush/share/vdsm/config.py doesn't contain settings for netconsole

Version-Release number of selected component (if applicable):
ic114
vdsm-4.9-59.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. make sure there is no vdsm.conf file on host
2. install this host to rhev-m
  
Actual results:
Installation fails

Expected results:
Installation continues

Additional info:
I was not sure which component add vds_bootstrap to so I opened it here. If there is better place for it, please change and accept my apologies for bad component. I chose it according the search.

Backend reports: 
2011-04-20 17:42:39,632 ERROR [com.redhat.rhevm.bll.VdsInstaller] (pool-15-thread-309) Installation of 10.34.57.206. Error: Traceback (most recent call last):
  File "/tmp/vds_bootstrap_bb6dae4f-c6be-475b-b8d6-175aa6ec4f86.py", line 541, in createConf
    self._makeConfig()
  File "/tmp/vds_bootstrap_bb6dae4f-c6be-475b-b8d6-175aa6ec4f86.py", line 509, in _makeConfig
    for option in config.options('netconsole'):
  File "/usr/lib64/python2.6/ConfigParser.py", line 260, in options
    raise NoSectionError(section)
NoSectionError: No section: 'netconsole'
. (Stage: Running first installation script on Host)

Comment 2 Dan Kenigsberg 2011-04-20 17:04:28 UTC
that's the correct package to file this bug. but this codepath has been removed from vdsm, and will not appear in next rhev-m build (next week).

The wrong code was packed withing rhev-m due to git branch mismatch (mea culpa).