Bug 154831

Summary: attempting to open an _non_ existing config not in /etc/cluster will cause gui to die
Product: [Retired] Red Hat Cluster Suite Reporter: Corey Marthaler <cmarthal>
Component: redhat-config-clusterAssignee: Jim Parsons <jparsons>
Status: CLOSED NEXTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-15 19:53:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2005-04-14 14:35:11 UTC
Description of problem:
I tried to open a non existing config file and the GUI died:
Traceback (most recent call last):
  File "/usr/sbin/system-config-cluster", line 295, in on_no_conf_open
    self.open_limited(None)
  File "/usr/sbin/system-config-cluster", line 209, in open_limited
    self.model_builder = ModelBuilder(DLM_TYPE, filepath)
  File "/usr/share/system-config-cluster/ModelBuilder.py", line 118, in __init__
    self.object_tree = self.buildModel(None)
  File "/usr/share/system-config-cluster/ModelBuilder.py", line 129, in buildModel
    parent_node = self.parent
AttributeError: ModelBuilder instance has no attribute 'parent'
Traceback (most recent call last):
  File "/usr/sbin/system-config-cluster", line 407, in ?
    runFullGUI()
  File "/usr/sbin/system-config-cluster", line 390, in runFullGUI
    baseapp = basecluster(glade_xml, app)
  File "/usr/sbin/system-config-cluster", line 126, in __init__
    self.configtab = ConfigTab(glade_xml, self.model_builder)
  File "/usr/share/system-config-cluster/ConfigTab.py", line 76, in __init__
    self.reset_tree_model)
  File "/usr/share/system-config-cluster/ConfigTabController.py", line 132, in
__init__
    self.faildom_controller =
FaildomController(self.glade_xml,self.model_builder,reset_tree_model)
  File "/usr/share/system-config-cluster/FaildomController.py", line 27, in __init__
    self.faildoms = self.model_builder.getFailoverDomainPtr()
AttributeError: 'NoneType' object has no attribute 'getFailoverDomainPtr'



Version-Release number of selected component (if applicable):
[root@tank-03 ~]# rpm -qa | grep system-config-cluster
system-config-cluster-0.9.30-1.0

Comment 1 Jim Parsons 2005-04-14 20:21:09 UTC
Doh! Fixed in 0.9.31

Comment 2 Corey Marthaler 2005-04-15 19:53:47 UTC
fix verified.