Bug 227723

Summary: Entering bad password when creating a new cluster = UnboundLocalError: local variable 'e' referenced before assignment
Product: [Retired] Red Hat Cluster Suite Reporter: Len DiMaggio <ldimaggi>
Component: congaAssignee: Ryan McCabe <rmccabe>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Marthaler <cmarthal>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint, djansa, jlaska, kanderso, kupcevic, rmccabe
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-10 20:14:29 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 Len DiMaggio 2007-02-07 19:01:04 UTC
Description of problem:
Entering bad password when creating a new cluster = UnboundLocalError: local
variable 'e' referenced before assignment

Version-Release number of selected component (if applicable):
luci-0.8-30.el5
ricci-0.8-30.el5

How reproducible:
100%

Steps to Reproduce:
1. Create a new cluster via the luci web app
2. Enter an invalid password for the nodes
3. Observe the error listed below
  
Actual results:
See below

Expected results:
The error should be trapped (as missing passwords are)

Additional info:

luci:

Site error

This site encountered an error trying to fulfill your request. The errors were:

Error Type
    UnboundLocalError
Error Value
    local variable 'e' referenced before assignment
Request made at
    2007/02/07 12:44:12.938 US/Central

------------------------------------------------------
/var/log/messages:

Feb  7 12:44:12 tng3-5 saslauthd[2557]: do_auth         : auth failure:
[user=root] [service=ricci] [realm=] [mech=pam] [reason=PAM auth error]

------------------------------------------------------

/var/lib/luci/log/event.log

------
2007-02-07T12:46:07 ERROR Zope.SiteErrorLog
http://tng3-5.lab.msp.redhat.com:8080/luci/cluster/index_html
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <ZopePageTemplate at /luci/cluster/index_html>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 728, in do_defineMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 780, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 715, in do_condition
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 780, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 511, in do_setGlobal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /luci/cluster/portlet_cluconfig
   - Line 10, Column 0
   - Expression: <PythonExpr here.createCluChooser(request, clusystems)>
   - Names:
      {'container': <Folder at /luci/cluster>,
       'context': <Folder at /luci/cluster>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb75a926c>,
       'here': <Folder at /luci/cluster>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xdf5662c>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0xb754bdec>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xdf5662c>,
       'request': <HTTPRequest,
URL=http://tng3-5.lab.msp.redhat.com:8080/luci/cluster/index_html>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /luci/cluster/index_html>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.createCluChooser(request, clusystems)
  Module Python expression "here.createCluChooser(request, clusystems)", line 1,
in <expression>
  Module Products.ExternalMethod.ExternalMethod, line 232, in __call__
   - __traceback_info__: ((<HTTPRequest,
URL=http://tng3-5.lab.msp.redhat.com:8080/luci/cluster/index_html>, []), {}, None)
  Module /var/lib/luci/Extensions/cluster_adapters.py, line 2018, in
createCluChooser
  Module /var/lib/luci/Extensions/cluster_adapters.py, line 2011, in validatePost
  Module /var/lib/luci/Extensions/cluster_adapters.py, line 227, in
validateCreateCluster
  Module /var/lib/luci/Extensions/cluster_adapters.py, line 162, in
parseClusterNodes
UnboundLocalError: local variable 'e' referenced before assignment

Comment 1 Stanko Kupcevic 2007-02-07 21:50:14 UTC
This issue appears in HEAD and 4.5 as well


Comment 2 Ryan McCabe 2007-02-07 22:03:35 UTC
Fixed in HEAD and RHEL4